Home
    Product
    Support
    Purchase
    Company

Advanced trading software with proprietary analytics and artificial intelligence

Support Center
Publications
Tradecision FAQs
Improvian Consulting
Contact Support Team
Knowledgebase
Collection of Indicators
Custom Indicators
Custom Studies
TASC Traders' Tips
Active Trader Strategies
Golden Trading Rules
Trader’s Quiz

Traders' Tips from TASC Magazine
Combining DMI and Moving Average for a EUR/USD trading system

The article by Rombout Kerstens in this issue, "Combining DMI and Moving Average for a EUR/USD trading system", has demonstrated how the combination of the moving average (MA) and the directional movement index (DMI) can limit the number of trades while delivering better results per trade.

Using Strategy Builder, you can create the strategy for the described method.

Here is the Tradecision code for the strategy:

Long:

Var

 ParamMA:=30;

 ParamDMI:=14;

 DMILong:=false;

 DMIShort:=false;

 MALong:=false;

 MAShort:=false;

 vDMIMinus:=0;

 vDMIPlus:=0;

 MA:=0;

 End_var

 

 vDMIMinus := DMIMinus(ParamDMI);

 vDMIPlus := DMIPlus(ParamDMI);

 MA := SMA(Close,ParamMA);

 

 if HISTORYSIZE > ParamMA then

    begin

         if CrossAbove(vDMIPlus,vDMIMinus)

         then

              begin

              DMILong := true;

              DMIShort := false;

              end;

         if CrossBelow(vDMIPlus,vDMIMinus)

         then

             begin

             DMILong := false;

             DMIShort := true;

             end;

         if CrossAbove(Close,MA)

         then

             begin

             MALong := true;

             MAShort := false;

             end;

         if CrossBelow(Close,MA)

         then

             begin

             MALong := false;

             MAShort := true;

             end;

 

 If dmilong = true and malong = true then

 return true;

end;

return false;

 

Short:

Var

 ParamMA:=30;

 ParamDMI:=14;

 DMILong:=false;

 DMIShort:=false;

 MALong:=false;

 MAShort:=false;

 vDMIMinus:=0;

 vDMIPlus:=0;

 MA:=0;

 End_var

 

 vDMIMinus := DMIMinus(ParamDMI);

 vDMIPlus := DMIPlus(ParamDMI);

 MA := SMA(Close,ParamMA);

 

 if HISTORYSIZE > ParamMA then

    begin

         if CrossAbove(vDMIPlus,vDMIMinus)

         then

              begin

              DMILong := true;

              DMIShort := false;

              end;

         if CrossBelow(vDMIPlus,vDMIMinus)

         then

             begin

             DMILong := false;

             DMIShort := true;

             end;

         if CrossAbove(Close,MA)

         then

             begin

             MALong := true;

             MAShort := false;

             end;

         if CrossBelow(Close,MA)

         then

             begin

             MALong := false;

             MAShort := true;

             end;

 

 If dmishort = true and mashort = true then

 return true;

end;

return false;


Download to import into Tradecision.

How to use this indicator in Tradecision:
  1. Click Download.
  2. Save this indicator in a safe location on your hard drive.
  3. Open Tradecision and in the Tools menu click Indicator Builder.
  4. In the Indicator Builder dialog, click Import, locate the saved file and then click OK.
The indicator will be added to the Custom Indicators list.
 
Empirical Mode Decomposition
The 350 Swing Trade
The Vortex Indicator
Making The Most Of A Trend With The Disparity Index
A Seasonal System For Soybean Futures
Volume-Weighted Macd Histogram
Pivot Detector Oscillator, Simplified
Combining DMI and Moving Average for a EUR/USD trading system
Trailing Resistance &nd Support Stops
Average True Range Trailing Stops
Using Initial Stop Methods
Profit With High Relative Strength Mutual Funds
Trading Trendline Breaks, part 2
Building A Trading Template
Volume Price Confirmation Indicator
Rectangles
Trongone moving average (TMA)
Adjusted Rate of Change
MA crossovers, part 2
MA crossovers
The Fourier indicator
Stochastics with Long Term EMA filter strategy
Active Trendline Indicator
Relative Spread Strength Indicator
Trading With An Adaptive Price Zone
Modeling the Market = Building Trading Strategies
The Wilson Relative Price Channels
Harnessing The (Mis)Behavior Of Markets
Cross-Market Evaluations with Normalized Average True Range
The Average Peak Excursion
Trading Trends With Bollinger Bands Z (BBZ)
The Self-Adjusted RSI
Swiss Army Knife Indicator
Directional Down
Directional Up
Volatility Profit Indicator
Volatility Trailing Stop Indicator
Trend Trigger Factor
TRsV
Normalized RSI with IFT
Linear Regression Reversal Indicator
Bull and Bear Balance Indicator
Regularized EMA
FVE - lin reg slope
Laguerre Filter
Laguerre RSI
Deviation Oscillator
Average True Range Bands HA line
Average True Range Bands LA line
Elastic Volume Weighted Moving Average
Standard Deviation Bands H line
Standard Deviation Bands L line
Ehlers Filters
Buff Up Your Moving Averages
Balance of Market Power
Breakout Range 2
TargetPrice
Modified Moving Average
Stochastics D
Stochastics K
Tradecision Reviews
Video Tours
Discussion Boards
Chat with a live Rep
Ask a question
(510) 931 7808

Site Map   |   Terms of Use   |   Privacy Policy   |   Risk Warning
Forex, equities or futures trading involves substantial risk of loss and is not suitable for all investors.
Copyright © 2001-2010 Alyuda Research.  All rights reserved