Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 1075
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
I apologise for not using the SRC, for some reason it doesn't work for me.
I would experiment with the expiry time. A trade opening is requested, but a non-zero "Pending order expiry time" TimeExp = 5 is passed to OrderSend. According to the help, even in the legal case of pending order setting request
"On some trade servers there may be a prohibition on pending order expiry times. In this case an error 147 (ERR_TRADE_EXPIRATION_DENIED) will be generated when trying to set a non-zero value in the expiration parameter."
And, just in case, the expiry time is passed in seconds (datetime type). The value 5, I suspect, refers to minutes.
In this EA, TimeExp = 5 refers to the expiry time of the option, i.e., TimeExp is a comment variable for the order. And the expiry time is given in minutes.
Then the answer is not on this forum. Binary options trading through the MT4 platform is implemented using software add-ons. In particular, add-ons over MQL4. In spring 2015 I was trading a binary options advisor in GC, and there the duration of the b. option was set in some "twisted" way (through comments, I think, but I couldn't find my code now). I was under the impression that each company writes these plug-ins independently. Later on, unified solutions from a third party seem to have appeared. But one has to ask the support team of each company to know the peculiarities of their work. These are not the features of MQL4.
Good afternoon, please help with this question. I have a code (somewhere downloaded from the good people) - the essence of the code is this: if the order is closed by a stop loss, it is re-set again with the same parameters. But the problem is that if I run it right now, the code reinserts all orders for past periods, and I want only those orders that have closed by stoploss for example only for today! Which filter to put, please advise? Don't know how to get the order date and compare it with the current date? Thank you.