What could cause DrawOnPricePanel to not work in this ind., but work in others. Below is a portion of the ind. code. Attached is the complete ind. code. The image shows that the Line & Arrow, highlighted in the code below, are not drawing on the price panel. What might the issue be? Thanks.
if ( IndSwHi1 > IndSwHi0
&& IndSwHi1*deltaIndicator >= Ind1 && PriceSwHi1 <= C1-deltaPrice) //Checks Divergence 2nd Sw Hi back
{
int BarAgo1 = CurrentBar-BarNumSwHi1;
DrawOnPricePanel = true;
DrawLine("PHline2"+CurrentBar.ToString(), true, BarAgo1, PriceSwHi1+(TickSize*MDF), 1, C1+(TickSize*MDF), divergenceColor, DSD, DLW);
DrawArrowDown("ArrowDn"+CurrentBar.ToString(),true ,0,High[0]+TickSize+(TickSize*MDF),Color.Red);
DrawOnPricePanel = false;
DrawLine("IHline2"+CurrentBar.ToString(), true, BarAgo1, IndSwHi1, 1, Ind1, divergenceColor, DSD, DLW);
}
Comment