Code: Select all
//Indicator Long Short
input: Length( 20 ) ;
Value1 = (GradientColor( SlowK(length), 0, 100, Black, Green));
SetPlotColor(1, value1);
plot1( HighestFC( high , Length ), "Ind Go Long" );
Value2 = (GradientColor( SlowK(length), 0, 100, Black, magenta));
SetPlotColor(2, value2);
plot2( LowestFC( Low, Length ), "Ind Go Short" );