I am modifying the existing EmailTrades indicator found here in the library to also include current daily trade performance information in the email. So what I would like to have happen is when an order is filled it sends the standard email saying , Just filled a trade long xyz at a price but also include, Todays total realized gains are X , todays total unrealized gains are Y.
The first part works, I do have the trade information successfully being emailed out but how can I use GetAtmStrategyUniqueId() and GetAtmStrategyRealizedProfitLoss() data on a trade that was already taken using ATM strategy? Note this is discretionary trading, nothing automated. It's not clear to me how can i still reference the ID of a trade that I manually took off of chart trader?
Thanks,
Evan
Comment