Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
It doesn't seem like NT7 is calculating the MAE correctly on my historical trades. I did a quick check against the WIKI to make sure I understood the stat which I think of as the max draw-down during a single trade. This is how I calculate it within my own tools.
Here is a historical set of data:
The MAE ends up tracking the Profit for the trade (offset by the commission). Do I have something set wrong as I have lost some time because I saw some of these trades, set the Stop Loss to eliminate all the losing trades only to find many of the profitable trades now stop out (although they had a MAE = 0 prior to the SL being set).
It is clear the MAE=0 trades (some) dipped to a lose during the active trade, why doesn't this stats window reflect that fact?
I am using a simple 1 Min bar type. Nothing exotic, figured easiest case. Also noticed that ETD is equal to the commission for profitable trades, so something simply isn't working.
One thing to note is this is a MTF strategy, everything is traded on the primary 1 Min bar, but there is a 5min and 10 min bar as the 2nd and 3rd timeframe (only used for indicator calculations).
I suggest deleting the Documents\NinjaTrader 7\db\cache, and Documents\NinjaTrader 7\cache directory (stop Ninja and restart when doing this). I have had these become corrupted before, as have others, and cause all kinds of weird problems with backtests.
You might also repair your database, and/or "delete" it by renaming it to something else and restarting NinjaTrader to see if it solves the problem.
If none of these solve it then it's something with the strategy code, first prove a working sample on a single time frame strategy.
I cannot help much with MTF strategies because to be honest I gave up on getting them to work, just too many "gotchas" I kept running into. Are you using the LOM?
I will give that a shot, Deleted the NT7\Cache directory earlier but I will try the db cache as well. I am not using LOM as of yet, might dust it off to handle some of these issues. Also might just print out my own stats, would be nice to use them within NT7 for debugging.
I will test it out tomorrow, need to turn in still recovering from a Cold or something...
I had to restart NT7 as it crashed do to a bad coding problem, when I restarted, I tried a slightly different set of months of data. It seemed to of fixed itself when I did this, something was corrupt...