this is in my initialize
SetProfitTarget(CalculationMode.Ticks, target);
SetStopLoss(CalculationMode.Ticks, stop);
2011-03-11 11:36:38:906 Db.Globals.StrategyUpdateJob2: WARNING: Execution='f5aeb0ee365c49cc8f85ab7998906b24' Instrument='ES 03-11' Account='AutoTrade' Name='Short' Exchange=Default Price=1296.5 Quantity=1 Market position=Short Commission=2.5 Order='e0051ce2948241179af5ef05463b6aac' Time='3/10/2011 10:07:16 AM'
2011-03-11 11:36:38:906 Db.Globals.StrategyUpdateJob2: WARNING: Execution='a42b8ab76a484c42ac50535fdd412219' Instrument='ES 03-11' Account='AutoTrade' Name='Trail' Exchange=Default Price=1303.5 Quantity=1 Market position=Long Commission=2.5 Order='52db3bbc9bd9464592c952295728bf0a' Time='3/10/2011 12:00:02 PM'
2011-03-11 11:36:39:236 Failed to execute DB job 'StrategyUpdateJob': A foreign key value cannot be inserted because a corresponding primary key value does not exist. [ Foreign key constraint name = FK__nt_strategy2execution__000000000000028B ]
Comment