Hello all, afl code for the lesson 12/27 coding exits. To plot the code onto a chart (for a look) I added the last line
Plot(ATRst,”TrailStop”,colorAqua,styleLine);
Hmmn not the result I was after.
Any ideas?
Thanks.
PF=ParamField(“Price Field”,1);//price field default to high
ATRP=Param(“ATR Period”,20,1,100,0.1);
ATRV=Param(“ATR Variable”,3,0,10,0,01);
ATRSt=ATR(ATRP)*ATRV;
TrailStop=PF-ATRSt;
Plot(ATRst,”TrailStop”,colorAqua,styleLine);