If I have 10 different sorts of entry methodologies all entering & exiting at different times how can I keep track of them after order entry execution?
Here's a sequence of code to enter 2 sets of orders, targets & stop losses for
SignalNames Short & Shortr1:
SetProfitTarget("Short", CalculationMode.Price, xx.xx);
SetProfitTarget("Shortr1", CalculationMode.Price, yy.yy);
SetStopLoss("Short", CalculationMode.Price, stop_value_short, false);
SetStopLoss("Shortr1", CalculationMode.Price, stop_value_short, false);
entryOrder_short = EnterShortLimit(0,true,1,entry_value_short,"Short");
entryOrder_shortr1 = EnterShortLimit(0,true,1,entry_value_short,"Shortr1");
This is what I get from printing out the OnExecution events:
Jan 03 12:03 Execution='NT-00040' Instrument='CL 02-14' Account='Sim101' Name='Short' Exchange=Default Price=94.45 Quantity=1 Market position=Short Commission=0 Order='NT-00090' Time='1/3/2014 12:08:15 PM'
Jan 03 12:03 Execution='NT-00041' Instrument='CL 02-14' Account='Sim101' Name='Shortr1' Exchange=Default Price=94.45 Quantity=1 Market position=Short Commission=0 Order='NT-00091' Time='1/3/2014 12:08:15 PM'
Jan 03 13:19 Execution='NT-00042' Instrument='CL 02-14' Account='Sim101' Name='Profit target' Exchange=Default Price=94.2 Quantity=1 Market position=Long Commission=0 Order='NT-00093' Time='1/3/2014 1:31:50 PM'
Jan 03 14:28 Execution='NT-00043' Instrument='CL 02-14' Account='Sim101' Name='Profit target' Exchange=Default Price=93.87 Quantity=1 Market position=Long Commission=0 Order='NT-00095' Time='1/3/2014 2:28:20 PM'
The last 2 events refer to Short & Shortr1 but I wouldn't know it looking at the events.
Is there a way I can keep track of order entry & exit by signal name?
Thanks.

Comment