Hi Steve,
Could you please explain why you want to use Remap
here? It is not necessary to use Remap
all the time, Plot
function is sufficient 99% of the time. It purely depends on your specific requirements, especially, when you draw using GFXs as shown in the example in the guide.
So, you could simply write:
_SECTION_BEGIN( "Moving Average of RSI" );
perRSI = Param( "RSI Periods", 30, 1, 1440, 1 );
perMA = Param( "RSI MA Periods", 30, 1, 1440, 1 );
OverSoldLvl = Param( "Over Sold Level", 30, 1, 100, 1 );
OverBghtLvl = Param( "Over Bought Level", 70, 1, 100, 1 );
maRSI = MA( RSI( perRSI ), perMA );
Plot( maRSI, "MA RSI", ParamColor( "Color", colorCycle ), ParamStyle( "Style" ) );
PlotGrid( OverSoldLvl, colorBlueGrey, 8 );
PlotGrid( OverBghtLvl, colorBlueGrey, 8 );
_SECTION_END();
P.S. While writing AFL after the User Manual, this webpage is your best friend, because it categorically enlists all the functions. You can also use Context help from AFL Editor to access guide of each and every function that you would be using. Quoting from AFL Editor guide:
You can quickly display relevant AFL function reference page if you press F1 key or choose "Function reference" from the context menu while the caret is inside or right after function name as shown in the picture below: