This is exactly as docs says - expiration time in datetime type. You don't need to bother that it's internally stored as number of seconds passed since epoch. You can use any datetime related functions or simply add seconds to current time.
OrderSend - Trade Functions - MQL4 Reference
- docs.mql4.com
OrderSend - Trade Functions - MQL4 Reference
amando:
...
...
can someone help me, how do program on a pending order, that the expiration is after 30 minutes?
OrderSend(Symbol(),OP_SELLSTOP,Lots,Price_Sell,Slip,SL,TP,Text,MN,TimeCurrent()+30*60,Red);
Thanks
Stanislav Korotky:
This is exactly as docs says - expiration time in datetime type. You don't need to bother that it's internally stored as number of seconds passed since epoch. You can use any datetime related functions or simply add seconds to current time.
This is exactly as docs says - expiration time in datetime type. You don't need to bother that it's internally stored as number of seconds passed since epoch. You can use any datetime related functions or simply add seconds to current time.
This was the missing link document ;-)
thanks a lot
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
Helle,
in older days, the order expire was a function of Seconds,
now it use the datetime and this is a miracle for me since i use MQL4.
can someone help me, how do program on a pending order, that the expiration is after 30 minutes?
amando
PS
@admin, plese do not post this link here, i know you will do it, but i dont understand the crap here
https://docs.mql4.com/basis/types/integer/datetime