PureBytes Links
Trading Reference Links
|
I am trying to change the BarColor of a graph when the buy/sell
signal changes. The following codes gives me the results I want but I
can't help think there is an eaisier way.
Is there?
BarColor =IIf(Ref(BarsSince(Buy),-1)<Ref(BarsSince(Sell),-1),5,4);
Graph1 = TrailStop; Graph1Style = 512;
Graph1BarColor=Barcolor;
John Pyle
|