NexusFi: Find Your Edge


Home Menu

 





VIDEO TUTORIAL: How to create an advanced NinjaTrader Strategy


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one calhawk01 with 10 posts (1 thanks)
    2. looks_two Big Mike with 9 posts (193 thanks)
    3. looks_3 stephenszpak with 6 posts (0 thanks)
    4. looks_4 spinnybobo with 6 posts (2 thanks)
      Best Posters
    1. looks_one Big Mike with 21.4 thanks per post
    2. looks_two piersh with 8 thanks per post
    3. looks_3 zeller4 with 7 thanks per post
    4. looks_4 Cloudy with 1.5 thanks per post
    1. trending_up 85,352 views
    2. thumb_up 231 thanks given
    3. group 61 followers
    1. forum 67 posts
    2. attach_file 3 attachments




 
Search this Thread

VIDEO TUTORIAL: How to create an advanced NinjaTrader Strategy

  #61 (permalink)
Shelley
NYC, NY, United States
 
Posts: 9 since Aug 2014
Thanks Given: 27
Thanks Received: 1

I know it's late to reply but the virtual machine is for Linux. Ninja runs native on windows. To run it on Linux you a virtual machine or some workaround. Big Mike mentioned he had a Cron backup running and that's a Linux scheduled task.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Request for MACD with option to use different MAs for fa …
NinjaTrader
NexusFi Journal Challenge - May 2024
Feedback and Announcements
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Retail Trading As An Industry
66 thanks
NexusFi site changelog and issues/problem reporting
46 thanks
Battlestations: Show us your trading desks!
37 thanks
GFIs1 1 DAX trade per day journal
32 thanks
What percentage per day is possible? [Poll]
25 thanks

  #62 (permalink)
Giox
rome - italy
 
Posts: 12 since Oct 2014
Thanks Given: 0
Thanks Received: 0

It's possible to have this code to start ?

I'm a beginner and I'd like to input this on my Platform to improve ad see how it works.

Thank you





Big Mike View Post
In this video tutorial I show how to create a strategy from scratch (not using the wizard, which I never use).

The strategy contains a few optimizable parameters such as SMA length, EMA length, HMA length, three different targets with custom tick settings on each, a stop size, and the option to move target 2 to breakeven after target 1 is hit, as well as move target 3 to breakeven after target 2 is hit.



The strategy is just an example! It took all of 10 minutes to write. Even though it says it made 20k in 90 days over 700 trades, it will likely fail going forward. Simple strategies are usually best, but this one is too simple to work fully automated. Most strategies I write for customers take me hours of work (this one took 10 minutes), so don't just go and copy this strategy and expect good results.

Instead, I created this so you could get your feet wet and learn some of the basics of a more advanced strategy than what Ninja includes with the base install. I also created it so if someone shows you backtest results where it makes tons of money, you can see just how easy it is to produce those results.

Also, don't forget that optimizing based on net profit is virtually worthless. I've spent two years tweaking my custom optimizer type and it considers everything you can imagine such as balanced longs/shorts, trade counts, commission costs, profit factors, expectancy, trade duration, and a bunch of other stuff I don't want to go into because I am not giving it away.

With the normal drop-down list of optimizer types in NT, you don't want to just pick the result that shows the most net profit. You should factor in as many other variables as you can. Unless you're going to do what I did with the custom optimizer, the easiest way is to dump the results to an Excel spreadsheet (feature is built-in to NinjaTrader) and then work some analysis there.

Mike


Reply With Quote
  #63 (permalink)
 ValT 
las vegas
 
Experience: Beginner
Platform: ninja trader
Trading: es,tf
Posts: 8 since May 2014
Thanks Given: 2
Thanks Received: 8


Hello Mike, kudos to you for the effort to sustain this forum over the years. I am a student of the trading game for 2 years now..anyhow, i have a question for you, what is the correct code to have 2 entires in ninja programming, , having them with 1 stop loss, and 2 different profit targets without trailing stops. I am trying to teach myself how to code my ideas correctly in order to backtest fast, because, although going through price bars 1 by 1 has it's benefits, i will grow BIG beard untill i complete 1-2 years of tests.

Reply With Quote
  #64 (permalink)
 Cloudy 
desert CA
 
Experience: Intermediate
Platform: NT7, various
Broker: various, TDA
Trading: NQ,ES
Posts: 2,124 since Jul 2011
Thanks Given: 2,396
Thanks Received: 1,748

MWinfrey has some strategies posted which show the code for multiple trade entries and stops.



Visit my NexusFi Trade Journal Reply With Quote
The following 3 users say Thank You to Cloudy for this post:
  #65 (permalink)
 afshinmoshrefi 
Newburyport, MA / USA
 
Experience: Advanced
Platform: NinjaTrader, TOS
Trading: CL, ES
Posts: 5 since Sep 2012
Thanks Given: 1
Thanks Received: 1

The link to Mike's Video on Ninja Strategy is broken

Reply With Quote
  #66 (permalink)
patricia
Berlin Germany
 
Posts: 113 since Jul 2020
Thanks Given: 9
Thanks Received: 100


afshinmoshrefi View Post
The link to Mike's Video on Ninja Strategy is broken

yes. I stumbled over this thread because I want to learn the basics for indicator/strategy development but the video is not there anymore. Any help appreciated. Thank you

Reply With Quote
  #67 (permalink)
 
bobwest's Avatar
 bobwest 
Western Florida
Site Moderator
 
Experience: Advanced
Platform: Sierra Chart
Trading: ES, YM
Frequency: Several times daily
Duration: Minutes
Posts: 8,157 since Jan 2013
Thanks Given: 57,285
Thanks Received: 26,253


afshinmoshrefi View Post
The link to Mike's Video on Ninja Strategy is broken


patricia View Post
yes. I stumbled over this thread because I want to learn the basics for indicator/strategy development but the video is not there anymore. Any help appreciated. Thank you

Please note that this video was recorded in January 2010, so at best it applies to a very early version of NinjaTrader 7 -- I don't recall the relevant dates now, so perhaps NT 6.5 or earlier.

(I was just able to find a link on the NT support board dated Feb 25, 2010, stating "NT7 is currently in a closed beta. We are looking to do a public beta in the near future.")

Anything it contains will not be relevant to NT 8, which was extensively redesigned from the ground up, and probably not relevant to more current versions of NT 7 either.

Bob.

When one door closes, another opens.
-- Cervantes, Don Quixote
Reply With Quote
The following 2 users say Thank You to bobwest for this post:
  #68 (permalink)
patricia
Berlin Germany
 
Posts: 113 since Jul 2020
Thanks Given: 9
Thanks Received: 100

thanks for clarifying

Reply With Quote





Last Updated on October 23, 2020


© 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