Ea

To add comments, please log in or register
Nordic12
99
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)

Nicholishen
1016
Nicholishen  
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?

Nordic12
99
Nordic12  

Ea

Nicholishen, Yes thats exactly correct

Nicholishen
1016
Nicholishen  
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);

}

Nicholishen
1016
Nicholishen  
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
99
Nordic12  

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

Yuri Predborski
561
Yuri Predborski  
Nordic12
99
Nordic12  

Shinigami

Shinigami

Thank you for your valuable time.

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

Thanks

To add comments, please log in or register