I have found this line of code but it is not creating a buy limit order if i use this code
Here's a code snipit to set expiration time to 10 min:
I need to set the expiration time to 3 min. How should the code look like if i want to that?
Tried this but doesn't work eather
It's not placing the limit order
Here's a code snipit to set expiration time to 10 min:
PHP Code
int et = TimeCurrent()+(PERIOD_M5*60)*2;
OrderSend(Symbol(),OP_BUYSTOP,0.10, 0,3,0,0,"0",0,et,Green);
Tried this but doesn't work eather
PHP Code
int expiration = TimeCurrent()+(PERIOD_M1*60)*3;
Blindly following others will make you blind!