What code can I use to tap into the data for both the unrealized and realized PnL that is located in the Strategies Tab (NOT the Market Analyzer or the Accounts)...but the Strategies Tab only unrealized and realized pnl for each instrument?
I would like to add code as a filter to before going long or short and also as a exit filter.
Here is what I am looking to do:
Before going long or short initially, check to be sure the realized pnl for a particular instrument is not below -$X. If it is, then the signal will not fire.
Also, if my strategey calls for reversing if in a current long or short, then I would like it to do the same...check to be sure the realized pnl for a particular instrument is not below -$X. If it is, then it would only exit and not reverse.
Lastly, while in any longs or shorts, if the unrealized profit drops below -$X and/or the realize profit is below -$X then exit the position and also disable the strategy.
Please let me know how you might help if you can...smile.
Greg
Also, if

Comment