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
Dear Ubzen, Raptor and WHRoeder,
Many thanks for your instruction.
I use ask1 to normalize it before using it in the ordersend function. Based on the code snippet in your previous reply, I modify the code in the original post, no 129 error was reported again. I repost the code snippet here in case it might be of help to someone. The key is to call refreshrates() before the call to any OrderSend(). Since any trading function call will cost some time to finish, calling this function can ensure the market data refresh.
Below is the code that works currently, with RefreshRates() added before the OP_SELL orderSend call, no OrderSend Error 129 was reported again.
Thank you all again for your time and efforts! Good luck to you all. This question really make me somewhat exhausted!
Dear Raptor,
I noticed your demand for using the SRC button to make the contents tidy and clean. I will use it carefully later on to make the contents more readable and more comprehensible.Sorry for the trouble aroused.tzm: Dear Ubzen, Raptor and WHRoeder, Many thanks for your instruction.
I use ask1 to normalize it before using it in the ordersend function. Based on the code snippet in your previous reply, I modify the code in the original post, no 129 error was reported again. I repost the code snippet here in case it might be of help to someone. The key is to call refreshrates() before the call to any OrderSend(). Since any trading function call will cost some time to finish, calling this function can ensure the market data refresh.Below is the code that works currently, with RefreshRates() added before the OP_SELL orderSend call, no OrderSend Error 129 was reported again.
Well I'm happy its working for you :)
You take all the credits buddy .... way to hang in here.