************************************************** ************************************************** ******
question 1:
marked as number "1" in the picture.
Task: exiting a position by named linked orders.
Location: Trade Performance table//tab Trades($)
Problem: shows incorrect name values.
Steps:
1. order(s) closing: the ExitLong(SignalName, FromEntrySignal) method with parameters:
1. SignalName ='ES :196:LONG.CLOSE'
2. FromEntrySignal='ES :196:LONG'
The trace of close order (bottom of the picture) shows the correct execution of orders related by name.
but the table shows incorrect Entry name data.
The execution time of two successively closed orders does not affect this behavior.
Q1?: it is my bug or Yours?
************************************************** ************************************************** ******
question 2:
marked as number "2" in the picture.
Task: to get the realized/unrealized profit loss on close order(s). TotalPnl in real Time
Location: Base window. tab Accounts//Trade Performance table, tab Trades($)
Problem: I get secondary data in close order or I don't find a method to get data.
Steps:
I want to get the last record on close order(s) from the Trade Performance table, tab Trades($) trader number 8 in the picture:
1.
var lastTrade = SystemPerformance.AllTrades[SystemPerformance.AllTrades.Count - 1] ; // or RealTimeTrades or SystemPerformance.RealTimeTrades.TradesPerformance ;
if I used this method, I can't get ALL trades per day from the table, but only those trades that were made during the working of the strategy.
and can't get the real Last row of the Trades($) table. I get a second row(before last)
2. on close order I want to get data from the tab Accounts:
in if (State == State.SetDefaults){ lock (Account.All)myAccount = Account.All.FirstOrDefault(a => a.Name == "Sim101"); } in override void OnExecutionUpdate(....){ var RealPnl = myAccount.Get(AccountItem.RealizedProfitLoss, Currency.UsDollar); }
in the picture, the green arrows show the values that I need to get, and the red arrow shows the value that I get in reality.
ps. but if I print it data in Open order I get the correct data for all.
I want to get on close order(s):
Q2?: tab Accounts:
the realized/unrealized profit loss from the account tab. TotalPnl in real Time
Q3?: Trades tab:
3.1. a list of ALL trades for the day
3.2. a real Last record with the Trader's Number(8) and a cumulative net profit: -272.50
************************************************** ************************************************** ******
Thanks in advance.
Comment