Idea - NinjaTrader Programming | futures io social day trading
futures io futures trading


Idea
Updated: Views / Replies:1,163 / 6
Created: by Kush 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
 

Idea

  #1 (permalink)
Trading Apprentice
San Sebastian/Spain
 
Futures Experience: Intermediate
Platform: Ninja Trader
Favorite Futures: Futures
 
Posts: 12 since Sep 2011
Thanks: 0 given, 0 received

Idea

Hi, I have found this idea at Jeffrey Katz Book but I don't get it at all. Can anyone help me to programm this?
If a new 50-day high has occurred within the last 10 days, then Buy. If a new 50-day low has occurred within the last 10 days, then Sell.


// Condition set 1
if (MAX(High, 50)[0] > MAX(High, 10)[0])
{
EnterLong(DefaultQuantity, "");
}

// Condition set 2
if (MIN(Low, 50)[0] < MIN(Low, 10)[0])
{
EnterShort(DefaultQuantity, "");
}

I'm not sure if it's like this.... some help...

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
Mumbai, India
 
Futures Experience: Intermediate
Platform: MT4, NT7,eSignal
Broker/Data: AMP/CQG
Favorite Futures: ZB,ZN,ES,currencies
 
indiantrader's Avatar
 
Posts: 105 since Jul 2010
Thanks: 314 given, 134 received



Kush View Post
Hi, I have found this idea at Jeffrey Katz Book but I don't get it at all. Can anyone help me to programm this?
If a new 50-day high has occurred within the last 10 days, then Buy. If a new 50-day low has occurred within the last 10 days, then Sell.


// Condition set 1
if (MAX(High, 50)[0] > MAX(High, 10)[0])
{
EnterLong(DefaultQuantity, "");
}

// Condition set 2
if (MIN(Low, 50)[0] < MIN(Low, 10)[0])
{
EnterShort(DefaultQuantity, "");
}

I'm not sure if it's like this.... some help...


I guess you can use 50 period SMA applied to the high of bars. Now when close of current bar crosses above this 50 period SMA for highs with look back period of 10 it will meet the condition.

// Condition set 1
if (CrossAbove(Close, SMA(High, 50), 10))
{
EnterLong(DefaultQuantity,
"");
}
// Condition set 2
if (CrossBelow(Close, SMA(Low, 50), 10))
{
EnterShort(DefaultQuantity,
"");
}

You can use the wizard to enter these conditions. Use input series as high or low of price bars.

Reply With Quote
 
  #4 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,653 since Mar 2010
Thanks: 4,226 given, 25,601 received
Forum Reputation: Legendary


Kush View Post
Hi, I have found this idea at Jeffrey Katz Book but I don't get it at all. Can anyone help me to programm this?
If a new 50-day high has occurred within the last 10 days, then Buy. If a new 50-day low has occurred within the last 10 days, then Sell.


// Condition set 1
if (MAX(High, 50)[0] > MAX(High, 10)[0])
{
EnterLong(DefaultQuantity, "");
}

// Condition set 2
if (MIN(Low, 50)[0] < MIN(Low, 10)[0])
{
EnterShort(DefaultQuantity, "");
}

I'm not sure if it's like this.... some help...


Sorry, these conditions do not make sense. Let us examine

 
Code
if (MAX(High, 50)[0] > MAX(High, 10)[0])
This means that the high of the last 50 bars was higher than the high at the last 10 bars. This is the case if after a new high you observe 10 bars with a lower high. This really does not make sense as a condition to enter long. Also, it would be enough to write

 
Code
if (MAX(High, 11)[0] > MAX(High, 10)[0])
to trigger that same entry. The first condition will just trigger additional entries with each following bar that closes below the swing high.

I am sure that Jeffrey Katz did not specify any such condition. Best you point us directly to the source of your wisdom, so that we can find out, what he really meant.

Reply With Quote
 
  #5 (permalink)
Trading Apprentice
San Sebastian/Spain
 
Futures Experience: Intermediate
Platform: Ninja Trader
Favorite Futures: Futures
 
Posts: 12 since Sep 2011
Thanks: 0 given, 0 received

It is explain in the page of 261 of the book The Encyclopedia of Trading Strategies:

If a new 50-day high has ocurred within the last 10 days, then True, else False. Instead True, it can be Buy

I don't know how can I programm this????

Reply With Quote
 
  #6 (permalink)
Elite Member
Berlin, Europe
 
Futures Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker/Data: Interactive Brokers
Favorite Futures: Keyboard
 
Fat Tails's Avatar
 
Posts: 9,653 since Mar 2010
Thanks: 4,226 given, 25,601 received
Forum Reputation: Legendary


Kush View Post
It is explain in the page of 261 of the book The Encyclopedia of Trading Strategies:

If a new 50-day high has ocurred within the last 10 days, then True, else False. Instead True, it can be Buy

I don't know how can I programm this????

Katz/McCormick used that condition for one of the rules for a genetic optimizer. It is not an entry condition but a trendfilter.

The code in NinjaTrader would look like this:

 
Code
private bool rule_6 = false;
for (int i=0; i < 10;  i++)
{
     if ( High[i]  ==  MAX(High, 50)[i]
              rule_6 = true;
}

Reply With Quote
The following 2 users say Thank You to Fat Tails for this post:
 
  #7 (permalink)
Trading Apprentice
San Sebastian/Spain
 
Futures Experience: Intermediate
Platform: Ninja Trader
Favorite Futures: Futures
 
Posts: 12 since Sep 2011
Thanks: 0 given, 0 received

Thank you for the explanation! Yes I found it in the chapter about Genetic Algorithms.


Thank you.

Reply With Quote

Reply



futures io > > > > > Idea

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
Want to create an indicator and have no idea where to start? forrestang NinjaTrader Programming 93 January 20th, 2012 08:33 PM
Will pay you , If You Code This Idea For Me . . . . jmejedi NinjaTrader Programming 11 January 30th, 2011 02:05 AM
Strategy Idea soumi71 NinjaTrader Programming 30 December 2nd, 2009 03:58 PM
script idea sharky NinjaTrader Programming 64 November 15th, 2009 06:05 PM
Downloads/File Sharing: Just an Idea Prtester Feedback and Announcements 2 June 17th, 2009 08:51 PM


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