工作已完成
指定
mt4 indicators switch
This tool gives the ea , the very first signal from any set of 3 indicators from 18 indicators on mt4
Either first 3 indicators or next three indicators or next 3 indicators or following 3 indicators , either set of 3 indicators (from six sets) will trigger an entry
if any set showing opposite signal , entry is invalid
signals from all three indicators on each set must be valid , if all three indicators in a set trigger value is not met , entry is not valid , even if indicator in different set has valid signal.
comment on include file // where you add code
mql4 source codes required as part of job for testing and two weeks required to test .FULLY TESTED AND COMMENTED , must work first time (FULLY DEBUGGED) (otherwise job cancelled on receipt).you time waster will waste your time NOT MINE
Each version you supply will be codded as #1 , #2 #3
MOST AMATEUR CODERS HERE , WILL CODE BUYS AND SELL SIGNALS , -1 +1-1+1-1+1 TOGETHER AND IT WILL NOT WORK
Code an include file WITH 6 SETS OF 3 INDICATORS called setindicatormt4 .See attached sketch
// Signals
//DEFINE SET1, SET2 , SET3, SET4 ,SET5 AND SET6)
static bool _SET1 = false;
static bool _SET2 = false;
static bool _SET3 = false;
static bool _SET4 = false;
static bool _SET5 = false;
static bool _SET6 = false;
SET1 INDICATORS :rsi 14 , stocch 28 6 10 , momentum14
SET2 INDICATORS :rsi28 , stoch 56 12 20 momenum 28
SET3 INDICATORS :rsi 14 , rsi28 , stocch 28 6 10
SET 4 INDICATORS :rsi 14 , rsi28 , momentum 28
SET 5 INDICATORS :rsi28 , stoch 28 6 10 , momenum 14
SET 6 INDICATORS ;stoch 28 6 10, stoch 56 12 20 , rsi14
3 functions to be coded
1)Read indicators /code indicators into INCLUDE
2)CODE SETS 6 SETS /DEFINE THEM
3)CODE SET COUNT
4)SIGNALS TO EA
CODE FUNCTION :SET COUNT
//this function will count SET INDICATOR BUY SIGNALS AND SET INDICATORS SELL SIGNALS
int _SET1_BUY = 0;
int _SET1_SELL = 0;
// if(SET1 _indicator XYZ-BUY COUNT ) _BUY_++;
// if(SET1 _indicator XUZ _SELL COUNT ) _SELL_++;
// if(SET1 _indicator VXY -BUY COUNT ) _BUY_++;
// if(SET1 _indicator XXZ _SELL COUNT ) _SELL_++;
// if(SET1 _indicator XYY -BUY COUNT ) _BUY_++;
// if(SET1 _indicator XYY _SELL COUNT ) _SELL_++;
_buytrue = _set1buy >= 3;
_selltrue = _set1_sell >= -3;
in each set of 6 sets , code 3 MT4 indicators = total MT4 indicators = 18 , in the include file
Each set of 3 indicators , must all show true , to get valid signal to buy or sell +1/-1
all 3 indicators in a set must all be above 80 for buy signal or below 20 for sell signal , but each indicator to have own separate level mom > 100/<100 , ris >70buy 30> sell
If any set = true +1 , signal will be +1
if any set = true -1 , signal will be -1
if any set has 3 MT4 indicators as -1 ,-1 0 = signal = zero for set (MINIMUM SIGNAL = + 3 )
if any set has 3 MT4 indicators as 1 ,-1 ,1 = signal = zero for set (MINIMUM SIGNAL = - 3 )
if any set has +1, +1 and +1 = signal set = +1 (IF SET EQUALS MINIMUM SIGNAL +3 , SIGNAL = +1 , else 0)
if any set has -1 , -1 and -1 = signal set = -1 (IF SET EQUALS MINIMUM SIGNAL -3 , SIGNAL = - 1 , else 0)
//(SET1 = 3 =SIGNAL =1 ), (SET 1 = -3 ,SIGNAL = -1)= zero
//SAME LOGIC APPLIES TO SETS 2 , 3 ,4 , 5 AND 6
everything will be defined correctly in the include file , so there will be no more defining to be done in ea , adding the include file into any ea , will compile ea without any errors or further function defining or changing codes in EA
The mqh file will start with FALSE
until a TRUE signal is generated
if no true signal is generated , SIGNAL = FALSE
SIGNAL MUST BE CHECKED AS OK BUT IF NO TRUE SIGNAL IS GENERATED , NO SIGNAL WILL BE GENERATED IF NO CHECK IS MADE.CHECK OK