I tried to create a very simple one with Advanced Order Handling, but it does not work.. Could you help me figure our what is wrong?
protected override void Initialize()
{
Add("AAPL", PeriodType.Minute, 1);
CalculateOnBarClose = true;
}
private IOrder entryOrder = null;
protected override void OnBarUpdate()
{
if (BarsInProgress == 0)
{
if (CrossAbove(SMA(5), SMA(10), 1)
if (entryOrder == null)
entryOrder = EnterLong(1, 100, "AAPLOrder");
}
}
Thank you.

Comment