simple strategy to enter CCI cross +45/-45 - NinjaTrader Programming | futures io social day trading
futures io futures trading


simple strategy to enter CCI cross +45/-45
Updated: Views / Replies:2,693 / 5
Created: by emini_Holy_Grail Attachments:0

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
 

simple strategy to enter CCI cross +45/-45

  #1 (permalink)
Elite Member
Dallas,TX
 
Futures Experience: Intermediate
Platform: NinjaTrader, OpenQuant
Broker/Data: Zaner/Zen Fire
Favorite Futures: ES,6E,6B,GC,CL
 
Posts: 590 since Nov 2009
Thanks: 176 given, 116 received

simple strategy to enter CCI cross +45/-45

{
// Condition set 1
if (CrossAbove(Close, CCI(14), 1))
{
EnterLong(DefaultQuantity, "");
}

// Condition set 2
if (CrossBelow(Close, CCI(14), 1))
{
EnterShort(DefaultQuantity, "");
}
}

This is to make a simple strategy to enter Long when CCI cross a certain value like +45 or vice versa for -45. I believe this code will enter Long when CCI crosses zero? sorry guys I am brand new to coding, so need some help.
Any help is appreciated

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)
Elite Member
Milan (I)
 
Futures Experience: Advanced
Platform: Ninjatrader
Broker/Data: Kinetick
Favorite Futures: FDAX,6E,CL,YM,NQ,ES
 
redratsal's Avatar
 
Posts: 1,653 since Oct 2010
Thanks: 1,217 given, 2,068 received



emini_Holy_Grail View Post
{
// Condition set 1
if (CrossAbove(Close, CCI(14), 1))
{
EnterLong(DefaultQuantity, "");
}

// Condition set 2
if (CrossBelow(Close, CCI(14), 1))
{
EnterShort(DefaultQuantity, "");
}
}

This is to make a simple strategy to enter Long when CCI cross a certain value like +45 or vice versa for -45. I believe this code will enter Long when CCI crosses zero? sorry guys I am brand new to coding, so need some help.
Any help is appreciated

Hi,

You forgot to set the numeric value of your CCI

protectedoverridevoid OnBarUpdate()
{
// Condition set 1
if (CrossAbove(CCI(14), 45, 1))
{
EnterLong(DefaultQuantity,
"");
}
}

For such strategy you better use the NT strategy wizard once you have finished you can unlock the code and modify it

Reply With Quote
The following 2 users say Thank You to redratsal for this post:
 
  #4 (permalink)
Elite Member
Dallas,TX
 
Futures Experience: Intermediate
Platform: NinjaTrader, OpenQuant
Broker/Data: Zaner/Zen Fire
Favorite Futures: ES,6E,6B,GC,CL
 
Posts: 590 since Nov 2009
Thanks: 176 given, 116 received

redratsal

Thks and will try it, but is my logic correct?

I gave pirce close crossabove and below CCI value,(unlike price close > EMA 20) etc, but in this case it is not price in the CCI panel. would you mind verify that for me

Reply With Quote
 
  #5 (permalink)
Elite Member
Milan (I)
 
Futures Experience: Advanced
Platform: Ninjatrader
Broker/Data: Kinetick
Favorite Futures: FDAX,6E,CL,YM,NQ,ES
 
redratsal's Avatar
 
Posts: 1,653 since Oct 2010
Thanks: 1,217 given, 2,068 received


emini_Holy_Grail View Post
redratsal

Thks and will try it, but is my logic correct?

I gave pirce close crossabove and below CCI value,(unlike price close > EMA 20) etc, but in this case it is not price in the CCI panel. would you mind verify that for me

The script refet to price close: if the bar[0] crossabove the level 45 of your CCI than enter long.
Since I am using a cross strategy in "the battle of the bot" thread you can download it and use it as an example. https://futures.io/elite-group-trading-methods/7455-battle-bots-do-you-have-what-takes-win.html

Reply With Quote
The following 2 users say Thank You to redratsal for this post:
 
  #6 (permalink)
Elite Member
Dallas,TX
 
Futures Experience: Intermediate
Platform: NinjaTrader, OpenQuant
Broker/Data: Zaner/Zen Fire
Favorite Futures: ES,6E,6B,GC,CL
 
Posts: 590 since Nov 2009
Thanks: 176 given, 116 received

Thks and let me check out there

Reply With Quote

Reply



futures io > > > > > simple strategy to enter CCI cross +45/-45

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
CCI Cross Zero Line Indicator Senna NinjaTrader Programming 13 August 23rd, 2012 01:12 PM
Viper has a "order entry strategy" that you can use to enter and exit. rcr3908 NinjaTrader 2 April 30th, 2011 06:20 PM
Using IQ feed to enter vs brokers feed to enter auto FX trades Stem1 Currency Futures 3 March 4th, 2011 09:24 PM
Simple strategy vast NinjaTrader Programming 19 August 5th, 2010 06:39 PM
MA cross Buy/Sell Strategy - need help SPMCC NinjaTrader Programming 11 January 31st, 2010 07:16 PM


All times are GMT -4. The time now is 03:28 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-18 in 0.11 seconds with 19 queries on phoenix via your IP 54.163.209.109