I am trying to analyze values of a set of indicators (different that strategy variables/indicators) at the time of each entry taken by my strategy. I want to see if I can correlate market environment conditions and trade outcomes (win/loss). I am a newbie to ninjatrader strategy builder and to coding itself.

I would appreciate any code help and code guidance to plan and get to code running within the strategy.
Logic is as follows:
@ Entry E1 save Indicator values of X1, X2, X3... and close of E1 save PnL result
and output this data
I hope others can use this as well. I believe that this can help find correlations between equity curve slopes and market conditions. This could lead to reduce draw downs or improved position sizing.
Thank you in advance,
G


Comment