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
In this example, the expiration time is 0. I need example of pending order "Good for the Day Only".
Did you read what error 147 means ?
as RaptorUK wrote
RaptorUK 2012.01.12 12:45
so, call your broker
So simple and effective.. Great!
Thanks.
Check that the OrderType() is not OP_BUY or OP_SELL ( that means that the order has not been triggered)
if TimeCurrent() -OrderOpenTime()>=nMinutes*60
Delete the order
It works like this (so far :)
THX
if (OrderType() == OP_BUYSTOP || OP_SELLSTOP)
Nope. Zero is false, non-zero is true. (OrderType() == 4 || 5) equals (OrderType() == 4 || true), and (anything or true) is always true.