Thank you for that. Luckily, it compiled, but I keep running into one other issue. For whatever reason, my strat seems to freeze and sometimes not take trades. This example is a simple 20/50 cross, so I'm sure it's not that. Still, I can't figure out why. Does the following mean anything to you?:
5/27/2010 1:04:20 AM Entered internal PlaceOrder() method at 5/27/2010 1:04:20 AM: Action=SellShort OrderType=Market Quantity=1 LimitPrice=0 StopPrice=0 SignalName='Cross2050' FromEntrySignal=''
5/27/2010 1:04:20 AM Enter Short
5/27/2010 1:04:20 AM Cancelled pending exit order, since associated position is closed: Order='NT-00002/Sim101' Name='Profit target' State=Working Instrument='YM 06-10' Action=Sell Limit price=10053 Stop price=0 Quantity=1 Strategy='Cross2050' Type=Limit Tif=Gtc Oco='NT-00000' Filled=0 Fill price=0 Token='8f0317777a2a4849bc3b5e273d135e4c' Gtd='12/1/2099 12:00:00 AM'
The order name Profit target limit price is currently 10053
The order name Profit target limit price is currently 10053
5/27/2010 1:04:20 AM Cancelled pending exit order, since associated position is closed: Order='NT-00001/Sim101' Name='Stop loss' State=Working Instrument='YM 06-10' Action=Sell Limit price=0 Stop price=10002 Quantity=1 Strategy='Cross2050' Type=Stop Tif=Gtc Oco='NT-00000' Filled=0 Fill price=0 Token='4364528086664b73b3177426c7b30ed7' Gtd='12/1/2099 12:00:00 AM'
The order name Stop loss stop price is currently 10002
The order name Stop loss stop price is currently 10002
The order name Stop loss stop price is currently 10002
The order name Stop loss stop price is currently 10002
The order name Stop loss stop price is currently 10002
The order name Profit target limit price is currently 9931
The order name Profit target limit price is currently 9931
The order name Profit target limit price is currently 9931
entryOrder2 = null
5/27/2010 1:04:20 AM Cancelled pending exit order, since associated position is closed: Order='NT-00006/Sim101' Name='Profit target' State=Working Instrument='YM 06-10' Action=BuyToCover Limit price=9931 Stop price=0 Quantity=1 Strategy='Cross2050' Type=Limit Tif=Gtc Oco='NT-00002' Filled=0 Fill price=0 Token='c1c43079daa040dba0fd0c2f7939925f' Gtd='12/1/2099 12:00:00 AM'
The order name Profit target limit price is currently 9931
The order name Profit target limit price is currently 9931
Order='NT-00005/Sim101' Name='Stop loss' State=Filled Instrument='YM 06-10' Action=BuyToCover Limit price=0 Stop price=10002 Quantity=1 Strategy='Cross2050' Type=Stop Tif=Gtc Oco='NT-00002' Filled=1 Fill price=10011 Token='43bb98ddd489437c83e6cced24455a9c' Gtd='12/1/2099 12:00:00 AM'
5/27/2010 1:04:20 AM Cancelled OCO paired order: BarsInProgress=0: Order='NT-00006/Sim101' Name='Profit target' State=Cancelled Instrument='YM 06-10' Action=BuyToCover Limit price=9931 Stop price=0 Quantity=1 Strategy='Cross2050' Type=Limit Tif=Gtc Oco='NT-00002' Filled=0 Fill price=0 Token='c1c43079daa040dba0fd0c2f7939925f' Gtd='12/1/2099 12:00:00 AM'
That's what I get in the output window the instant I start my strat. Then.....nothing. I can't seem to figure out why it sometimes happens and sometimes doesn't.
Dave

Comment