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,415 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

  #11 (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,343
Thanks Received: 26,267


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:





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




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
Thanked by:

Can you help answer these questions
from other members on NexusFi?
ZombieSqueeze
Platforms and Indicators
My NT8 Volume Profile Split by Asian/Euro/Open
NinjaTrader
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
Deepmoney LLM
Elite Quantitative GenAI/LLM
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 …
59 thanks
Funded Trader platforms
36 thanks
NexusFi site changelog and issues/problem reporting
25 thanks
The Program
20 thanks
GFIs1 1 DAX trade per day journal
19 thanks
  #12 (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
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:





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




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!

Started this thread Reply With Quote
Thanked by:
  #13 (permalink)
 Underexposed 
Calgary Alberta/Canada
 
Posts: 934 since Feb 2014


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 [AUTOLINK]Moving Average[/AUTOLINK] For A Eur/Usd Trading System

Here is even a Ninjatrader reference ready for download

4) Links and Downloads Manager - [AUTOLINK]NinjaTrader[/AUTOLINK] Support Forum

Reply With Quote
  #14 (permalink)
 Underexposed 
Calgary Alberta/Canada
 
Posts: 934 since Feb 2014

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)
 
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,343
Thanks Received: 26,267


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




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