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


DMI AND EMA
Updated: Views / Replies:2,310 / 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

  #1 (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

DMI AND EMA

Hello! i have a strategy that use the dmi indicator and the ema of the price over the dmi and i use the crosses(look the image for any question or ask). if i write a code to do it, the algo not work's because it isn't a real crosses( help me with this strategy - NinjaTrader Support Forum ). Anyone have some idea?
tHANK'S!

Attached Thumbnails
DMI AND EMA-nuova-immagine-bitmap.bmp  
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
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



bergimax View Post
Hello! i have a strategy that use the dmi indicator and the ema of the price over the dmi and i use the crosses(look the image for any question or ask). if i write a code to do it, the algo not work's because it isn't a real crosses( help me with this strategy - NinjaTrader Support Forum ). Anyone have some idea?
tHANK'S!

You cannot compare the value of an EMA to the value of the DMI, and in particular you cannot establish any crosses. The crosses that you have visualized on your chart depend on the horizontal chart compression. Change that compression and the crosses will move to another point.

This is like comparing apples to tomatoes. The DMI is a normalized oscillator which plots on a scale between + 1 and -1. Best you compare it to another normalized oscillator which uses exactly the same scale. Candidates would be modified versions of the Stochastics and the RSI.

Reply With Quote
The following user says Thank You to Fat Tails for this post:
 
  #4 (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


Fat Tails View Post
You cannot compare the value of an EMA to the value of the DMI, and in particular you cannot establish any crosses. The crosses that you have visualized on your chart depend on the horizontal chart compression. Change that compression and the crosses will move to another point.

This is like comparing apples to tomatoes. The DMI is a normalized oscillator which plots on a scale between + 1 and -1. Best you compare it to another normalized oscillator which uses exactly the same scale. Candidates would be modified versions of the Stochastics and the RSI.

Many thank's for the answer Fat Tails! now i understand..

Reply With Quote
 
  #5 (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


Fat Tails View Post
You cannot compare the value of an EMA to the value of the DMI, and in particular you cannot establish any crosses. The crosses that you have visualized on your chart depend on the horizontal chart compression. Change that compression and the crosses will move to another point.


I try to create this indicator. But if i would like to write a code in a strategy, such as: if(DMI[0]>EMA[0] && DMI[1]<EMA[1]) how can i write this? thank's!

Attached Files
Register to download File Type: zip DMIEMA.zip (5.5 KB, 12 views)
Reply With Quote
 
  #6 (permalink)
Market Wizard
Sarasota FL
 
Futures Experience: Intermediate
Platform: NinjaTrader, Sierra Chart
Favorite Futures: ES
 
Posts: 3,635 since Jan 2013
Thanks: 26,755 given, 11,114 received
Forum Reputation: Legendary


Fat Tails View Post
You cannot compare the value of an EMA to the value of the DMI, and in particular you cannot establish any crosses. The crosses that you have visualized on your chart depend on the horizontal chart compression. Change that compression and the crosses will move to another point.

This is like comparing apples to tomatoes. The DMI is a normalized oscillator which plots on a scale between + 1 and -1. Best you compare it to another normalized oscillator which uses exactly the same scale. Candidates would be modified versions of the Stochastics and the RSI.



bergimax View Post
I try to create this indicator. But if i would like to write a code in a strategy, such as: if(DMI[0]>EMA[0] && DMI[1]<EMA[1]) how can i write this? thank's!

Sorry, but what you are trying is simply mathematically impossible. This is what people are trying to tell you.

If you look at the chart you posted, yes, the lines do cross. But if you look at the actual values of the two indicators, looking at their actual scales, they never cross. There is never a time when the DMI, which on the chart varies from about -1 to a little above +0,5 will ever be above the EMA of FDAX, which on the chart goes from about 9860 to about 9910.

The condition DMI[0]>EMA [0] will never be true, because DMI will never get up into the area above 9860.

It looks like they cross, because on the chart the scale of the EMA is printed on the left and the scale of DMI is on the right, so they look like they have a similar range, but the "cross" is an illusion. It just has to do with how the picture is drawn, nothing to do with the two indicators at all, which never cross.

If you just go into the indicator properties, and have them both print on the same side of the chart, so they have the same scale, you will see that the DMI is far down at the bottom of the chart and the EMA is far, far above it. (Change "Scale Justification" under "Visual" so they are both Right, or both Left.)

You will just never have a situation when 0,5 > 9860.... You can just give this idea up, I'm afraid.

Bob.

Reply With Quote
The following user says Thank You to bobwest for this post:
 
  #7 (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
Sorry, but what you are trying is simply mathematically impossible. This is what people are trying to tell you.

If you look at the chart you posted, yes, the lines do cross. But if you look at the actual values of the two indicators, looking at their actual scales, they never cross. There is never a time when the DMI, which on the chart varies from about -1 to a little above +0,5 will ever be above the EMA of FDAX, which on the chart goes from about 9860 to about 9910.

The condition DMI[0]>EMA [0] will never be true, because DMI will never get up into the area above 9860.

It looks like they cross, because on the chart the scale of the EMA is printed on the left and the scale of DMI is on the right, so they look like they have a similar range, but the "cross" is an illusion. It just has to do with how the picture is drawn, nothing to do with the two indicators at all, which never cross.

If you just go into the indicator properties, and have them both print on the same side of the chart, so they have the same scale, you will see that the DMI is far down at the bottom of the chart and the EMA is far, far above it. (Change "Scale Justification" under "Visual" so they are both Right, or both Left.)

You will just never have a situation when 0,5 > 9860.... You can just give this idea up, I'm afraid.

Bob.

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.

Reply With Quote
The following user says Thank You to bergimax for this post:
 
  #8 (permalink)
Elite Member
Helsinki/Finland
 
Futures Experience: Beginner
Platform: NinjaTrader
Broker/Data: Continuum
Favorite Futures: ES
 
jaeykkae's Avatar
 
Posts: 94 since Jul 2013
Thanks: 330 given, 110 received

How about

@Fat Tails, could one just nomalize the EMA by nesting it in between bollinger bands or something like that?

Can't see any point of doing that but anyway

"Life ain't about how hard you hit. It's about how hard you can get hit and keep moving forward."
-Rocky Balboa
Reply With Quote
 
  #9 (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


jaeykkae View Post
@Fat Tails, could one just nomalize the EMA by nesting it in between bollinger bands or something like that?

Can't see any point of doing that but anyway

The Bollinger Bands are built from a SMA or EMA. if you normalize the EMA within that band, it would become a horizontal zeroline.

You can only normalize oscillators to work with a predefined scale. The EMA is not an oscillator.

Reply With Quote
The following user says Thank You to Fat Tails for this post:
 
  #10 (permalink)
Elite Member
Helsinki/Finland
 
Futures Experience: Beginner
Platform: NinjaTrader
Broker/Data: Continuum
Favorite Futures: ES
 
jaeykkae's Avatar
 
Posts: 94 since Jul 2013
Thanks: 330 given, 110 received



Fat Tails View Post
The Bollinger Bands are built from a SMA or EMA. if you normalize the EMA within that band, it would become a horizontal zeroline.

You can only normalize oscillators to work with a predefined scale. The EMA is not an oscillator.

At least the cross overs would be there

"Life ain't about how hard you hit. It's about how hard you can get hit and keep moving forward."
-Rocky Balboa
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 04:33 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-15 in 0.13 seconds with 20 queries on phoenix via your IP 54.234.255.29