Hello guys. Could you please help me fix my EA panel+Button? it should work next way, Show Daily, Weekly, Monthly and Total profit properly, update them on every closed trade and button should show current profit/loss and pushing it should close all trades under this pair + magic. Current version freezes my MT5 and calculations are not proper I think..
Documentation on MQL5: Position Properties / Constants, Enumerations and Structures
- www.mql5.com
Execution of trade operations results in the opening of a position, changing of its volume and/or direction, or its disappearance. Trade operations...
Files:
Panel7Button.mqh
31 kb
- How to Become a Signal Provider - Trading Signals and Copy Trading
- Strategy Testing - Algorithmic Trading, Trading Robots
- Modifying a Position - Trade - MetaTrader 5 for iPhone
Davit Beridze:
Hello guys. Could you please help me fix my EA panel+Button? it should work next way, Show Daily, Weekly, Monthly and Total profit properly, update them on every closed trade and button should show current profit/loss and pushing it should close all trades under this pair + magic. Current version freezes my MT5 and calculations are not proper I think..
Use HistoryDealSelect(ticket) inside your HistoryDealsTotal() loop instead of HistorySelect(0, TimeCurrent()) above your HistoryDealsTotal() loop [your line 38 or so].
Hello guys. Could you please help me fix my EA panel+Button? it should work next way, Show Daily, Weekly, Monthly and Total profit properly, update them on every closed trade and button should show current profit/loss and pushing it should close all trades under this pair + magic. Current version freezes my MT5 and calculations are not proper I think..
Documentation on MQL5: HistoryDealSelect / Trade Functions
- www.mql5.com
Selects a deal in the history for further calling it through appropriate functions. It returns true if the function has been successfully completed...
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