Announcement

Collapse
No announcement yet.

New to EFS...and need help on simple indicator

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

  • New to EFS...and need help on simple indicator

    If someone out there can help me, I'd be forever greatful!

    I have an old favorite indicator on VisualTrading that I'd like to convert to EFS. The VT code is:

    - - - - - - -
    DifferenceInCloses := C-ref(C,-1);
    SumOfDifferences := sum(DifferenceInCloses,13);
    Out := mov(sum(SumOfDifferences,3,s)*10;
    Avg := mov(Out,5,S);

    GoLong := cross(Out,Avg);
    GoShort := cross(Avg,Out);

    //The outputs are a dot above the High or below the Low
    LongDot := if(GoLong=1,H+0.33*atr(14),null);
    ShortDot := if(GoShort=1,L-0.33*atr(14),null);
    - - - - - - - -

    Any help would be greatly appreciated!

    Thanks,

    Ben L.

  • #2
    Ben
    Is there a specific reason why you are using a multiplier in the calculation of Out?
    If you don't need the multiplier - other than for plotting purposes which can be resolved differently - then you can easily write the whole formula using only the Formula Wizard. For the sum of differences you would compute a 13 period Momentum at which point you can use the study on study feature of the Formula Wizard to calculate Out and Avg
    For information on the Formula Wizard see the Formula Wizard Guide in the EFS KnowledgeBase which also contains a link to examples of studies on studies.
    Alex

    Comment

    Working...
    X