I had the 2nd condition in another section my indicator and it just was drawing the arrow. I ran prints that came back true, but no arrow. I thought maybe there was a stray bool somewhere so I took that line of code and stuck it right underneath the line that was drawing accurately. Still it wouldn't work. They are the exact condition!!
I then tried placing additional drawing methods in the working code and those wouldn't draw!!!. I commented out the drawing method that was working and compiled. This time nothing worked. I placed the previously working drawing method back in, compiled, and it worked, but only that method(DrawDiamond).
After typing the above I tried other Draw methods wondering if the DrawDiamond() was working when the other weren't and sure enough it draws in both conditions, but the other methods will not draw. What is going on? Here is the code.
if(dema_Up_slow_background > 50 && Close[0] >= channel_upper_line && Close[1] < channel_upper_line)
{
DrawDiamond("Whats Up" + CurrentBar, true, 0, High[0] + .15, Color.DarkOrchid);//Working
DrawArrowUp("going Up", true, 0, Low[0] - .3, Color.DarkTurquoise); //Not Working
channel_break_up = true;
DrawText("Low", "Low", correction_low_1_bar, Low[correction_low_1_bar] - .25, Color.DodgerBlue);//Not Working
DrawDiamond("Screwed Up" + CurrentBar, true, 0, High[0] + .35, Color.Black);//Working
}
if(dema_Up_slow_background > 50 && Close[0] >= channel_upper_line && Close[1] < channel_upper_line)
{
DrawArrowUp("going Up", true, 0, Low[0] - .3, Color.DarkTurquoise);//Not working
Print(Time[0]);
Print("Condition true");
DrawDiamond("screwed Up" + CurrentBar, true, 0, Low[0] - .15, Color.DarkOrchid);//Working
DrawDot("xxxxx", true, 0, Low[0] - .3, Color.Bisque);//Not working
}
Any help insights would be greatly appreciated.
Comment