As usual when I've posted a Q I find the A. Nothing wrong with the number/type of orders... Its only one BuyStop as it should be.
I am aware that there are other 'issues' with the code so no need to comment on that.
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
Hi, I use this code to send a limit order (for some unknown reason I have to use a stop order to get it to work as I expected a limit order would do, dunno why....).
But the problem is that even though I've hardwired Type=4 it sends one stop order, and then one market order. Why?? It appares in Results like this:
-----------
1 2009.12.08 00:00 buy stop 1 0.33 1.48400 0.00000 0.00000 0.00 10000.00
2 2009.12.08 00:30 buy 1 0.33 1.48400 0.00000 0.00000 0.00 10000.00
3 2009.12.08 03:56 close at stop 1 0.33 1.48388 0.00000 0.00000 -3.96 9996.04
----------