AddPlot(Brushes.Transparent, "Alert");
to the OnStateChange.
From the following:
--------------------------------------------------------------------------------------------------------
if (Bars.IsFirstBarOfSession) //start counting from first bar of session
{
_barCntr = 1;
}
else
_barCntr++;
if (_showOddNumbers)
{
if (_barCntr % 2 != 0) //is odd number
Draw.Text(this, CurrentBar.ToString(), true, _barCntr.ToString(), 0, _textYStartingPoint, _pixelsAboveBelowBar, _textColorDefinedbyUser, myFont, TextAlignment.Center, null, null, 1);
}
else
{
if (_barCntr % 2 == 0) //is even number
Draw.Text(this, CurrentBar.ToString(), true, _barCntr.ToString(), 0, _textYStartingPoint, _pixelsAboveBelowBar, _textColorDefinedbyUser, myFont, TextAlignment.Center, null, null, 1);
}
---------------------------------------------------------------------------------------------------------
From what do I derive the current bar value to place into the alert log?
Hence:
Alert[0] = ??;
Thanx
!

Comment