if(...){ OrderSend(Symbol(),OP_SELLSTOP,....); }I have this code, but there has to be price change to open new order. Is there a way to open order immediately (without price change)?
if(Seconds()>=55 && Seconds()<=59){ OrderSend(Symbol(),OP_SELLSTOP,1.0,Bid,5*places,0,0, "EA",MagicNumber,0,Red); }I want to place order between 55 and 59 second. Problem is if there is no price change EA does not place order. How can I solve this problem?
Anyone?
Sorry but I don't understand. Can you be more precise? Thank you!
int init() { if (IsExpertEnabled() == true) { while (true) { //------My code here--- Sleep(1000); } } return(0); } int start() { return(0); }Will this run EA every second even if there is no new tick?
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hello!
I would like to know if it is possible to open order immediately and not waiting for new tick?
Thank you!