Hi Have you found a fix for this please?
- Junior Dream #: Hi Have you found a fix for this please?
The code is wrong. A Buy Limit price must be below the market, not above.
- el3reef: now i need to use BuyLimit,BuyLimitThere is no need to create pending orders in code.
- The pending has the slight advantage, A) you are closer to the top of the queue (filled quicker), B) there's no round trip network delay (filled quicker.)
- Don't worry about it unless you're scalping M1 or trading news.
- Humans can't watch the screen 24/7, so they use pending orders; EAs can, so no need for pending orders, have it wait until the market reaches the trigger price and just open an order.
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 used to use CTrade class on Buy,Sell functions without any problems
now i need to use BuyLimit,BuyLimit ,in the first of used i face error expedition time, I tried to fill the two inputs for the expiration code and I faced another error "CTrade::OrderTypeCheck: Invalid order type"
example of code that i use
waiting for help
Thanks