MT-4- Please help me, I want make a file intersection DMI + and DMI - .I want have the signal in moment of move DMI+ and DMI- without ADX. I do care about it. I write this below but please create for this the file to move it to MF4.
//+------------------------------------------------------------------+
//| ADXcross EXPERT |
//| Perky_z |
//| |
//+------------------------------------------------------------------+
#property copyright "[email protected] "
#property link "http://groups.yahoo.com/group/MetaTrader_Experts_and_Indicators/"
//+--------------------------------------------------------------------------------------------------+
//| Alerts in hand with ADXcrosses Indicator they dont need to be run together |
//+--------------------------------------------------------------------------------------------------+
// Alerts on cross of + and - DI lines
// I use it on 15 min charts
// though looks good on any time frame
// use other indicators to confirm this trigger tho
//---- input parameters
double b4plusdi,b4minusdi,nowplusdi,nowminusdi;
//----
//---- indicators
In this part of code change period how You want (14 change for 4 in every line) and this should to work in this scal which You situate the diagram.
b4plusdi=iADX(NULL,0,14,PRICE_CLOSE,MODE_PLUSDI,1);
nowplusdi=iADX(NULL,0,14,PRICE_CLOSE,MODE_PLUSDI,0);
b4minusdi=iADX(NULL,0,14,PRICE_CLOSE,MODE_MINUSDI,1);
nowminusdi=iADX(NULL,0,14,PRICE_CLOSE,MODE_MINUSDI,0);
//+------------------------------------------------------------------+
//| ADXcross EXPERT |
//| Perky_z |
//| |
//+------------------------------------------------------------------+
#property copyright "[email protected] "
#property link "http://groups.yahoo.com/group/MetaTrader_Experts_and_Indicators/"
//+--------------------------------------------------------------------------------------------------+
//| Alerts in hand with ADXcrosses Indicator they dont need to be run together |
//+--------------------------------------------------------------------------------------------------+
// Alerts on cross of + and - DI lines
// I use it on 15 min charts
// though looks good on any time frame
// use other indicators to confirm this trigger tho
//---- input parameters
double b4plusdi,b4minusdi,nowplusdi,nowminusdi;
//----
//---- indicators
In this part of code change period how You want (14 change for 4 in every line) and this should to work in this scal which You situate the diagram.
b4plusdi=iADX(NULL,0,14,PRICE_CLOSE,MODE_PLUSDI,1);
nowplusdi=iADX(NULL,0,14,PRICE_CLOSE,MODE_PLUSDI,0);
b4minusdi=iADX(NULL,0,14,PRICE_CLOSE,MODE_MINUSDI,1);
nowminusdi=iADX(NULL,0,14,PRICE_CLOSE,MODE_MINUSDI,0);