Could you please help me?
private IOrder entryOrder = null;
#endregion
/// <summary>
/// This method is used to configure the strategy and is called once before any strategy method is called.
/// </summary>
protected override void Initialize()
{
CalculateOnBarClose = true;
}
/// <summary>
/// Called on each bar update event (incoming tick)
/// </summary>
protected override void OnBarUpdate()
{
if (EntryOrder == null && Close[0] > Open[0])
{
entryOrder = EnterLong();
}
}

Comment