Discussion of article "Library for easy and quick development of MetaTrader programs (part X): Compatibility with MQL4 - Events of opening a position and activating pending orders" - page 5
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
Modifail only one, highlighted position. There's no doubt about that. It was set this morning. Modified it several times. I didn't care which one I modified. I had already set a takeout on this one. That's what I was trying to do.
Here are all the limiters and the last Sell.
The deleted limiters and the Sell are highlighted. Apparently, there is a deletion event somewhere. But why did it "wake up" not with the opening of this Sell, but only with the closing?
At 15:01:14 I deleted the limit order placed earlier.
Until 18:29 I did my own business. The Expert Advisor stood on the chart.
At 18:29:21 I modified the previously set position.
At 18:33:02 I put Sell
At 18:34:11, I closed this Sell.
"Previously opened position" - was it opened before the"previously set limit order" was set?
Yes, or no?
Alexei, is it hard to answer briefly without a bunch of journal posts?
You have them all labelled as "previously opened" and "previously set".
Which is correct: 1 or 2 ?
Watch your hands:
A Buy position was placed at 8:51 and has not been closed. Even now it's open. Only changed the take level a few times. Here's a record of it.
Limiter at 14:54 (no seconds) placed. At 15:01 it was removed. Which was recorded at the appropriate time.
Further, after the break, the take level of the Buy position placed at 8:51 was changed a couple of times again.
At 18:33 the Sell position was opened and at 18:34 it was closed.
It was at the moment of closing this Sell position that there was a repeated message about the removal of the limit set at 14:54 and removed at 15:01.
Watch your hands:
A Buy position was placed at 8:51 and has not been closed. Even now it's open. Only changed the take level a few times. Here's a record of it.
Limiter at 14:54 (no seconds) placed. Removed at 3:01 p.m. Which was recorded at the appropriate time.
Further, after the break, the level of the take level of the Buy position placed at 8:51 was changed a couple of times again
At 18:33 the Sell position was opened and at 18:34 it was closed.
It was at the moment of closing this Sell position that there was a repeated message about the removal of the limit set at 14:54 and removed at 15:01.
so
Is that the sequence?
I'm asking you to just write a sequence of actions, not to shove your logs for me to spend half a day in them - I can't get a simple sequence of actions from you for half a day now - you keep trying to give me your logs to deal with - Alexey, I have a lot of worries. I just need to reproduce your situation. To do that, I need the usual sequence of actions as I wrote above - it takes me five minutes to write, and I don't have to sort out the intricacies of your log, scrapped and posted in chunks here.
I can't reproduce your error. That's why I'm asking for quick help, rather than making me go through your log scattered through posts.
hence
Is this the sequence?
The highlighted was repeated several times. How many, I don't know, I didn't need to count it. I don't think you know how it affects the whole situation.
But in general, it's exactly like this.
The highlighted part was repeated many times. How many, I don't know, I didn't have to count it. I don't think you know how it affects the whole situation.
But in general, it's exactly like that.
And now a question about the logs: is there an entry in the log about p4"Limit order deleted" after the entry about the Buy takeout change from p3 ?
Why is it necessary - to understand whether this event was lost the first time when the order was deleted, or whether it was re-displayed after Sell close
And now a question about the logs: is there an entry in the log about p4"Limit order deleted" after the entry about the Buy takeout change from p3 ?
Why is it necessary - to understand whether this event was lost the first time when the order was deleted, or whether it was re-displayed after Sell close
You see how useful it is to dig through logs)))))) Between placing this order and deleting it, I moved it three more times to a different price.
And the record of deletion was
You can see how useful it is to dig through the logs.)))))) Between placing this order and deleting it, I moved it three more times to a different price.
And the record of the deletion was
Good. I'll try to reproduce it.
Hello. You have certainly done a great and necessary work. For what you have a huge human thank you! But there is a question. The Expert Advisor that you use for tests when working on the account modifies all orders and positions regardless of the majiks and differences of currency pairs. I.e. you put it Eurobucks and at the same time another owl stands on another currency and holds there its orders and positions. you click on your advisor modification of profit or stop and it pulls not only Eurobucks, but everything that is in the terminal. It's not kosher. Thanks for understanding.
This EA is only for testing the library in the tester. It is not recommended to put it even on a demo. And it is strictly forbidden to use it on a real account.
Artem I replayed the situation.
The script closed all yesterday's open positions. I did not put any orders on the account, but yesterday's ones are closed. There are records of deleting orders. And not just one. There was a record "This event is already in the list" three times.
Then I placed three more positions and closed them with the script again. Everything happened again. Three positions closed ... three attempts to delete a position that is already in the history.
Even though you don't like logs, I'll put it directly from the "Experts" tab.
At the moment of USDJPY opening (bottom line of records) there were no open positions and pending orders.