In this expert, I'm not sure what these will return. Putting the previous variable into the place that's supposed to identify the type of price to use (i.e. PRICE_CLOSE, PRICE_OPEN, etc) isn't going to make a moving average of the previous variable. It's just going to be nonsense.
Instead, I think you have to do something like this:
double e1[];
double e2[];
double e3[];
double e4[];
double e5[];
double e6[];
for (int i=0;i<Periods;i++) e1=iMA(NULL,0,Periods,0,MODE_EMA,PRICE_CLOSE,i);
for (i=0;i<Periods;i++)
e2=iMAonArray(e1,Periods,...can't remember the other inputs to iMAonArray...)
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
i begin NOW convert
ok?
Beluck was going also to convert it.
Are you going to convert it also Alex?
Best regards
I am not very sure
but I think that
Beluck is trying to do it as well.
So, we will have two.
Two is better than nothing.
But I am not sure.
May be not.
hi,
what is mtLong ?
MALong := Mov(Open,tPrLong,mtLong);
hi,
what is mtLong ?
MALong := Mov(Open,tPrLong,mtLong);Media Type Long
ok have Finsih but EA Name ?
ok no EA Name
then is the Name = MandarineXL v.0.1.mq4
recommended Timeframe H1
all Pairs
i have remove the Close of Position and add TrailingStep
--
Thanks.
I moved the EA to the downloads area.
ok no EA Name
MandarineXL v.0.1.mq4
--Actually, I don't think that expert is quite right. In the original code, the T3MA was calculated differently.
e1:=Mov(price,Periods,E);
e2:=Mov(e1,Periods,E);
e3:=Mov(e2,Periods,E);
e4:=Mov(e3,Periods,E);
e5:=Mov(e4,Periods,E);
e6:=Mov(e5,Periods,E);
Each one is a moving average of the previous one.
double e1=iMA(NULL,0,Periods,0,MODE_EMA,PRICE_CLOSE,0);
double e2=iMA(NULL,0,Periods,0,MODE_EMA,e1,0);
double e3=iMA(NULL,0,Periods,0,MODE_EMA,e2,0);
double e4=iMA(NULL,0,Periods,0,MODE_EMA,e3,0);
double e5=iMA(NULL,0,Periods,0,MODE_EMA,e4,0);
double e6=iMA(NULL,0,Periods,0,MODE_EMA,e5,0);
In this expert, I'm not sure what these will return. Putting the previous variable into the place that's supposed to identify the type of price to use (i.e. PRICE_CLOSE, PRICE_OPEN, etc) isn't going to make a moving average of the previous variable. It's just going to be nonsense.
Instead, I think you have to do something like this:
double e1[];
double e2[];
double e3[];
double e4[];
double e5[];
double e6[];
for (int i=0;i<Periods;i++) e1=iMA(NULL,0,Periods,0,MODE_EMA,PRICE_CLOSE,i);
for (i=0;i<Periods;i++)
e2=iMAonArray(e1,Periods,...can't remember the other inputs to iMAonArray...)
etc...repeat for each array.
-lcg
quksilver is right. first we have to make T3MA indicator, which is 6 times EMA applied consecutively. the rest of the startegy is simpler to do.