A service is available for developers needing efficient swap management, aimed at monitoring and recording swap changes for designated symbols. This service routinely inspects the swap rates, logging any updates into CSV files named after each symbol and organized by month. For instance, a file named 202410.csv will contain data for October 2024, capturing the date-time, long swap, and short swap on each line. The system also tracks swap alterations in existing positions, issuing alerts for any variations identified. The program operates as a script within a chart if the directive `#property service` is commented out, although deploying it as a service is advised. Due to limitations in MQL5's support for the service program type, the code is distributed as a script.
#MQL5 #MT5 #script #Algorithm
Read more...
#MQL5 #MT5 #script #Algorithm
Read more...
❤18👍14👌2👏1👨💻1
The EA under discussion presents a streamlined version of the RRS Randomness in Nature EA. Designed to operate without relying on traditional technical analysis such as indicators or price patterns, it randomly selects trades, currency pairs, lot sizes, and order types. Despite its randomness, the EA allows for multiple trading strategies and customizable options including risk management. Key elements include setting minimum and maximum lot sizes to control randomness, configurable stop loss and take profit values, and a choice of risk management through fixed money or balance percentage methods. The EA also determines the maximum spread and slippage to execute trades effectively. Users should note that if encountering any operation errors, removing '#property strict' from line 8 of the code may resolve the issue.
👉 Read | CodeBase | Share!
#MQL4 #MT4 #EA
👉 Read | CodeBase | Share!
#MQL4 #MT4 #EA
👍23❤19👾4🏆2👨💻2
MetaTrader 5 indicators and EAs ship with a standard settings dialog built from default tabs. Most UI additions seen in custom tools duplicate what the platform already provides, and increase maintenance without adding capability.
The first tab can be adjusted via #property directives, including icon, purpose text, and a URL. These values are compiled into the binary and rendered by the terminal, with link details available via hover and click.
Indicator execution hinges on OnInit and OnCalculate. MQL5 provides overloaded OnCalculate signatures; the chosen signature affects whether specific configuration tabs are shown. A minimal indicator can be defined statically with #property, one plot buffer, and SetIndexBuffer, relying on platform-managed styling options such as color, line style, thickness, and calculation mode.
👉 Read | NeuroBook | @mql5dev
#MQL5 #MT5 #Indicator
The first tab can be adjusted via #property directives, including icon, purpose text, and a URL. These values are compiled into the binary and rendered by the terminal, with link details available via hover and click.
Indicator execution hinges on OnInit and OnCalculate. MQL5 provides overloaded OnCalculate signatures; the chosen signature affects whether specific configuration tabs are shown. A minimal indicator can be defined statically with #property, one plot buffer, and SetIndexBuffer, relying on platform-managed styling options such as color, line style, thickness, and calculation mode.
👉 Read | NeuroBook | @mql5dev
#MQL5 #MT5 #Indicator
❤66👍7⚡6🎉4😁3👌3👀1