DMI AND EMA - NinjaTrader Programming | futures io social day trading
futures io futures trading


DMI AND EMA
Updated: Views / Replies:2,307 / 14
Created: by bergimax Attachments:4

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

DMI AND EMA

  #11 (permalink)
Market Wizard
Sarasota FL
 
Futures Experience: Intermediate
Platform: NinjaTrader, Sierra Chart
Favorite Futures: ES
 
Posts: 3,635 since Jan 2013
Thanks: 26,753 given, 11,113 received
Forum Reputation: Legendary


bergimax View Post
Thank's for the replay Bob!
i understand this concept, in fact the indicator that i try to dom, use the equal scale.
At least, my intention is to create an indicator that works in that way, then an average value of dmi.

Do you mean that you want to use an EMA of the DMI?

This will do that: EMA(DMI(dmiPeriod), emaPeriod).

If you want to compare the DMI to its EMA, this will do it:

if (DMI(dmiPeriod)[0] > EMA(DMI(dmiPeriod), emaPeriod)[0]) etc.

You can see how it looks on a chart by setting up DMI and then an EMA of the DMI. When you select the Input Series for the EMA, don't use the default of FDAX, select DMI instead, and make sure to put them on the same panel, like this:


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



Here's how it looks. Notice it's a little choppy during non-trending periods:

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



Hope this is what you're looking for, or something like it. Or that at least it gives you an idea you can use.

Good luck with it.

Bob.

Reply With Quote
The following 2 users say Thank You to bobwest for this post:
 
  #12 (permalink)
Elite Member
Brescia Italy
 
Futures Experience: Beginner
Platform: ninjatrader
Broker/Data: CQG
Favorite Futures: forex
 
Posts: 25 since May 2013
Thanks: 16 given, 7 received


bobwest View Post
Do you mean that you want to use an EMA of the DMI?

This will do that: EMA(DMI(dmiPeriod), emaPeriod).

If you want to compare the DMI to its EMA, this will do it:

if (DMI(dmiPeriod)[0] > EMA(DMI(dmiPeriod), emaPeriod)[0]) etc.

You can see how it looks on a chart by setting up DMI and then an EMA of the DMI. When you select the Input Series for the EMA, don't use the default of FDAX, select DMI instead, and make sure to put them on the same panel, like this:


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



Here's how it looks. Notice it's a little choppy during non-trending periods:

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



Hope this is what you're looking for, or something like it. Or that at least it gives you an idea you can use.

Good luck with it.

Bob.

Yes it is this! >Thank's for the assistance Bob!

Reply With Quote
The following user says Thank You to bergimax for this post:
 
  #13 (permalink)
Membership Temporarily Revoked
Calgary Alberta/Canada
 
Futures Experience: Advanced
Platform: TDWaterhouse
Favorite Futures: stocks (long term)
 
Posts: 934 since Feb 2014
Thanks: 180 given, 777 received


I thought this was a bogus idea but apparently it has been done. From the description of the title I thought it was some kind of amalgamation of DMI and EMA of whatever time period.... but upon looking at the references below it seems to be observations of the separate entities...and how they behave.... Similar to what I do with my charts using Slow Sto/MACD/BBwidth in the same chart

Here are some internet references.... I am just handing these out without any comment on whether this is useful or not

1) https://www.tradingview.com/v/DHGaDYDT/

2) TRADERS’ TIPS - August 2009

3) Combining Dmi And Moving Average For A Eur/Usd Trading System

Here is even a Ninjatrader reference ready for download

4) Links and Downloads Manager - NinjaTrader Support Forum

Reply With Quote
The following user says Thank You to Underexposed for this post:
 
  #14 (permalink)
Membership Temporarily Revoked
Calgary Alberta/Canada
 
Futures Experience: Advanced
Platform: TDWaterhouse
Favorite Futures: stocks (long term)
 
Posts: 934 since Feb 2014
Thanks: 180 given, 777 received

here is another references that gives detailed code....not sure it is what you are looking for but perhaps you can adapt it.

Again I post it here without and other comment...hope it is useful

TradeStation


there are many code pastings on this site here is the one that relates to your post from the above link


Quoting 
sebastianK
Re: TradeStation

Dmi And Moving Average

Quote:
Rombout Kerstens’ “Combining Dmi And Moving Average For A Eur/Usd Trading System,” describes a technique for long entry and exit that uses both J. Welles Wilder’s Dmi (directional movement indicator) and a moving average.
PHP Code:
Indicator: DMI_MA RS
inputs:
MALength( 30 ),
DMILength( 14 ) ;

variables:
vDMIMinus( 0 ),
vDMIPlus( 0 ),
MA( 0 ),
DMILong( false ),
DMIShort( false ),
MALong( false ),
MAShort( false ),
MADiffPct( 0 ),
DMIDiff( 0 ) ;

vDMIMinus = DMIMinus( DMILength ) ;
vDMIPlus = DMIPlus( DMILength ) ;
MA = Average( Close, MALength ) ;

if CurrentBar > 1 then
begin

if vDMIPlus crosses over vDMIMinus then
begin
DMILong = true ;
DMIShort = false ;
end
else if vDMIPlus crosses under vDMIMinus then
begin
DMILong = false ;
DMIShort = true ;
end ;

if Close crosses over MA then
begin
MALong = true ;
MAShort = false ;
end
else if close crosses under MA then
begin
MALong = false ;
MAShort = true ;
end ;

if MA <> 0 then
MADiffPct = ( Close - MA ) / MA ;
DMIDiff = vDMIPlus - vDMIMinus ;

Plot1( MADiffPct, “MADiff%” ) ;
Plot2( DMIDiff, “DMIDiff” ) ;

if MALong then
begin
SetPlotBGColor( 1, Green ) ;
SetPlotColor( 1, Black ) ;
end
else
begin
SetPlotBGColor( 1, Red ) ;
SetPlotColor( 1, White ) ;
end ;

if DMILong then
begin
SetPlotBGColor( 2, Green ) ;
SetPlotColor( 2, Black ) ;
end
else
begin
SetPlotBGColor( 2, Red ) ;
SetPlotColor( 2, White ) ;
end ;

if DMILong and MALong then
begin
Plot3( “LongSig”, “Signal” ) ;
SetPlotBGColor( 3, Green ) ;
SetPlotColor( 3, Black ) ;
end ;

if DMIShort and MAShort then
begin
Plot3( “ExitSig” , “Signal” ) ;
SetPlotBGColor( 3, Red ) ;
SetPlotColor( 3, White ) ;
end ;
end ;


Reply With Quote
 
  #15 (permalink)
Market Wizard
Sarasota FL
 
Futures Experience: Intermediate
Platform: NinjaTrader, Sierra Chart
Favorite Futures: ES
 
Posts: 3,635 since Jan 2013
Thanks: 26,753 given, 11,113 received
Forum Reputation: Legendary


Underexposed View Post
I thought this was a bogus idea but apparently it has been done. From the description of the title I thought it was some kind of amalgamation of DMI and EMA of whatever time period.... but upon looking at the references below it seems to be observations of the separate entities...and how they behave.... Similar to what I do with my charts using Slow Sto/MACD/BBwidth in the same chart

Nope, the Thread Starter just wanted to plot an EMA of the DMI. Not an MA of the price, just an MA for DMI itself on the DMI panel, and then take action when the DMI crosses its own EMA.

See the last couple of posts above:


bergimax View Post
Yes it is this! >Thank's for the assistance Bob!

Sometimes it's simpler than it appears....

Bob.

Reply With Quote

Reply



futures io > > > > > DMI AND EMA

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
DMI + OBV setup cory The Elite Circle 21 November 5th, 2016 12:26 AM
DMI Indicator bmstocks11 TradeStation 1 January 17th, 2014 06:59 PM
Filter trades by using +DMI, help needed abcplot EasyLanguage Programming 5 May 19th, 2011 04:59 PM
MACD: The 12-period (EMA) minus 26 EMA emini_Holy_Grail Traders Hideout 1 February 22nd, 2010 01:04 PM
DMI indicator cory Traders Hideout 3 September 5th, 2009 03:48 AM


All times are GMT -4. The time now is 06:53 PM.

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.10 seconds with 20 queries on phoenix via your IP 54.90.92.204