NexusFi: Find Your Edge


Home Menu

 





DMI AND EMA


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one bergimax with 5 posts (2 thanks)
    2. looks_two bobwest with 3 posts (3 thanks)
    3. looks_3 Fat Tails with 2 posts (2 thanks)
    4. looks_4 Underexposed with 2 posts (1 thanks)
      Best Posters
    1. looks_one bobwest with 1 thanks per post
    2. looks_two Fat Tails with 1 thanks per post
    3. looks_3 Underexposed with 0.5 thanks per post
    4. looks_4 bergimax with 0.4 thanks per post
    1. trending_up 5,424 views
    2. thumb_up 8 thanks given
    3. group 5 followers
    1. forum 14 posts
    2. attach_file 4 attachments




 
Search this Thread

DMI AND EMA

  #1 (permalink)
 
bergimax's Avatar
 bergimax 
Brescia Italy
 
Experience: Beginner
Platform: ninjatrader
Broker: CQG
Trading: Futures & cripto
Posts: 25 since May 2013
Thanks Given: 16
Thanks Received: 7

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 - [AUTOLINK]NinjaTrader[/AUTOLINK] Support Forum ). Anyone have some idea?
tHANK'S!

Attached Thumbnails
Click image for larger version

Name:	Nuova immagine bitmap.bmp
Views:	211
Size:	850.7 KB
ID:	170117  
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Futures True Range Report
The Elite Circle
Deepmoney LLM
Elite Quantitative GenAI/LLM
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
Online prop firm The Funded Trader (TFT) going under?
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
56 thanks
Funded Trader platforms
44 thanks
NexusFi site changelog and issues/problem reporting
24 thanks
GFIs1 1 DAX trade per day journal
22 thanks
The Program
19 thanks
  #3 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102



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 - [AUTOLINK]NinjaTrader[/AUTOLINK] 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
Thanked by:
  #4 (permalink)
 
bergimax's Avatar
 bergimax 
Brescia Italy
 
Experience: Beginner
Platform: ninjatrader
Broker: CQG
Trading: Futures & cripto
Posts: 25 since May 2013
Thanks Given: 16
Thanks Received: 7


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..

Started this thread Reply With Quote
  #5 (permalink)
 
bergimax's Avatar
 bergimax 
Brescia Italy
 
Experience: Beginner
Platform: ninjatrader
Broker: CQG
Trading: Futures & cripto
Posts: 25 since May 2013
Thanks Given: 16
Thanks Received: 7


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
Elite Membership required to download: DMIEMA.zip
Started this thread Reply With Quote
  #6 (permalink)
 
bobwest's Avatar
 bobwest 
Western Florida
Site Moderator
 
Experience: Advanced
Platform: Sierra Chart
Trading: ES, YM
Frequency: Several times daily
Duration: Minutes
Posts: 8,162 since Jan 2013
Thanks Given: 57,344
Thanks Received: 26,267


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
Thanked by:
  #7 (permalink)
 
bergimax's Avatar
 bergimax 
Brescia Italy
 
Experience: Beginner
Platform: ninjatrader
Broker: CQG
Trading: Futures & cripto
Posts: 25 since May 2013
Thanks Given: 16
Thanks Received: 7


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.

Started this thread Reply With Quote
Thanked by:
  #8 (permalink)
 
jaeykkae's Avatar
 jaeykkae 
Helsinki/Finland
 
Experience: Beginner
Platform: NinjaTrader
Broker: Continuum
Trading: ES
Posts: 96 since Jul 2013
Thanks Given: 342
Thanks Received: 112

@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

"You miss 100% of the shots you don't take" -Wayne Gretzky
-Michael Scott
-Jaeykkae
Visit my NexusFi Trade Journal Reply With Quote
  #9 (permalink)
 
Fat Tails's Avatar
 Fat Tails 
Berlin, Europe
Market Wizard
 
Experience: Advanced
Platform: NinjaTrader, MultiCharts
Broker: Interactive Brokers
Trading: Keyboard
Posts: 9,888 since Mar 2010
Thanks Given: 4,242
Thanks Received: 27,102


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
Thanked by:
  #10 (permalink)
 
jaeykkae's Avatar
 jaeykkae 
Helsinki/Finland
 
Experience: Beginner
Platform: NinjaTrader
Broker: Continuum
Trading: ES
Posts: 96 since Jul 2013
Thanks Given: 342
Thanks Received: 112



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

"You miss 100% of the shots you don't take" -Wayne Gretzky
-Michael Scott
-Jaeykkae
Visit my NexusFi Trade Journal Reply With Quote




Last Updated on January 4, 2015


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts