Experts: EA Hedge Average

 

EA Hedge Average:

Expert Advisor created using hedge function and the moving average indicator.

hedge-average2

Author: Widianto Pramana

 
Seems good I am trying then update 
 
Khurram Mustafa:
Seems good I am trying then update 
Thanks, I'm glad to share my knowledge with everyone
 

Hi, do we have to copy paste this below code too in the EA?  

if( totalorder(0)<Max_order  && Trade_buy  && signal==1  && wt!=Time[0] ){ticketb = OrderSend(Symbol(),OP_BUY,NR(Lots),Ask,3,slb, tpb,Name_EA,Magic,0,Blue);
if(ticketb>0) wt=Time[0];
}
if( totalorder(1)<Max_order && Trade_sell && signal==2  && wk!=Time[0]) {tickets = OrderSend(Symbol(),OP_SELL,NR(Lots),Bid,3,sls, tps,Name_EA,Magic,0,Red);
if(tickets>0) wk=Time[0]; 

 

Thanks 

 
Amita Jolly:

Hi, do we have to copy paste this below code too in the EA?  

 

Thanks 

no, because I already have inserted
 

Have you tested this EA, or have you any results ?

 
Why dont you add some comments for each part of the programe so that the reader can understand the ea easily
 
riz_pak:

Have you tested this EA, or have you any results ?

I do not have it, you can do yourself a friend
 
cyshanhu:
Why dont you add some comments for each part of the programe so that the reader can understand the ea easily
Yes I am sorry if the explanation is less obvious code
 
Widianto Pramana:
Yes I am sorry if the explanation is less obvious code
Amita Jolly
:

Hi, do we have to copy paste this below code too in the EA?  

 

Thanks 

Hello Widianto,


I am testing this EA at the moment. The results are good. But you wrote about the code below, that we put it in the EA.

My question are, where in the EA can I put this code? Below: Expert Start Function; near   if(totalorder(1)............. ?

my second question are, which results do you have on which pair and time frame? 

I like the principle of this EA, so i wanne make it a good profitsystem.

Hope you can help me.

Edwin