The BarColor I am using, as given in the piece of code below behaves correctly but not the drawn triangle. Once drawn it remains. Makes sense of course, but is there a piece of code I could add that would make it disappear when the condition changes while the bar is in progress?
if (Close[0] > Opens[0][0]
&& Rising (LinReg(BarsArray[1],4))
...
&& LinReg(BarsArray[1],4)[0] > LinReg(BarsArray[1],9)[0]
&& Rising (LinReg(BarsArray[3],4)))
{
BarColor = barUpColor;
DrawTriangleUp("My triangle" + CurrentBar, false, 0, EMA(drawplace)[0], DrawUpColor);
}
sandman
Comment