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
Different servers, different 500 pp.
What does this have to do with different servers? These are two tests by the same person. Only the currency pair specified in the tester differs
I have everything correct, demo MK server.
Then please explain, what is the value in brackets when you open an order and why in one case it is (1.29565 / 1.29654) and in the other (1.29443 / 1.29479 / 1.29443)
(I mean your test results.
Update your terminal/tester and maybe everything will work, I have a 687 build and everything works.
Exactly the same error "pops up" when sending the EA to the championship (in their automatic tests), so the update will only partially help
What's more. It comes up only 1 time (the very first attempt to place an order on a currency pair other than "your")
What does this have to do with different servers? These are two tests by the same person. Only currency pair specified in the tester differs.
Have a look at the articles about the tester:
Prices do not need to be the same when testing on another currency pair
Have a look at the articles about the tester:
Prices do not have to match when tested on another currency pair
So, ran some more tests. Really a problem with the "current price".
Code:
Note, I open at Ask symbol price plus 1 (with a huge margin). At the same time before and after I print the current Ask and Bid.
Results (when testing on GBPUSD):
The price 1.29241 is printed before and after the order is placed. In the meantime, in brackets (when the order is placed), the price is 1.29722. HOW? Or am I obtaining the current price incorrectly?
And secondly, if there was an error with the price, then why the error 10016 (stops)?
But the error still exists in the cutscene.
To be honest, I do not quite understand how error 10016 can be in case of no stops
I don't know what and how you are doing it, the problem is probably really in SL.
My version works without problems. The call, however, threw in the initialization block, not to bother with checks (although the presence of the order before setting it would be worth checking).
I don't know what or how you're doing it, the problem is probably really with SL.
My version works without problems. The call is true, but I threw the call to the initialization block, not to bother with the checks (although the presence of the order before setting it would be worth checking).
A small request. Can you tweak the code so that before OrderSend it outputs the current price of the instrument on which we open?
Try it this way:
Small request. Can you correct the code, that it would output the current price on that tool before OrderSend?
A price spritzer? I don't see the need for that, you can add a message about the success/failure of the check and the setting of the order.
In principle you can do it yourself, should not be difficult (by idea).
Try it this way:
For debugging it will do quite well, in working code it will be superfluous (at least a bit of a snaggy solution)
And it's better to place order after OrderCheck, so that in case of error it won't go to OrderSend.
PS
I forgot to add, based on the example bar_info could be placed in a function without problems.
A price spritzer? I don't see the need for that, you can add a message about the success/failure of the check and the setting of the order.
In principle, you can do it yourself, it should not be difficult (in idea).
It may be good enough for debugging, but in production code it will be superfluous (at least it's a bit of a crooked solution).
And it would be better to place order after OrderCheck, so that in case of error we won't get to OrderSend.
PS
I forgot to add, based on the example bar_info could also be placed in a function without any problems.
It is funny. In your example, I have removed BUYSTOP for GBP, only EURUSD is left.
After filling the fields in the request, I have outputted the price of pending order.
1) You have variant - pending order is placed in the Inite
2012.01.01 00:00:00 price = 1.30487000
2) I commented out the init, moved it to OnTick. I put a condition to trigger only on the first tick.
2012.01.02 09:00:00 price = 1.29720000
P.S. I understand correctly that in my (and your) code bar_info[1] is the maximum of the current bar?