I get a strange error while trying to plot some object in my script:
As you can see the green dot have all the Y anchor point wrong.
My function is very simple and it is:
if (Close[0] > (High[1] + 4 * TickSize)
&& Close[1] > Open[1]
&& Close[2] < Open[2]
&& Time[1] != tempoBarra
&& ToTime(Time[0]) > 153000 && ToTime(Time[0]) < 220000)
{
Draw.Dot(this, "entry" + CurrentBar, true, Time[0], Close[0], Brushes.Lime);
tempoBarra = Time[1];
}
In the same chart I have another custom indicator that plot the value of swing as text and the y value is correct as you can see.
How can I fix this?
There are not log error message in log tab or in the ninjascript output
thank you, best regards
Andrea
Comment