need a piece of script

 

Hi I need an ea that automatically open a position (buy or sell) every 60 seconds and place a stoploss 

can anyone help me ?

thanks !

 
link3:

can anyone help me ?

no problem. suicide EAs are avaiable from 200$ up...

 
link3:

Hi I need an ea that automatically open a position (buy or sell) every 60 seconds and place a stoploss

can anyone help me ?

thanks !

it's simple, use the function Minute(), for the stoploss tellme an logic

 
DarkHope:

it's simple, use the function Minute(), for the stoploss tellme an logic

If it's so simple then could you write the script

I would really appreciate ;)

 

Ok my ea is almost done

now can someone tell me how to make it run only once ?



int start()

{if(Seconds() > 45)
      {OrderSend(Symbol(),OP_BUY,0.1,Ask,1,Ask-10*Point,Ask+100*Point);
      OrderSend(Symbol(),OP_SELL,0.1,Bid,1,Bid+10*Point,Bid-100*Point);


}
return(0);
}

 
link3:

Hi I need an ea that automatically open a position (buy or sell) every 60 seconds and place a stoploss

can anyone help me ?

thanks !

If you want it to open once per minute regardless of incoming ticks then u must design the EA with a loop design, since ticks won't necessarily come every minute. You can read more about this design here -> MQL4 Book -> About Complex Programs.

 

no it has to run only one time in total

I guess it's very simple but I'm lazy

 
eg. on next 44 secs I want it to open 1 order in total then the program end
 
link3:

...but I'm lazy

That sort of attitude will not get u very far... Good luck.

Reason: