• Get access

Requests & Ideas - page 246

dannyla
241
dannyla  
mladen:
dasssi Maybe the easiest way to do that is to take the EA from this post : https://www.mql5.com/en/forum/180383 and then simply replace a call to "KaufmanAmaSignalsForEA" indicator in the FindTrend() function with an indicator of your choice

i got this error 2013.10.29 15:15:42 2013.07.04 21:44 dassi EURUSDm,H1: unknown subwindow number 1 for ObjectCreate function

dassi is the name of the indicator

Mladen Rakic
163290
Mladen Rakic  
dasssi:
i got this error 2013.10.29 15:15:42 2013.07.04 21:44 dassi EURUSDm,H1: unknown subwindow number 1 for ObjectCreate function dassi is the name of the indicator

What indicator are you trying to use?

dannyla
241
dannyla  

its like this one

Files:
Mladen Rakic
163290
Mladen Rakic  
dasssi:
its like this one

Try it out now

dannyla
241
dannyla  

mladen

thank you very much

i need to run for work (stil have a day job)

but it is running with no error

dannyla
241
dannyla  

the ea is not working as the indicator... it opened trade with no arrow sign

Files:
ea.png 237 kb
Mladen Rakic
163290
Mladen Rakic  
dasssi:
the ea is not working as the indicator... it opened trade with no arrow sign

As far as I see you are almost sure having wrong parameters in the iCustom() call to the indicator. Check the parameters

dannyla
241
dannyla  
mladen:
As far as I see you are almost sure having wrong parameters in the iCustom() call to the indicator. Check the parameters

i have change this lines

" bool isBreakoutUpNow = (iCustom(NULL,0,"i-Spearman-Div3-Sig",KAMA.Period,KAMA.Price,KAMA.Nfast,KAMA.Nslow,KAMA.GCoeff,KAMA.dk,1,KAMA.BarToCheck) !=EMPTY_VALUE); bool isBreakoutDownNow = (iCustom(NULL,0,"i-Spearman-Div3-Sig",KAMA.Period,KAMA.Price,KAMA.Nfast,KAMA.Nslow,KAMA.GCoeff,KAMA.dk,2,KAMA.BarToCheck) !=EMPTY_VALUE);

if (!AllowTradesOnEverySignal)

{

bool isBreakoutUpPrev = (iCustom(NULL,0,"i-Spearman-Div3-Sig",KAMA.Period,KAMA.Price,KAMA.Nfast,KAMA.Nslow,KAMA.GCoeff,KAMA.dk,1,KAMA.BarToCheck+1)!=EMPTY_VALUE);

bool isBreakoutDownPrev = (iCustom(NULL,0,"i-Spearman-Div3-Sig",KAMA.Period,KAMA.Price,KAMA.Nfast,KAMA.Nslow,KAMA.GCoeff,KAMA.dk,2,KAMA.BarToCheck+1)!=EMPTY_VALUE);

}

Mladen Rakic
163290
Mladen Rakic  
dasssi:
i have change this lines

" bool isBreakoutUpNow = (iCustom(NULL,0,"i-Spearman-Div3-Sig",KAMA.Period,KAMA.Price,KAMA.Nfast,KAMA.Nslow,KAMA.GCoeff,KAMA.dk,1,KAMA.BarToCheck) !=EMPTY_VALUE); bool isBreakoutDownNow = (iCustom(NULL,0,"i-Spearman-Div3-Sig",KAMA.Period,KAMA.Price,KAMA.Nfast,KAMA.Nslow,KAMA.GCoeff,KAMA.dk,2,KAMA.BarToCheck) !=EMPTY_VALUE);

if (!AllowTradesOnEverySignal)

{

bool isBreakoutUpPrev = (iCustom(NULL,0,"i-Spearman-Div3-Sig",KAMA.Period,KAMA.Price,KAMA.Nfast,KAMA.Nslow,KAMA.GCoeff,KAMA.dk,1,KAMA.BarToCheck+1)!=EMPTY_VALUE);

bool isBreakoutDownPrev = (iCustom(NULL,0,"i-Spearman-Div3-Sig",KAMA.Period,KAMA.Price,KAMA.Nfast,KAMA.Nslow,KAMA.GCoeff,KAMA.dk,2,KAMA.BarToCheck+1)!=EMPTY_VALUE);

}

dasssi

These are the parameters for i-Spearman

extern string _tmp1_ = " --- Common ---";

//Set 4, 5 or 0

//4: set 4 if your broker provides 4-digit quotes for EURUSD pair and 2-digit quotes for USDJPY pair

//5: set 5 if your broker provides 5-digit quotes for EURUSD pair and 3-digit quotes for USDJPY pair

//0: auto detect

extern int AccDigits = 0;

extern bool UseOpenBar = false;

extern string _tmp2_ = " --- Spearman ---";

extern int Spear.RangeN = 7;

extern string _tmp3_ = " --- Divergence peaks ---";

extern int Chart.LeftTop.BarsL = 3;

extern int Chart.LeftTop.BarsR = 2;

extern int Chart.RightTop.BarsL = 2;

extern int Chart.RightTop.BarsR = 1;

extern int Ind.LeftTop.BarsL = 2;

extern int Ind.LeftTop.BarsR = 2;

extern int Ind.RightTop.BarsL = 15;

extern int Ind.RightTop.BarsR = 3;

extern int LeftTops.MaxBarsDiff = 10;

extern int RightTops.MaxBarsDiff = 5;

extern string _tmp4_ = " --- Levels ---";

extern double BullishDiv.ResetAbove = 1.1;

extern double BearishDiv.ResetBelow = -1.1;

extern string _tmp5_ = " --- Filters ---";

extern int MaxBars = 2000;

extern int DivWidth.MinBars = 30;

extern int DivWidth.MaxBars = 150;

extern int DivHeight.MinPips = 1;

extern int DivHeight.MaxPips = 1000;

extern string _tmp6_ = " --- Graphic ---";

extern color clBullishDiv = DeepSkyBlue;

extern color clBearishDiv = OrangeRed;

extern int Chart.BullishDiv.ArrowCode1 = 233;

extern int Chart.BullishDiv.ArrowCode2 = 32;

extern int Chart.BearishDiv.ArrowCode1 = 234;

extern int Chart.BearishDiv.ArrowCode2 = 32;

//M1;M5;M15;M30;H1;H4;D1;W1;MN1

extern string Chart.Arrow.shift_all_TF = "5;5;10;10;15;20;70;200;300";

extern string Chart.Line.shift_all_TF = "0;0;0;0;0;0;0;0;0";

extern int Chart.Line.style = STYLE_DOT;

extern int Chart.Line.width = 1;

extern int Ind.Line.style = STYLE_SOLID;

extern int Ind.Line.width = 1;

extern string _tmp7_ = " --- Alerts ---";

extern bool PopupOn = true;

extern bool MailOn = false;

extern bool SoundOn = true;

extern string BullishDivSound = "alert.wav";

extern string BearishDivSound = "alert.wav";

Every indicator has a set of specific parameters and they must be duplicated (the parameters) by the EA in order to make it possible to adjust the indicators behavior from the EA. Replace the parameters that were used by the "KaufmanAmaSignalsForEA" indicator with the ones from above (in the EA start where the external parameters are declared for the indicator too) and it should work

dannyla
241
dannyla  

it gave me a lot of errors..

can you do it for me please