[ARCHIVE!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Can't go anywhere without you - 4. - page 508
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
If you want to speed up an indicator, please contact
Good afternoon! Order modification error 4051. I've been thinking for an hour. Seems to be the right parameter there!!! To make a long story short. The parameter price is the opening price of the order, OrderOpenPrice(), it is standard.
Our stop price is 10 points below the open price, and we have memorized the price. We store it in the variable tsena when opening the order.
We have two orders, one with a profit and one without. It seems to be clear. What is the error? What else could it be?
Yes, the condition seems to be clear, although it is not really relevant. I.e., price has moved by 30 points, the condition worked (tsena+30*Point).
We set perenos=true once; These conditions actually seem to work.
I myself don't know how to think.
We actually wear it once perenos=true; These conditions didn't work, because it didn't work either.
There is an important parameter - tucket. However, I assign it to a variable so int tacket=OrderSend and so int tucket=OrderSend,
and I use OrderModify( tacket, and in short I don't see any formal error there!!!
Oh, man... 2012.11.14 22:40:17 2012.08.16 15:30 Vasilypr EURGBP,M30: 1Error 0 tacket 5 that is the order was opened, the ticket was assigned.
And further it is already equal to zero! That is, within the next code section, which deals with the modification.
2012.11.14 23:05:27 2012.08.17 11:03 Vasilypr EURGBP,M30: tacket 0 OrderOpenPrice() 0.7845 tsena-10*Point 0.7835 OrderTakeProfit() 0.789
Outside the above code area, the variable does not play at all!
I can not change the Ukrainian layout of any key combination, and written in Russian!
There is an important parameter - tucket. However, I assign it to a variable so int tacket=OrderSend and so int tucket=OrderSend,
and I use OrderModify( tacket, and in short I don't formally see any error there!!!
Apparently, DC does not accept immediately with SL and TP. After opening modify SL and TP. And the 2nd position should not be opened immediately, with the next tick!
It's a modification error, it's a modification error.
In the tester it may work, and on Demka too, but on Real it won't!
And slippage doesn't help!
Why, what's not going to pass?
Oh, I get it, the frequent submission of two orders at once.
Why, what won't pass?
It won't work to set the SL and TP at once! And when modifying them you have to put a condition with a gap! Especially in the vicinity of the price!