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
Oh yes i realized that the market is closed now...and I found the stupid mistake...
I don't know how, but I changed the open price "bid" and "ask" and that was the reason why it worked with a high slippage...! But I plan to include some parts of Ais' or WHRoaders' code in mine, thank you for that...
Now I tried to improve my ordersending-code with a take profit. So the aim is, that if it reachs the tp, it closes, otherwise, it should close when the ordersend signal in the opposite direction is given...
My code:
I use the contrary code to close a sell-order, if one exists and and to open a buy-order.
I believe I made a logical mistake, because it sometimes closes with the tp, but even if I make the tp as small as possible, it only closes about half of the orders with it, but not in a static sequence. Is there anybody who can see a mistake in there?
Thanks for your help.
Manag