plot indicator using setplotclour
Posted: Oct 12 2006
I have an indicator that I would like to plot red colour if it is above price highs and blue colour if it is below price lows.
any help is welcomed.
inputs: Lowperiods(7),highperiods(7),displaced(5);
Value1= Lowest(low,Lowperiods)[displaced];
Value2= highest(high,highperiods)[displaced];
value3= IfF(value1<value1[1], Value2,value1);
value4= iff( value2>value2[1],value1,value2);
value5= ifF (value3<value3[1], value4,
iff (value4>value4[1],value3,value3));
plot3(value5,"EXIT");
Jack
any help is welcomed.
inputs: Lowperiods(7),highperiods(7),displaced(5);
Value1= Lowest(low,Lowperiods)[displaced];
Value2= highest(high,highperiods)[displaced];
value3= IfF(value1<value1[1], Value2,value1);
value4= iff( value2>value2[1],value1,value2);
value5= ifF (value3<value3[1], value4,
iff (value4>value4[1],value3,value3));
plot3(value5,"EXIT");
Jack