Using Dow Theory indicator as a filter in automated strategies - NinjaTrader Programming | futures io social day trading
futures io futures trading


Using Dow Theory indicator as a filter in automated strategies
Updated: Views / Replies:4,254 / 8
Created: by nanobiotech Attachments:6

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
 

Using Dow Theory indicator as a filter in automated strategies

  #1 (permalink)
Elite Member
Brisbane, Australia
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Mirus/Zen-Fire
Favorite Futures: CL
 
nanobiotech's Avatar
 
Posts: 670 since Jun 2009
Thanks: 134 given, 428 received

Using Dow Theory indicator as a filter in automated strategies

I have been trialling the Dow Theory indicator in some of my automated strategies and find that it could be a useful additional filter for entries and more importantly, for early exits.

However as always my programming skills let me down to see how I can use this as a filter in a strategy code.

If anyone can suggest a snippet I would appreciate their assistance.

Cheers,
Nano

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
Lubbock TX
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Stage 5 Trading
Favorite Futures: CL
 
MWinfrey's Avatar
 
Posts: 1,879 since Jul 2009
Thanks: 1,449 given, 3,306 received


There are no exposed outputs the way it is currently writtern. So, you can't call this indicator from a strategy. However, it can be modified to allow outputs if I know what you want to use in a strategy. Also, if you want, contact me privately and we can work on it offline.

Reply With Quote
The following user says Thank You to MWinfrey for this post:
 
  #4 (permalink)
Elite Member
Lubbock TX
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Stage 5 Trading
Favorite Futures: CL
 
MWinfrey's Avatar
 
Posts: 1,879 since Jul 2009
Thanks: 1,449 given, 3,306 received

I made a modification to the DowTheory indicator that plots the high/low lines as continuous so you can see what they were in the past.

Also, I am thinking you want this indicator to report bullish, bearish, or chop so you can test for the current condition in your strategy. So, I modified the code so you can do just that. I am attaching it here so you can review it before I post it in the downloads section.

Insert the following code in your strategy to test for the different market conditions.

 
Code
 
if (DowTheory_v1(10).Direction[0] == 1)  // test for a bullish condition
{
     // do something related to a bullish market
}
 
if (DowTheory_v1(10).Direction[0] == -1)  // test for a bearish condition
{
     // do something related to a bearish market
}
 
if (DowTheory_v1(10).Direction[0] == 0)  // test for a choppy condition
{
     // do something related to a choppy market
}

Attached Thumbnails
Using Dow Theory indicator as a filter in automated strategies-cl-01-11-4-betterrenko-12_16_2010.jpg  
Attached Files
Register to download File Type: zip Dow_Theory_v1.zip (6.3 KB, 241 views)
Reply With Quote
The following 12 users say Thank You to MWinfrey for this post:
 
  #5 (permalink)
Elite Member
Brisbane, Australia
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Mirus/Zen-Fire
Favorite Futures: CL
 
nanobiotech's Avatar
 
Posts: 670 since Jun 2009
Thanks: 134 given, 428 received


MWinfrey View Post
I made a modification to the DowTheory indicator that plots the high/low lines as continuous so you can see what they were in the past.

Also, I am thinking you want this indicator to report bullish, bearish, or chop so you can test for the current condition in your strategy. So, I modified the code so you can do just that. I am attaching it here so you can review it before I post it in the downloads section.

Insert the following code in your strategy to test for the different market conditions.

 
Code
 
if (DowTheory_v1(10).Direction[0] == 1)  // test for a bullish condition
{
     // do something related to a bullish market
}
 
if (DowTheory_v1(10).Direction[0] == -1)  // test for a bearish condition
{
     // do something related to a bearish market
}
 
if (DowTheory_v1(10).Direction[0] == 0)  // test for a choppy condition
{
     // do something related to a choppy market
}

Thanks Mike, I'll check it out.

Cheers,
Nano

Reply With Quote
 
  #6 (permalink)
Elite Member
Brisbane, Australia
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Mirus/Zen-Fire
Favorite Futures: CL
 
nanobiotech's Avatar
 
Posts: 670 since Jun 2009
Thanks: 134 given, 428 received


MWinfrey View Post
I made a modification to the DowTheory indicator that plots the high/low lines as continuous so you can see what they were in the past.

Also, I am thinking you want this indicator to report bullish, bearish, or chop so you can test for the current condition in your strategy. So, I modified the code so you can do just that. I am attaching it here so you can review it before I post it in the downloads section.

Insert the following code in your strategy to test for the different market conditions.

 
Code
 
if (DowTheory_v1(10).Direction[0] == 1)  // test for a bullish condition
{
     // do something related to a bullish market
}
 
if (DowTheory_v1(10).Direction[0] == -1)  // test for a bearish condition
{
     // do something related to a bearish market
}
 
if (DowTheory_v1(10).Direction[0] == 0)  // test for a choppy condition
{
     // do something related to a choppy market
}

Your version of the Dow Theory indicator looks great Mike. I think you should post it in the downloads section.

Cheers,
Nano

Reply With Quote
 
  #7 (permalink)
Elite Member
Perth + WA/Australia
 
Futures Experience: Intermediate
Platform: NinjaTrader
Favorite Futures: ES
 
Posts: 8 since May 2012
Thanks: 7 given, 3 received


MWinfrey View Post
I made a modification to the DowTheory indicator that plots the high/low lines as continuous so you can see what they were in the past.

Also, I am thinking you want this indicator to report bullish, bearish, or chop so you can test for the current condition in your strategy. So, I modified the code so you can do just that. I am attaching it here so you can review it before I post it in the downloads section.

Insert the following code in your strategy to test for the different market conditions.

 
Code
 
if (DowTheory_v1(10).Direction[0] == 1)  // test for a bullish condition
{
     // do something related to a bullish market
}
 
if (DowTheory_v1(10).Direction[0] == -1)  // test for a bearish condition
{
     // do something related to a bearish market
}
 
if (DowTheory_v1(10).Direction[0] == 0)  // test for a choppy condition
{
     // do something related to a choppy market
}


I haven't looked at the indicator yet, but it is great to have guys like you on this forum.

I am slowly learning to program, and I can say the only reason I have been successful in doing so is because of examples of code from yourself and others.

Keep up the good work.

Reply With Quote
The following user says Thank You to christronic for this post:
 
  #8 (permalink)
Banned: trolling
Russia,Khabarovsk
 
Futures Experience: Beginner
Platform: NT
Favorite Futures: Gold
 
Cachevary's Avatar
 
Posts: 407 since Feb 2014
Thanks: 138 given, 78 received

Hello,

Could anyone please tell what the Period of 10 represents in this indicator?

Reply With Quote
 
  #9 (permalink)
Elite Member
Cincinnati Ohio
 
Futures Experience: Intermediate
Platform: NinjaTrader
Broker/Data: Futures Broker
Favorite Futures: AUD
 
Silver Dragon's Avatar
 
Posts: 1,597 since Feb 2011
Thanks: 3,860 given, 3,318 received

Updated the indicator with line colors so it would be possible to see what the trend was in the past. I also gave the trend text better visibility in the top right hand corner.

FYI - I dabble in coding so there may be a more efficient way to write the code than I did. Feel free to update.

Robert

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

Please register on futures.io to view futures trading content such as post attachment(s), image(s), and screenshot(s).

nosce te ipsum

You make your own opportunities in life.
Attached Files
Register to download File Type: zip Dow_Theory_V2_03_28_15.zip (6.6 KB, 73 views)
Reply With Quote
The following 7 users say Thank You to Silver Dragon for this post:

Reply



futures io > > > > > Using Dow Theory indicator as a filter in automated strategies

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
Automated Trading Strategies for NT7 evilmrkipling NinjaTrader 17 August 25th, 2015 09:40 PM
NT7: production-level execution tool for automated strategies? geezer NinjaTrader 3 June 24th, 2011 04:27 AM
Dow indicator, Is there one? rexman00799 Traders Hideout 11 August 4th, 2010 07:21 PM
Experience Trading LIVE automated Strategies with Ninja ??? gtichauer The Elite Circle 6 April 28th, 2010 06:56 PM


All times are GMT -4. The time now is 04:59 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.13 seconds with 20 queries on phoenix via your IP 23.22.136.56