Mandarine: original request and ideas - page 2

Forex-TSD Master
1445
Forex-TSD Master  
Alex.Piech.FinGeR:
i begin NOW convert

ok?

Beluck was going also to convert it.

Are you going to convert it also Alex?

Best regards

Sergey Golubev
Moderator
121521
Sergey Golubev  

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.

AlexPiechFinGeR
1041
AlexPiechFinGeR  

hi,

what is mtLong ?

MALong := Mov(Open,tPrLong,mtLong);

hellkkas
574
hellkkas  
Alex.Piech.FinGeR:
hi,

what is mtLong ?

MALong := Mov(Open,tPrLong,mtLong);

Media Type Long

AlexPiechFinGeR
1041
AlexPiechFinGeR  

ok have Finsih but EA Name ?

AlexPiechFinGeR
1041
AlexPiechFinGeR  

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

--

Sergey Golubev
Moderator
121521
Sergey Golubev  

Thanks.

I moved the EA to the downloads area.

Forex-TSD Master
1445
Forex-TSD Master  
Alex.Piech.FinGeR:
ok no EA Name

MandarineXL v.0.1.mq4

--

good name, name improves ea

quksilver
19
quksilver  

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

Mykola Bilak
585
Mykola Bilak  

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.