I need some help.
I am trying to build a strategy to trade Forex that takes into account Position Sizing. More specifically my objective is to have the strategy determine the size of my position based on a fixed % of my account I am willing to risk on each trade. First of all we must distinguish between Direct Rates (e.i. EURUSD, AUDUSD, NZDUSD) and Indirect Rates (USDJPY, USDCAD). For direct rates coding the strategy is simple, however I am encountering problems in coding the strategy for the case of the Indirect Rates.
1.
I need somebody to explain me how the following script works(Performance.AllTrades.TradesPerformance.Currency.C umProfit) or basically from where does it take data? Is this the same data I can see in the Execution/Trades tab when running a strategy in the StrategyAnalyser?
2.
In my strategy I would need Performance.AllTrades.TradesPerformance.Currency.C umProfit to be divided by the SpotRate at the moment of the exit, basically Close[0] at the time the trade occured. This is necessary as the Profit for each trade reported by NT is not in USD terms but in Foreign Currency terms for IndirectRates (e.i. when trading USDJPY the Performance.AllTrades.TradesPerformance.Currency.C umProfit will be expressed in JPY terms, whilst I need to report this back in USD). Could somebody please tell me if this is possible, and if yes what script should I use?
Thanks, sburtt

Comment