I have some counting logic applies to bars. I will add numbers above or below the bars.
I am seeing some strange behavior which is leaving me slightly perplexed...
I either add my numbers (counter value) above the bar... or below the bar.
If am adding above the bar, i am using:
Draw.Text(this, "S" + (CurrentBar), true, "" + (counterSs) , 0, High[0], 20, Brushes.Lime, new SimpleFont("Arial", 12),TextAlignment.Center,Brushes.Transparent, Brushes.Transparent, 0);
It looks great... but its not actually on the high ... I expect that it should be on the high.
Do you agree ? (i haven't said High[0] + X in my code line above). The numbers seem to be higher than they should be.
The real problem comes when I am trying to place numbers on the other side, under the bars. I am using the same line as above, but replacing the High[0] with Low[0]:
Draw.Text(this, "B" + (CurrentBar), true, "" + (counterBs * -1) , 0, Low[0] , 20, Brushes.Lime, new SimpleFont("Arial", 12),TextAlignment.Center,Brushes.Transparent, Brushes.Transparent, 0);
You can see this is completely off, the numbers are actually above the low and inside the bar.. despite my line calling on Low[0]. Once again, the numbers seem to be higher than they should be.
Is this a bug ? Or am i missing something ?
As a quick acid test, i did replace both lines above with the 2 lines below:
Draw.Dot(this, "test1" + CurrentBar, true, 0, Low[0], Brushes.Purple); Draw.Dot(this, "test2" + CurrentBar, true, 0, High[0], Brushes.Blue);
Any ideas on what could be causing the Draw.Text outputs to NOT display at the exact high/lows as you would expect if choosing High[0] and Low[0] ?
Thanks
A
Comment