MQL5 Algo Trading
388K subscribers
2.56K photos
2.57K 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
Enhance trading analysis with a unique auditory element using a script that plays piano notes corresponding to candlestick properties. It assigns higher notes to rising bullish candles, while lower notes resonate with bearish declines. Ensure sound files are located in the Files/Sounds directory for seamless execution. Simply copy the provided code and create a new script in your environment. For those who download additional files, remember to uncomment the specified lines for proper compilation. This approach offers an additional layer of engagement with your datasets by leveraging auditory cues as part of technical analysis strategies.

πŸ‘‰ Read | AlgoBook | Share!

#MQL5 #MT5 #script
❀23πŸ‘13✍4πŸ‘Œ2🀨2πŸ‘¨β€πŸ’»2
A new script has been designed to provide comprehensive details on brokers, accounts, and instrument specifications. It builds upon the "MQL4 Reference / Constants, Enumerations and Structures / Environment State / Symbol Properties." This script also derives inspiration from the "Market Info" script by Sergey Mechanic, which can be found in code repository 11223.

Through detailed comparison, the script's output has been matched against the "contract specification" available via platform navigation (View / Symbols / Properties), ensuring accuracy and reliability. The results from this comparison confirm the script’s consistency and usefulness in extracting essential data. This tool proves beneficial for developers and analysts in checking and verifying the contract details of trading instruments directly within the trading environment.

πŸ‘‰ Read | VPS | Share!

#MQL4 #MT4 #script
πŸ‘31❀18πŸ‘Œ2πŸ‘¨β€πŸ’»2πŸ‘€2
A new script for MetaTrader 5 offers features for precise trading risk management: users can set customizable Risk:Reward ratios and define Stop Loss in pips. The script automatically calculates and applies SL and TP levels based on open positions, whether Buy or Sell. It presents a user-friendly interface with error handling for various market conditions.

To implement, attach the script to the MT5 chart and configure parameters. The script detects open positions for the current symbol and applies the calculated levels, confirming modifications in the MT5 terminal.

This tool saves time by eliminating manual calculations, ensures consistency in trading strategy, and is versatile across various symbols and account types. Installation involves downloading from the MQL5 Codebase and following outlined steps. Testing on a demo account is advised for familiar...

πŸ‘‰ Read | AlgoBook | Share!

#MQL5 #MT5 #Script
❀39πŸ‘12✍3πŸ‘¨β€πŸ’»2
A script designed to manage buy orders effectively requires attention to its setup and functionality. Primarily, this script enables the partial closure of profitable buy orders while allowing other orders to reach their target profits. Essential parameters include `ClosePercentage`, which defines the portion of each buy position to be closed, and `Slippage`, which determines the maximum slippage in points. The `CommentText` parameter filters positions by specific comments if desired.

Key features include compatibility with multiple buy positions and the preservation of original stop loss and take profit levels for the remaining lots. It safeguards minimum volume requirements, handles errors, and provides operational feedback.

To implement, copy and compile the code in MetaEditor. The script will be accessible in the Navigator under "Scripts" and can be ex...

πŸ‘‰ Read | AlgoBook | @mql5dev

#MQL5 #MT5 #script
❀32πŸ‘¨β€πŸ’»9πŸ‘Œ4✍3πŸ”₯2🀝2πŸŽ‰1
A new script targets efficient trade management by partially closing profitable sell orders while maintaining other open positions for target profits. Upon execution, details can be reviewed in the Experts tab. Key input parameters include:

- ClosePercentage: Determines the portion of each sell position to close, ranging from 0 to 100.
- Slippage: Sets the maximum permissible slippage in points.
- CommentText: Optionally close positions based on specific comments.

Key features of the script include handling multiple sell positions, preserving original stop loss and take profit levels, validating minimum volume requirements, and error management with feedback. For installation, transfer the code to MetaEditor and compile. The script will then be accessible under "Scripts" in the Navigator panel. To execute, drag it onto any chart. Caution: it closes a speci...

πŸ‘‰ Read | AppStore | @mql5dev

#MQL5 #MT5 #Script
❀37πŸ‘9πŸ‘¨β€πŸ’»3⚑2πŸ†2
The script is designed to handle transaction history export efficiently. It compiles data on all transactions for the past year for the current instrument. Key functionalities include support for both cryptocurrencies and traditional currencies with automatic commission calculations based on the instrument type. Numbers are formatted for readability, with totals for commissions, profit/loss, and trade counts appended at the file's end.

Usage instructions are straightforward: ensure trade history is loaded in your terminal, place the script on the desired instrument's chart, and execute it. This will generate a CSV file stored in the MQL5/Files directory, aptly named with trades_symbol_date_time.

The benefits are notable: ease of use, flexibility across various instruments, and transparency, with all data consolidated in one file. Remember to check t...

πŸ‘‰ Read | AlgoBook | @mql5dev

#MQL5 #MT5 #script
❀37πŸ‘7⚑4✍3πŸ‘¨β€πŸ’»3
A newly available script provides a streamlined method to compress OHLC data. This enhances data handling efficiency and allows for optimized storage and retrieval processes. The script is designed to convert conventional time-based data into a more concise format, which could be beneficial for high-frequency data analysis and trading strategies. Handling and analyzing financial data requires precision, and this tool meets these criteria by simplifying data complexity. This advancement in script functionality represents a significant step in improving the workflow for developers and traders dealing with extensive datasets. It's a noteworthy development for those looking to enhance their data processing capabilities.

πŸ‘‰ Read | Forum | @mql5dev

#MQL5 #MT5 #script
❀30πŸ‘4πŸ‘2πŸ‘¨β€πŸ’»2
To implement rectangle creation on a chart, utilize objects within the charting library. Begin by defining the coordinates for the rectangle's position. Specify parameters for the rectangle’s dimensions such as height and width. Ensure the code correctly references the chart's axes to maintain alignment. This setup facilitates the visual representation of data zones or highlights specific chart areas. Adjust properties to modify appearance, such as border color and opacity. Examine the execution environment to ensure compatibility with the charting platform's API. Verify the display across different resolutions to maintain consistency in the presentation.

πŸ‘‰ Read | Signals | @mql5dev

#MQL4 #MT4 #script
❀37⚑6πŸ‘5πŸ‘¨β€πŸ’»2😱1
A script has been developed to manage chart objects efficiently in MT5. This tool scans the current chart and identifies all chart objects present. It systematically counts each object and deletes them as required. During this process, the names of the objects are logged to maintain a record of what was present before deletion. Such functionality is essential for managing chart clutter and ensuring a clean workspace. Implementing this script allows for automation in maintaining chart hygiene, enhancing user focus and resource management without manual intervention or oversight. This process boosts efficiency in handling multiple chart objects effectively.

πŸ‘‰ Read | CodeBase | @mql5dev

#MQL5 #MT5 #script
❀24πŸ‘10πŸ‘€3πŸ‘¨β€πŸ’»2πŸ‘1πŸŽ‰1
A new script is available to streamline the setup process when creating charts. Time spent on adjusting color themes is minimized by offering three pre-configured options: Green/Red, Aqua/Pink, and Black/White. These themes can be customized according to your preferences by modifying the color variables, which are clearly annotated in the script. The variables start with 'clr' followed by the color name. To apply your selected theme, create a new chart and drag the script onto it, then simply choose your desired theme and confirm. This script enhances efficiency by automating a repetitive task, allowing for more focus on analysis and strategy development.

πŸ‘‰ Read | Calendar | @mql5dev

#MQL5 #MT5 #script
❀41πŸ‘8πŸ‘¨β€πŸ’»7
Efficient trade management is crucial for optimizing returns and minimizing risk. This script is designed for traders who prefer uncluttered charts, enabling precise lot size calculation for Forex or CFD trading. Choose between two options: RiskByPercent for managing risk by a percentage of equity, or RiskByAmount for a fixed monetary risk. Input your stop loss in pips, especially relevant for 4-digit brokers. The script intelligently adapts for 5-digit brokers and respects broker-imposed lot size restrictions. Upon calculation, it provides an alert detailing the lot size, risk amount, adjusted stop loss, and instrument tick value. This versatile script can be customized or incorporated into an existing Expert Advisor to align with specific trading strategies.

πŸ‘‰ Read | NeuroBook | @mql5dev

#MQL5 #MT5 #script
❀39πŸ‘5πŸ‘Œ3πŸ‘¨β€πŸ’»2πŸ‘1