Ninja Trader Strategy Wait 10 bars before entering into a trade. - NinjaTrader Programming | futures io social day trading
futures io futures trading


Ninja Trader Strategy Wait 10 bars before entering into a trade.
Updated: Views / Replies:1,835 / 7
Created: by wallsteetking Attachments:2

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
 
Thread Tools Search this Thread
 

Ninja Trader Strategy Wait 10 bars before entering into a trade.

  #1 (permalink)
Trading Apprentice
MN
 
Futures Experience: Intermediate
Platform: Ninjatrader
Favorite Futures: ES
 
Posts: 25 since Feb 2011
Thanks: 4 given, 0 received

Ninja Trader Strategy Wait 10 bars before entering into a trade.

Hi guys is it possible to tell Ninjatrader when a condition is meet that it waits 10 bars before entering into the trade.

For example lets say I have a strategy to go long when the 20 EMA crosses above the 50 EMA line. When this condition is met , it should wait 10 bars THEN enter into the trade.

Reply With Quote
 
  #2 (permalink)
Quick Summary
Quick Summary Post

Quick Summary is created and edited by users like you... Add FAQ's, Links and other Relevant Information by clicking the edit button in the lower right hand corner of this message.

 
  #3 (permalink)
 Vendor: www.innovative-trading-solutions-online.com 
Hartford, CT. USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: AMP/CQG, Kinetick
Favorite Futures: TF
 
RJay's Avatar
 
Posts: 677 since Jun 2009
Thanks: 726 given, 740 received



wallsteetking View Post
Hi guys is it possible to tell Ninjatrader when a condition is meet that it waits 10 bars before entering into the trade.

For example lets say I have a strategy to go long when the 20 EMA crosses above the 50 EMA line. When this condition is met , it should wait 10 bars THEN enter into the trade.


When the 2 EMA's cross, record and save the count value of CurrentBar. When CurrentBar +10 is met, enter trade.

RJay

Reply With Quote
The following user says Thank You to RJay for this post:
 
  #4 (permalink)
 Vendor: www.traderwerks.com 
Taipei Taiwan
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: Optimus
Favorite Futures: TW
 
Posts: 693 since Jun 2009
Thanks: 440 given, 440 received


wallsteetking View Post
Hi guys is it possible to tell Ninjatrader when a condition is meet that it waits 10 bars before entering into the trade.

For example lets say I have a strategy to go long when the 20 EMA crosses above the 50 EMA line. When this condition is met , it should wait 10 bars THEN enter into the trade.

Instead of using EMA(20)[0] , use EMA(20)[10] after making sure you have enough bars of data.

Math. A gateway drug to reality.
Reply With Quote
 
  #5 (permalink)
Trading Apprentice
MN
 
Futures Experience: Intermediate
Platform: Ninjatrader
Favorite Futures: ES
 
Posts: 25 since Feb 2011
Thanks: 4 given, 0 received


traderwerks View Post
Instead of using EMA(20)[0] , use EMA(20)[10] after making sure you have enough bars of data.


RJay View Post
When the 2 EMA's cross, record and save the count value of CurrentBar. When CurrentBar +10 is met, enter trade.

RJay

RJay is it possible to do this on the strategy wizard??

traderwerks
I tried it but does not work. I included a picture to explain my issue with the strategy.

Thank you guys for your help.

Attached Thumbnails
Ninja Trader Strategy Wait 10 bars before entering into a trade.-example.jpg  
Reply With Quote
 
  #6 (permalink)
 Vendor: www.innovative-trading-solutions-online.com 
Hartford, CT. USA
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: AMP/CQG, Kinetick
Favorite Futures: TF
 
RJay's Avatar
 
Posts: 677 since Jun 2009
Thanks: 726 given, 740 received


wallsteetking View Post
RJay is it possible to do this on the strategy wizard??

traderwerks
I tried it but does not work. I included a picture to explain my issue with the strategy.

Thank you guys for your help.


I think traderwerks idea is better because it allows more flexibility and is easier to code.

You can use current market position to keep trade from happening if movement is unfavorable.

RJay

Reply With Quote
The following user says Thank You to RJay for this post:
 
  #7 (permalink)
Trading for Fun
College Point, NY (Queens)
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: AMP/CQG
Favorite Futures: YM
 
Posts: 63 since Nov 2009
Thanks: 5 given, 20 received


traderwerks View Post
Instead of using EMA(20)[0] , use EMA(20)[10] after making sure you have enough bars of data.

This gets the EMA(20) 10 bars ago, but how do you know that the crossing occurred there ? Even if you compare EMA(20)[10] to EMA(50)[10], you still may not know that the crossing occurred there.

I agree with rjay, I think saving the CurrentBar at the crossing is the way to go. Compare apples to apples (bar nums to bar nums).


Last edited by kandlekid; October 26th, 2011 at 01:07 AM.
Reply With Quote
 
  #8 (permalink)
 Vendor: www.traderwerks.com 
Taipei Taiwan
 
Futures Experience: Advanced
Platform: NinjaTrader
Broker/Data: Optimus
Favorite Futures: TW
 
Posts: 693 since Jun 2009
Thanks: 440 given, 440 received

Here, it was just easier to write it than explain it.

I put the code int the download section Lagged Moving Average Crossover.

Math. A gateway drug to reality.
Attached Thumbnails
Ninja Trader Strategy Wait 10 bars before entering into a trade.-wsk-aapl-daily-6_10_2011-10_25_2011.jpg  
Reply With Quote
The following user says Thank You to traderwerks for this post:

Reply



futures io > > > > > Ninja Trader Strategy Wait 10 bars before entering into a trade.

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
Ninja Trader chart trader toggle? GaryD NinjaTrader 5 December 17th, 2011 12:40 AM
Entering into a trade with a trailing stop order? Arpad Traders Hideout 6 February 7th, 2011 10:55 AM
Cannot connect to Mirus/Zenfire using Ninja 7.0_Beta20 on 9/11/10 TheWizard Reviews of Brokers and Data Feeds 7 September 12th, 2010 02:43 PM
Gold Mine in Afghanistan? Wait 10 Years: Gartman Quick Summary News and Current Events 0 June 14th, 2010 03:50 PM
anyone have data txt file for ninja 1-1-10 to tdy ceramictilepro Reviews of Brokers and Data Feeds 8 May 12th, 2010 01:43 PM


All times are GMT -4. The time now is 05:26 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-16 in 0.12 seconds with 20 queries on phoenix via your IP 54.160.245.121