Announcement

Collapse
No announcement yet.

MA Direction Change

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Pogman
    Thank you for the compliments and you are most welcome.
    You too have a great weekend
    Alex

    Comment


    • #17
      Found what I was looking for, but ...

      Found what I was looking for, but I am not sure how to add different MA options to this efs (MA). I am referring to the MA posted in Pogman's post just below this one (I quoted his post)

      This is curently in the efs:

      //{{EFSWizard_Declarations
      var vEMA34_of_HL2 = new MAStudy(34, 0, "HL/2", MAStudy.EXPONENTIAL);
      var vLastAlert = -1;
      //}}EFSWizard_Declarations

      and I am trying to add something like this, but I can't get it to work out:

      aFPArray[x] = new FunctionParameter( "fType1", FunctionParameter.STRING);
      with( aFPArray[x] ) {
      setName( "Signal MA Type" );
      addOption( "T3" );
      addOption( "TEMA" );
      addOption( "sma" );
      addOption( "ema" );
      addOption( "wma" );
      addOption( "vwma" );
      setDefault( "T3" );
      }
      x++;
      aFPArray[x] = new FunctionParameter( "fSource1", FunctionParameter.STRING);
      with( aFPArray[x] ) {
      setName( "Signal MA Source" );
      addOption( "close" );
      addOption( "high" );
      addOption( "low" );
      addOption( "open" );
      addOption( "hl2" );
      addOption( "hlc3" );
      addOption( "ohlc4" );
      setDefault( "hl2" );
      }

      I am the worst programmer on the planet, but I really thought I could have done this one!!

      Any suggestions? Thanks

      Originally posted by Pogman
      Hello

      Alex you are very sharp indeed! You never cease to amaze me. I had not caught this yet! Replacing the code with your suggestions make it work as it should. Thank you for taking the time to offer your correct suggestion, you are the greatest!

      For those interested I have attached the efs that color's a ma above and below price.

      Thanks and have a great weekend.

      Pogman

      P.S. On a side note my clicking on eSignal spell check does not work anymore, is anyone else having this issue or just me?

      Comment


      • #18
        JJOM
        You can find a complete working example of how to implement what you are trying to do in the FisherOf[Study].efs which is posted here
        Alex

        Comment

        Working...
        X