Watch how to download trading robots for free
Find us on Telegram!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Scripts

buysell+sl+tp - script for MetaTrader 5

Views:
4140
Rating:
(6)
Published:
2024.09.05 16:50
buy+sl+tp.mq5 (2.68 KB) view
sell+sl+tp.mq5 (2.17 KB) view
CloseAll.mq5 (2.13 KB) view
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

script to open a buy andsell position at the current price in the MT5 window with a specified stop loss (in pips) and take profit (in pips) that are automatically set when the order is placed.

attach the script on chart


the script does not display any dialog windows when running the script, so the script can capture the current price that is being displayed.

on the initial script execution, the script uses the lot, take profit, and stop loss values ​​based on the values ​​specified in the script. They can then be modified through the global variable settings in the MT5 menu.

global variables setting on MT5


Max trade volume checker for your trading account Max trade volume checker for your trading account

A dialog to display the maximum lot size permitted on the underlying asset for different types of orders (buy, sell, pending buy, and pending sell).

Logging Class for both MQL4 and MQL5 Logging Class for both MQL4 and MQL5

The CDebugLogger class is a flexible and comprehensive logging utility designed for use in MQL4/5 environments. It allows developers to log messages at various levels of importance (INFO, WARNING, ERROR, DEBUG) with options to include timestamps, function signatures, file names, and line numbers in the log entries. The class supports logging to both the console and files, with the ability to save logs in a common folder and in CSV format. Additionally, it offers functionality to silence logs based on specific keywords, ensuring that sensitive information is not logged. This class is ideal for developers looking to implement robust logging mechanisms in their MQL4/5 applications, with customizable features that cater to a wide range of debugging and monitoring needs.

Max trade volume checker for your trading account (Script version) Max trade volume checker for your trading account (Script version)

A script which when run displays the maximum lot size permitted on the asset.

Fair Value Gap (FVG) Indicator Fair Value Gap (FVG) Indicator

The Fair Value Gap (FVG) Indicator identifies price gaps that occur when there is an imbalance between buying and selling pressure. It highlights areas where price is likely to return to fill the gap, providing potential trade entry points based on market inefficiencies.