MQL5 Algo Trading
403K subscribers
2.64K photos
2.65K 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
The script effectively compiles total profits and swaps for each currency pair, enhancing its utility for hedging strategies and accounts. It accommodates multiple entries that rely on trading signals, promoting efficient analysis of financial performance. This feature is particularly beneficial for traders who require comprehensive oversight of their trading activities and outcomes. By aggregating these metrics, the script aids in the decision-making process and improves strategic planning. This tool integrates seamlessly into trading routines, offering valuable insights into overall profitability and financial health of hedging activities. The meticulous attention to detail supports informed trading strategies.

👉 Read | CodeBase | @mql5dev

#MQL5 #MT5 #script
23👍6👨‍💻2👌1
A script has been developed to calculate autocorrelation and partial autocorrelation functions, displaying results graphically. Key input parameters include:

1. N: Data window for calculation, where a default value of 100 is set. Capable of handling large datasets, it efficiently processes over 100,000 bars.

2. K: Number of lags for analysis, defaulted at 16. Typically, analysis remains effective with lags under 40, though the script supports up to 500.

3. start_pos: Defines data window offset, with zero indicating calculations start from the latest loaded bar.

4. duration: Chart display period, set for 10 seconds.

These settings facilitate comprehensive time series analysis, enabling efficient examination of large datasets for technical insights. Adjust parameters according to specific analysis needs.

👉 Read | Calendar | @mql5dev

#MQL5 #MT5 #script
22👌3
Recent evaluations have highlighted performance and accuracy issues with the standard API functions ChartXYToTimePrice and ChartTimePriceToXY. ChartXYToTimePrice fails to function correctly when X and Y parameters fall outside the visible chart window, defaulting to zero values. Additionally, ChartTimePriceToXY experiences inaccuracies in certain scenarios. Both functions exhibit slow performance.

To address these issues, a revised script demonstrates improved accuracy across all parameter ranges. It utilizes a method where X and Y coordinates are translated to time and price and then reverted back. Accuracy is validated if input coordinates match the output. A discrepancy indicates functional errors, notating the issue during execution. The script concludes by reporting the final outcome, remaining silent if functionality is assured.

👉 Read | AppStore | @mql5dev

#MQL5 #MT5 #script
25👌1