Hello. Tell me how to implement the Gator indicator in the expert Advisor. That is, you are interested in the upper and lower histograms-determining them by color.
In the help in MT5 . so incomprehensibly written.
handleS2=iGator(“EURUSD”,0,13,8,8,5,5,3,MODE_SMMA,PRICE_TYPICAL);
ArraySetAsSeries(S2mfibw,true);
if(CopyBuffer(handleS2,0,1,5,S2mfibw)<0)
PrintFormat(“Failed to copy data from the indicator for ” + EURUSD+”, ” +Errors(GetLastError()));
galyanova777
Thank you , I will understand.
barabashkakvn
Watch, learn: Fuzzy logic
//+------------------------------------------------------------------+
//| |
//+------------------------------------------------------------------+
double FuzzyLogic()
{
double Gator,Gator2,SumGator,WPR,AC1,AC2,AC3,AC4,AC5,tempAC_b=0.0,tempAC_s=0.0,DeMarker,RSI,Decision=0.0;
double Rang[5,5],Summary[5];
int x,y;
double arGator[8] ={0.010,0.020,0.030,0.040,0.040,0.030,0.020,0.010};
double arWPR[8] ={-95,-90,-80,-75,-25,-20,-10,-5};
double arAC[8] ={0.05,0.04,0.03,0.02,0.02,0.03,0.04,0.05};
double arDeMarker[8] ={0.15,0.2,0.25,0.3,0.7,0.75,0.8,0.85};
double arRSI[8] ={25,30,35,40,60,65,70,75};
double Weight[5] ={0.133,0.133,0.133,0.268,0.333};
Gator =iGatorGet(UPPER_HISTOGRAM,1);
Gator2 =iGatorGet(LOWER_HISTOGRAM,1);
SumGator =MathAbs(Gator)+MathAbs(Gator2);