I have a problem with the these "If" instruction. I create these lines of code in OnBarUpdate with two diferent instructions.
if (Close[1] != Open[0]);
{
If(xxx)
{
Draw.Rectangle(xxxx, blue);
}
If(yyy)
{
Draw.Rectangle(xxxx.green):
}
If (xxx) == (yyy)return;
My problem is when loading the indicator it does not draw the two different rectangles on the chart. In the data output window it does print correctly everything I want it, but I not find the way to draw it correctly on the Chart.
If I erase one of the two variables it works perfectly but I only get it to draw correctly one type of the instruction. Any way to can make work the chart with the 2 instructions at same time.
Thanks in advance
Comment