NexusFi: Find Your Edge


Home Menu

 





How to back test in Ninja


Discussion in NinjaTrader

Updated
    1. trending_up 3,421 views
    2. thumb_up 4 thanks given
    3. group 2 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread

How to back test in Ninja

  #1 (permalink)
 dandxg 
Denver, Colorado
 
Experience: Intermediate
Platform: Ninja Trader
Trading: ES, CL, anything that makes $$
Posts: 178 since Nov 2009
Thanks Given: 164
Thanks Received: 77

How do you back test in Ninja. I watched the video and ran a simple back test on the sample MA crossover Ninja gives. Is it really as simple as that?

I ask because I plan on running a back test on a fully automated strategy to verify the forward test results I have estimated. Let me explain without hopefully getting off point. I have been watching Bill from EOT PRO's automated strategy for almost 2 months. I am pretty convinced it works, but since I haven't had access to the indicators I have had to estimate the profit and losses. I want to validate what my eye has seen. I plan on signing up next week with them and getting access to their indicators.

Will it be as simple as selecting the indicators from the drop down list and hitting the run back test option in Ninja? I can't be this simple can it. Please inform me about possible gotchas that I am missing. I plan to include for slippage and commissions to ensure as realistic as possible.

Every video or link I see is on how to develop a strat. I have own I just need to thoroughly test it using Ninja because that is all I will have access to and will be automated trading off of.

Thank you much for you help in advance.

Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
ZombieSqueeze
Platforms and Indicators
Better Renko Gaps
The Elite Circle
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Increase in trading performance by 75%
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
34 thanks
Tao te Trade: way of the WLD
24 thanks
Bigger Wins or Fewer Losses?
18 thanks
GFIs1 1 DAX trade per day journal
16 thanks
Vinny E-Mini & Algobox Review TRADE ROOM
13 thanks
  #3 (permalink)
 dandxg 
Denver, Colorado
 
Experience: Intermediate
Platform: Ninja Trader
Trading: ES, CL, anything that makes $$
Posts: 178 since Nov 2009
Thanks Given: 164
Thanks Received: 77



artemiso View Post
I'm not sure if I understand what you're saying correctly.

You cannot carry out a backtest on an indicator - you have to write a strategy with appropriate conditional statements for entry and exit that call the indicator(s). Thank you for clarifying it is a fully automated strategy comprised of indicators. Now that we have that cleared up is it simply loading the strat and hitting backtest or is there some coding or other things needed involved?

Some considerations:
- From a decision theory point of view, it doesn't make sense to sell a successful automated strategy. If I had written a successful automated strategy, I would keep it to myself and find clients/borrow capital for the strategy. If I wrote a program that can make 1% unleveraged, annualized return on an S&P 500 contract without going bust during the duration of trading, that would be >US$650 return on each contract traded (before slippage and transaction costs). Selling it for any less than that is either charity or suspicious. I agree with you in that most sellers of auto strats are scammers, but I have known this group for several years and have watched the strat live now for almost 2 months
- Even if it is charity, market forces would result in enough demand for and purchase of the said strategy until its profits reach equilibrium as the effect of the sheer number of people using the same strategy renders the strategy unprofitable. This could be a possibility especially since one of the markets is CL used in the auto strat
- Does the seller of the strategy state the risk measures clearly? What is the maximum drawdown? Also, multiply the maximum drawdown by a safety factor (e.g. 2). Every automated strategy eventually becomes unprofitable. There are several ways of knowing, once of which is that is sustains losses that aren't expected from the backtest results. There's a better way of doing this called inference testing, but using a simple multiplication is a quick way to start. A drawdown much larger than historical maximum drawdown is such an example. Is it suitable for your risk appetite (can you watch such losses and still place faith in the algorithm that it will recover the losses over due time)?

You have give me a lot of good points to think about and I really appreciate it.

Started this thread Reply With Quote
  #4 (permalink)
 dandxg 
Denver, Colorado
 
Experience: Intermediate
Platform: Ninja Trader
Trading: ES, CL, anything that makes $$
Posts: 178 since Nov 2009
Thanks Given: 164
Thanks Received: 77

Thank you very much artemiso for all of those helpful tips. I should be back testing the strategy soon, in the next week, so I will report back. Enjoy the rest of your weekend.

Dan

Started this thread Reply With Quote




Last Updated on August 26, 2012


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts