
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Happy trading in new week to all. My trailing stop EA only trailing when profit, and that's bad. Does anyone have trailing EA even not profit?
Happy trading in new week to all. My trailing stop EA only trailing when profit, and that's bad. Does anyone have trailing EA even not profit?
Check this thread https://www.mql5.com/en/forum/172924
Here is this one. AutoPivotIndicator_ver5 does not need to be changed at all (it will work as is on a new builds of metatrader 4 too - just compile it)
Thanks very much Mladen !
d_rsi.mq4Dear mladen. Faced with the problem after the upgrade terminal, namely code indicator using your idea with nolagma where it is called double iNoLag. The code is short. Help solve the problem pls
Hi
My request is to make this indicator compatible with new MT4 Build 610
"RSIOMA_v4.mq4"
Thanks
Hi all, Hi Mladen
Got the beautiful surprise from Metaq. today!!!!! I want to thank them, %^&*&^%$!!!!!!!
Dear Mladen, I will have to turn to you for help. I am no coder, so I have to ask you if you can re code two indicators to work with build 600 or 610, not sure if there is big difference in these two builds!!!!!!!!!!!
I have two MT4 platforms running simultaneously and all was fine until today. Today I did an update on one of them. The build is 600. The MT4 can load the two indicators that I need but the it works very slow. The other freshly DDL from FMXC with build 610 works fine but the indicators do not work. So I am like W.F!!!!!!!!!!!!!
I hope you can help
thanks in advance2zzsignal.mq4ssrc.mq4
Hi all, Hi Mladen
Got the beautiful surprise from Metaq. today!!!!! I want to thank them, %^&*&^%$!!!!!!!
Dear Mladen, I will have to turn to you for help. I am no coder, so I have to ask you if you can re code two indicators to work with build 600 or 610, not sure if there is big difference in these two builds!!!!!!!!!!!
I have two MT4 platforms running simultaneously and all was fine until today. Today I did an update on one of them. The build is 600. The MT4 can load the two indicators that I need but the it works very slow. The other freshly DDL from FMXC with build 610 works fine but the indicators do not work. So I am like W.F!!!!!!!!!!!!!
I hope you can help
thanks in advance2zzsignal.mq4ssrc.mq4As far as I see SSRC should be this one : https://www.mql5.com/en/forum/183798/page17
Hi
My request is to make this indicator compatible with new MT4 Build 610
"RSIOMA_v4.mq4"
Thankskeshav
Here you go
d_rsi.mq4Dear mladen. Faced with the problem after the upgrade terminal, namely code indicator using your idea with nolagma where it is called double iNoLag. The code is short. Help solve the problem pls
xamil777
Replace non lag function with this :
#define _length 0
#define _len 1
#define _weight 2
double nvalues[][3];
double nlalpha[];
double iNoLag( double &price[], int forvalue, int length, int r,int i)
{
int forValue = forvalue-1;
if (length<3) return(price[r]);
if (ArrayRange(nvalues,0)<(forValue+1) || nvalues[forValue][_length] != length)
{
double Cycle = 4.0;
double Coeff = 3.0*Pi;
int Phase = length-1;
if (ArrayRange(nvalues,0)<forValue+1) ArrayResize(nvalues,forValue+1);
nvalues[forValue][_length] = length;
nvalues[forValue][_len] = length*4 + Phase;
nvalues[forValue][_weight] = 0;
ArrayResize(nlalpha,nvalues[forValue][_len]);
for (int k=0; k<nvalues[forValue][_len]-1; k++)
{
if (k<=Phase-1)
double t = 1.0 * k/(Phase-1);
else t = 1.0 + (k-Phase+1)*(2.0*Cycle-1.0)/(Cycle*length-1.0);
double beta = MathCos(Pi*t);
double g = 1.0/(Coeff*t+1); if (t <= 0.5 ) g = 1;
nlalpha[k] = g * beta;
nvalues[forValue][_weight] += nlalpha[k];
}
}
if (nvalues[forValue][_weight]>0)
{
int len = nvalues[forValue][_len];
double sum = 0;
for (k=0; k < len-1; k++) sum += nlalpha[k]*price[r-k];
return( sum / nvalues[forValue][_weight]);
}
else return(0);
}and replace ths line
nlag = iNoLag(nOsc,2,15,r,i);
with this
nlag = iNoLag(nOsc,1,15,r,i);
But there are few more errors in that code that should be corrected
xamil777
Replace non lag function with this :
#define _length 0
#define _len 1
#define _weight 2
double nvalues[][3];
double nlalpha[];
double iNoLag( double &price[], int forvalue, int length, int r,int i)
{
int forValue = forvalue-1;
if (length<3) return(price[r]);
if (ArrayRange(nvalues,0)<(forValue+1) || nvalues[forValue][_length] != length)
{
double Cycle = 4.0;
double Coeff = 3.0*Pi;
int Phase = length-1;
if (ArrayRange(nvalues,0)<forValue+1) ArrayResize(nvalues,forValue+1);
nvalues[forValue][_length] = length;
nvalues[forValue][_len] = length*4 + Phase;
nvalues[forValue][_weight] = 0;
ArrayResize(nlalpha,nvalues[forValue][_len]);
for (int k=0; k<nvalues[forValue][_len]-1; k++)
{
if (k<=Phase-1)
double t = 1.0 * k/(Phase-1);
else t = 1.0 + (k-Phase+1)*(2.0*Cycle-1.0)/(Cycle*length-1.0);
double beta = MathCos(Pi*t);
double g = 1.0/(Coeff*t+1); if (t <= 0.5 ) g = 1;
nlalpha[k] = g * beta;
nvalues[forValue][_weight] += nlalpha[k];
}
}
if (nvalues[forValue][_weight]>0)
{
int len = nvalues[forValue][_len];
double sum = 0;
for (k=0; k < len-1; k++) sum += nlalpha[k]*price[r-k];
return( sum / nvalues[forValue][_weight]);
}
else return(0);
}and replace ths line
nlag = iNoLag(nOsc,2,15,r,i);
with this
nlag = iNoLag(nOsc,1,15,r,i);
But there are few more errors in that code that should be correctedOMG thx mladen you best one