Hello,
I need help with converting this pine code to AFL.
Thanks a lot in advance.
Hello,
I need help with converting this pine code to AFL.
Thanks a lot in advance.
/// @link https://forum.amibroker.com/t/need-help-with-converting-pine-code-to-afl/15679/2
/// conversion by fxshrat@gmail.com
EMA_len = Param( "EMA length", 21, 1, 300, 1);
ROC_len = Param( "ROC length", 5, 1, 300, 1);
src = C;
smooth = EMA(src, EMA_len);
EMA_Roc = ROC(smooth, ROC_len);
color = IIf(EMA_Roc > Ref(EMA_Roc, -ROC_len), colorGreen, colorRed);
Plot(EMA_Roc, "EMA_Roc", color, styleLine );
PlotGrid( 0, colorGold, 1, 1, True);
Thanks a lot !!
yes, thanks a lot