When the candle is bullish, that is correct, the number appears at the bottom, but I also want it to appear at the top when the candle is bearish.
I send you the code and also the image.
Thank you very much in advance...
if (Instrument.MasterInstrument.Name == "MNQ")
if (Close[0] > Open[0]) // candle is an up 'green' bar
{
_barCntr = ((High[0] - Low[0]) / TickSize) /2;
Draw.Text(this, CurrentBar.ToString(), true, _barCntr.ToString("C"), 0, _textYStartingPoint, _pixelsAboveBelowBar, _textColorDefinedbyUser, myFont, TextAlignment.Center, null, null, 1);
}
else
_barCntr = ((High[0] - Low[0]) / TickSize) /2;
Draw.Text(this, CurrentBar.ToString(), true, _barCntr.ToString("C"), 0, _textYStartingPoint, _pixelsAboveBelowBar, _textColorDefinedbyUser, myFont, TextAlignment.Center, null, null, 1);

Comment