From .NET signal code I'm trying to get several pieces of information. Any parts that I'm missing would be appreciated:
Needed as strings: Account name, Account balance, Number of contracts, Base instrument.
My attempt at some of these:
Code: Select all
string equity = InitialCapital.ToString() + ", " + NetProfit.ToString();
string status = "Acct: " + Account.ToString() + TradeManager.TradingData.Accounts.ToString() + Profile + " Bal: " + equity + " Cont: " + Contracts.Default.ToString() + " Inst: ";
Note that I could find nothing at all for the base instrument, so it has nothing after "Inst". I can also see in the debugger that the Contracts.Default does not give me the number of contracts, so I know that is wrong as well. Most of this is wrong, I just can't find the values through the documentation.