Join our facebook group for Amibroker afl code discussion https://www.facebook.com/groups/603980776889348

Multiple MA Rainbow Trading System

Multiple MA Rainbow Trading System
Multiple MA Rainbow Trading System

//www.aflcode.com
_SECTION_BEGIN( "MA Rainbow");

side = 1;

increment = Param("Increment" ,2, 1, 10, 1 );

for( i = 10; i < 80; i = i + increment )

{

up = MA( C, i );

down = MA( C, i + increment );

if( ParamToggle( "3D effect?", "No|Yes", 1 ) )

side = IIf(up<=down AND Ref( up<=down, 1 ), 1, 0.6 );

PlotOHLC( up,up,down,down, "MA"+i, ColorHSB( 3*(i - 10),

Param("Saturation" , 128, 0, 255 ),

side * Param("Brightness" , 255, 0, 255 ) ), styleCloud |
styleNoLabel );

}

_SECTION_END( );
Previous
Next Post »