Questions from Beginners MQL5 MT5 MetaTrader 5 - page 224
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
And even if it is one, shouldn't the MT give out the history for that second? I.e. doesn't it output the history within the specified boundaries, INCLUDING the boundaries themselves?
But anyway, I've tried writing both dtStartTime = TimeCurrent() - 1, and dtStartTime = TimeCurrent() - 10. Doesn't work.
Now, as for how and how long the trade will run, it will be a paid service while I am alive, I will use it for free one month, then the minimum...
Good evening! I'm having a problem and I'm puzzled. How can an EA pull information from the history about the last closed trade in particular closed it. TakeProfit or StopLoss. I looked in the manual, but so far I have no ideas how to implement it. Maybe I looked in the wrong place. I will thank in advance if anyone can help. Correction. The issue is exactly with receiving a signal from the selected order about how it was closed, i.e., what function returns the message that a position was closed at Stop Loss.
When I asked the same question, someone on the forum told me that in MT5, it is better to forget about stop-loss and take-profit orders and place independent stop and limit orders instead. When one of them triggers, the second one should be withdrawn independently. Having looked into the question, I was convinced that he was absolutely right. It is not the safest solution (given the possibility of a disconnection with the server), but there is no other. It's the only way to identify any order and any transaction in the history, as they can be assigned a magik. And the trades made at stop-loss or take-profit always have zero magic.
Good evening! I'm having a problem and I'm puzzled. How can an EA pull information from the history about the last closed trade in particular closed it. TakeProfit or StopLoss. I looked in the manual, but so far I have no ideas how to implement it. I have not looked in the right place. I will thank in advance who will help. Correction The problem is with receiving a signal from the selected order on how it closed, i.e. what function and what function returns it, saying that the position was closed at Stop Loss.