/// <summary>
/// This method is used to configure the indicator and is called once before any bar data is loaded.
/// </summary>
protected override void Initialize()
{
CalculateOnBarClose = true;
Overlay = true;
PriceTypeSupported = false;
_testTag = UniqueID();
}
/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
{
if (CurrentBar > 0)
{
int currentBarMinus1 = CurrentBar - 1;
DrawTextFixed(_testTag, CurrentBar.ToString() + " " + Close[currentBarMinus1].ToString() + " " + Close[CurrentBar].ToString() + " " + (Close[currentBarMinus1] < Close[CurrentBar]).ToString(), TextPosition.TopRight);
}
I do own the lifetime, multivendor version, and I am connected to ZenFire ES-12-08. I am completely up to date. The test chart is set at 1m and there are no other indicators loaded.


Comment