VIDEO TUTORIAL: How to create an advanced NinjaTrader Strategy - NinjaTrader | futures io social day trading
futures io futures trading


VIDEO TUTORIAL: How to create an advanced NinjaTrader Strategy
Updated: Views / Replies:54,119 / 63
Created: by Big Mike Attachments:3

Welcome to futures io.

(If you already have an account, login at the top of the page)

futures io is the largest futures trading community on the planet, with over 90,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

Reply
 3  
 
Thread Tools Search this Thread
 

VIDEO TUTORIAL: How to create an advanced NinjaTrader Strategy

  #31 (permalink)
Elite Member
BC Canada
 
Futures Experience: Beginner
Platform: Several
Favorite Futures: Stocks, Currency
 
Posts: 25 since Apr 2011
Thanks: 29 given, 4 received

Hi; Mike
Very nice and very help full Great job. The video was clear, valuable and easy to understand.
Best Regards

Reply With Quote
 
  #32 (permalink)
Elite Member
minneapolis
 
Futures Experience: Beginner
Platform: ninjatrader
Favorite Futures: nq
 
Posts: 6 since Aug 2010
Thanks: 1 given, 0 received

thanks

Thanks Mike for the video . Very helpful for a new guy.

Reply With Quote
 
  #33 (permalink)
Elite Member
Boston Massachusetts
 
Futures Experience: Intermediate
Platform: TOS NinjaTrader MetaTrader
Favorite Futures: ES
 
Posts: 1 since May 2011
Thanks: 9 given, 0 received

helpful end-to-end tutorial


(My first post as a new member -- hi everyone! Mike, this site is amazing, so much quality content...)

This video was very helpful for me, simply by going through the entire process from start to finish in a straightforward fashion. I appreciate that you took the time to capture a legible HD video. +1 for high-speed typing and compile-from-the-hip.

Now armed with some programming experience, and this video, I'm off to write my first ninjascript strategy.

(again: This site! Think of the dollars and years you've saved everyone by bringing this together in one spot...)

Thanks!

Reply With Quote
 
  #34 (permalink)
Trading Apprentice
Newark
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: 19711
 
Posts: 2 since Jul 2011
Thanks: 0 given, 1 received

Newbie question

Hey - I am a newbie to Ninja trader platform. I have entered EXACTLY what Big Mike showed in the video but when I compile, I get this error no matter what I do:


Strategy\NewTest.cs The name 'be3' does not exist in the current context CS0103 - click for info 115 26
Strategy\NewTest.cs The name 'be3' does not exist in the current context CS0103 - click for info 116 19

Line 115 and 116 don't contain 'be3'. Is there some simple newbie thing I am missing?! Even if I completely remove be3 from the script and replace it with something else, I still get the same error. So I am mightily confused. Any help would be much appreciated .... Thanks!

WBJo

Reply With Quote
 
  #35 (permalink)
Site Administrator
Manta, Ecuador
 
Futures Experience: Advanced
Platform: My own custom solution
Favorite Futures: E-mini ES S&P 500
 
Big Mike's Avatar
 
Posts: 46,240 since Jun 2009
Thanks: 29,351 given, 83,221 received


WBJo View Post
Hey - I am a newbie to Ninja trader platform. I have entered EXACTLY what Big Mike showed in the video but when I compile, I get this error no matter what I do:


Strategy\NewTest.cs The name 'be3' does not exist in the current context CS0103 - click for info 115 26
Strategy\NewTest.cs The name 'be3' does not exist in the current context CS0103 - click for info 116 19

Line 115 and 116 don't contain 'be3'. Is there some simple newbie thing I am missing?! Even if I completely remove be3 from the script and replace it with something else, I still get the same error. So I am mightily confused. Any help would be much appreciated .... Thanks!

WBJo

You have a type-o. Case sensitivity matters.

Mike

Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.

Need help?
1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first.
2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses.
3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make.
4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance.
5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers.
6)
Help using the forum? Watch this video to learn general tips on using the site.

If you want
to support our community, become an Elite Member.

Reply With Quote
 
  #36 (permalink)
Trading Apprentice
Newark
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: 19711
 
Posts: 2 since Jul 2011
Thanks: 0 given, 1 received

Thanks Mikewbjoh998 - I figured that part out, and checked everything. Still possible, of course (been down that road many times win other programming environments) but I'm guessing not. When I load a standard indicator like Bollinger and try to compile I get a similar error message, which leads me to believe something is wrong in general with my installation.

Reply With Quote
The following user says Thank You to WBJo for this post:
 
  #37 (permalink)
Elite Member
Quebec
 
Futures Experience: Intermediate
Platform: MultiCharts
Favorite Futures: Futures
 
Posts: 3 since Nov 2012
Thanks: 0 given, 0 received

"Optimize on"

Hi Mike, Thank you for this video, it was really helpful.

I am wondering how I could program my own set of rule to "optimize on" like you did with " _mike_preferred" I don't have problem to program in C# and I already did some strategies who look profitable when I test them in the market replay.

But I would really like to be able to set my own set of rule for optimization.
Please help me with that.

Thank you

Reply With Quote
 
  #38 (permalink)
Elite Member
baltimore marylnd
 
Futures Experience: Beginner
Platform: ninja
Favorite Futures: es
 
Posts: 69 since May 2013
Thanks: 1 given, 6 received

hi i'm not a programmer but am learning from this script. this script seems to buy 3 contracts. how can I only make it one contract?
 
Code
		private void GoLong()
		{
			SetStopLoss("target1", CalculationMode.Price, Close[0] - (Stop*TickSize), false);
			
			SetProfitTarget("target1", CalculationMode.Price, Close[0] + (Target1*TickSize));
			SetProfitTarget("target2", CalculationMode.Price, Close[0] + ((Target1+Target2)*TickSize));
			SetProfitTarget("target3", CalculationMode.Price, Close[0] + ((Target1+Target2+Target3)*TickSize));
			
			EnterLong("target1");

						
		}
will that do?

what I'm trying to do is, buy 1 contract when my signal occurs, and move my targets and stops as they occur only for ONE contract

Reply With Quote
 
  #39 (permalink)
Elite Member
Atkinson, NH USA
 
Futures Experience: Intermediate
Platform: NinjaTrader 8/TensorFlow
Broker/Data: NinjaTrader Brokerage
Favorite Futures: Futures, CL, ES, ZB
 
NJAMC's Avatar
 
Posts: 1,925 since Dec 2010
Thanks: 2,962 given, 2,294 received


calhawk01 View Post
hi i'm not a programmer but am learning from this script. this script seems to buy 3 contracts. how can I only make it one contract?
 
Code
		private void GoLong()
		{
			SetStopLoss("target1", CalculationMode.Price, Close[0] - (Stop*TickSize), false);
			
			SetProfitTarget("target1", CalculationMode.Price, Close[0] + (Target1*TickSize));
			SetProfitTarget("target2", CalculationMode.Price, Close[0] + ((Target1+Target2)*TickSize));
			SetProfitTarget("target3", CalculationMode.Price, Close[0] + ((Target1+Target2+Target3)*TickSize));
			
			EnterLong("target1");

						
		}
will that do?

what I'm trying to do is, buy 1 contract when my signal occurs, and move my targets and stops as they occur only for ONE contract

You should be able to delete the following line because you don't enter a position with a similar name:
SetProfitTarget("target2", CalculationMode.Price, Close[0] + ((Target1+Target2)*TickSize));
SetProfitTarget("target3", CalculationMode.Price, Close[0] + ((Target1+Target2+Target3)*TickSize));

Nil per os
-NJAMC [Generic Programmer]

LOM WIKI: NT-Local-Order-Manager-LOM-Guide
Artificial Bee Colony Optimization
Reply With Quote
 
  #40 (permalink)
Elite Member
baltimore marylnd
 
Futures Experience: Beginner
Platform: ninja
Favorite Futures: es
 
Posts: 69 since May 2013
Thanks: 1 given, 6 received


Thank you for the reply.

Now I have:

 
Code
		private void GoLong()
		{
			SetStopLoss("target1", CalculationMode.Price, Close[0] - (Stop*TickSize), false);
			
			SetProfitTarget("target1", CalculationMode.Price, Close[0] + (Target1*TickSize));
			
			EnterLong("target1");

		}


		
		private void ManageOrders()
		{

			if (Position.MarketPosition == MarketPosition.Long)
			{
				if (BE2 && High[0] > Position.AvgPrice + (Target1*TickSize))
					SetStopLoss("target2", CalculationMode.Price, Position.AvgPrice, false);
				
				if (BE3 && High[0] > Position.AvgPrice + ((Target1+Target2)*TickSize))
					SetStopLoss("target3", CalculationMode.Price, Position.AvgPrice, false);
			
			}
This still does not seem to work. It exits at profit target1

Reply With Quote

Reply



futures io > > > > VIDEO TUTORIAL: How to create an advanced NinjaTrader Strategy

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)

Jigsaw Trading: TBA

Elite only

FuturesTrader71: TBA

Elite only

NinjaTrader: TBA

Jan 18

RandBots: TBA

Jan 23

GFF Brokers & CME Group: Futures & Bitcoin

Elite only

Adam Grimes: TBA

Elite only

Ran Aroussi: TBA

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
VIDEO TUTORIAL: How to create an advanced MultiCharts EasyLanguage Strategy Big Mike MultiCharts 39 November 9th, 2017 04:35 AM
VIDEO: MultiCharts vs. NinjaTrader strategy backtesting and optimization Big Mike MultiCharts 53 June 12th, 2016 02:34 PM
Anyone know of good video tutorial for C# language? whoisthere48 NinjaTrader Programming 11 April 1st, 2012 06:33 PM
Is there a video tutorial on creating a NT indicator (in 6.5)? Thanks. aquarian1 NinjaTrader 9 May 16th, 2011 06:56 PM
VIDEO TUTORIAL: How to create an advanced NinjaTrader Strategy Big Mike NinjaTrader Programming 0 January 26th, 2010 06:22 AM


All times are GMT -4. The time now is 11:16 AM.

Copyright © 2017 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
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.
no new posts
Page generated 2017-12-13 in 0.13 seconds with 20 queries on phoenix via your IP 54.227.51.103