//Tutorial AFL made by Abnash Singh abnash1978@yahoo.co.uk on 24th MArch 2012 Plot(C,"Price",IIf(O>C,colorRed,colorGreen),styleBar); Buy=Cross(EMA(C,5),EMA(C,8)); Sell=Cross(EMA(C,8),EMA(C,5)); x=ATR(10); Plot(EMA(C,5),"",colorGreen,styleLine|styleNoTitle); Plot(EMA(C,8),"",colorYellow,styleLine|styleNoTitle); stopline=IIf(BarsSince(Buy)