Hello guys ,
Recently I had to ditch amibroker and shift to zerodha pi,can anyone kindly convert the rdma system to tradescript code ?
I'm pasting the AFL of it here
Recently I had to ditch amibroker and shift to zerodha pi,can anyone kindly convert the rdma system to tradescript code ?
I'm pasting the AFL of it here
Code:
Col=IIf( C<MA(C,21) AND C<EMA(C,8) ,colorRed,IIf( C>MA(C,21) AND C>EMA(C,8),colorBlueGrey,IIf(( C<MA(C,21) AND C>EMA(C,8)) OR ( C>MA(C,21) AND C<EMA(C,8)) ,colorYellow,colorYellow)));
Plot( C, "Close", col, styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
Plot(MA(Close,21), "MA1", colorYellow,styleLine|styleDashed|styleThick);
Plot(MA(Close,55), "MA2", colorDarkRed,styleLine|styleDashed|styleThick);
Plot(EMA(Close,8), "EMA1", colorBlue,styleLine|styleDashed|styleThick);
Plot(EMA(Close,15), "EMA2", colorSkyblue,styleLine|styleDashed|styleThick);