MQL5 Algo Trading
387K subscribers
2.56K photos
2.56K links
The best publications of the largest community of algotraders.

Subscribe to stay up-to-date with modern technologies and trading programs development.
Download Telegram
In the recent update on developing a replay system, the focus shifted to enhancing the Chart Trade Project. The initial attempts to integrate a control indicator on the chart using a service proved challenging, emphasizing the need to convert MQL5 scripts into services effectively. A service can operate independently from a specific chart, which facilitates ongoing chart monitoring.

The article highlights differences between scripts and services, illustrating how a simple moving average script can be transformed into a service. This involves crucial property adjustments in the code to ensure functionality even without direct chart linkage. The enhanced service can automatically reintroduce indicators if removed, offering an innovative method for maintaining chart configurations.

Additionally, the discourse extends to the practical application, such as...
#MQL5 #MT5 #ReplaySystem #MQL5

Read more...
👍4417🤓7👨‍💻4👌32🏆1
The article delves into improving the replay/simulator system for MetaTrader 5 by focusing on template utilization and encapsulation. It highlights the transition from InterProcess.mqh to Defines.mqh for a cleaner header file structure, which requires code modifications to avoid compilation errors. Proper encapsulation is addressed to enhance code maintainability and security, particularly within the C_ConfigService and C_Replay classes. This involves private variable management and restructuring the C_Replay class to handle data more efficiently. The article exemplifies how controlling chart indicators and templates can streamline the process, ultimately making the trading tool more adaptable and easier to maintain.
#MQL5 #MT5 #ReplaySystem #Algorithm

Read more...
11👍6👨‍💻2
In recent developments around the replay/simulator application, a crucial fix was implemented regarding the unexpected automatic pause mode. The incident, initially perplexing, was traced to a custom event inadvertently modifying the OBJPROP_STATE property, misleading the service into pause mode. By leveraging the indicator buffer instead, performance impacts were minimized and the application's reliability improved while laying the groundwork for a future fast-forward feature.

Additionally, another critical issue involving memory dumps was addressed. Errors were traced back to unreleased objects of the C_DrawImage class, highlighting poor pointer management within the C_Controls class. By simply ensuring pointers are properly initialized and deallocated, stability was restored, emphasizing the importance of meticulous memory management in develo...

👉 Read | VPS | Share!

#MQL5 #MT5 #ReplaySystem
1411👍9👨‍💻1
In the technical discussion surrounding the MetaTrader 5 replay system, the focus is on refining the C_Replay.mqh file for better handling of low-liquidity scenarios. Key updates include adjusting code logic to correctly track elapsed time on asset bars, even when OnCalculate events are sparse. This involves employing a custom bitmask to ensure the mouse indicator receives spread values directly from the simulator, enhancing accuracy in timing calculations. Developers can test these modifications to verify improvements in handling time between tick updates, crucial for accurate algorithmic trading strategies. This optimization aims to enhance the simulator's precision under varying market conditions, aiding developers in robust trading analysis.

👉 Read | NeuroBook | Share!

#MQL5 #MT5 #ReplaySystem
👍4619👨‍💻1