Ea

 

Does anyone have an example of a basic EA which continual loops around and executes a pending buy or sell signal (with a tp and sl)

 
Nordic12:
Does anyone have an example of a basic EA which continual loops around and executes a pending buy or sell signal (with a tp and sl)

Please clarify. do you mean continually runs without regard to when ticks come in?

 

Ea

Nicholishen, Yes thats exactly correct

 
Nordic12:
Nicholishen, Yes thats exactly correct

its really simple. what you do is change the name of the start function to something like main. the write a new start function like=

int start(){

while(true){

refreshrates();

main();

sleep(10);

}

return(0);

}

 
Nordic12:
Nicholishen, Yes thats exactly correct

its really simple. what you do is change the name of the start function to something like main. the write a new start function like=

int start(){

while(true){

refreshrates();

main();

sleep(10);

}

return(0);

}

 

Pending order

Where does the buy/sell pending order go ?

i want to say:

if price = xxx then pending buy with a tp of a and sl of b

if price = yyy then pending sell with a tp of a and sl of b

thanks

 
 

Shinigami

Shinigami

Thank you for your valuable time.

Im reading thru the code - where would i put the values to buy/sell ?

Thanks