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.
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.
Comment