Watch how to download trading robots for free
Find us on Facebook!
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

Creat Button Close BuySell On Chart - script for MetaTrader 5

Views:
1680
Rating:
(1)
Published:
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

Features

  • GUI Buttons: "Close Buys" and "Close Sells" with customizable colors, positions, and text.

  • Dynamic Visibility: Hides buttons when no positions exist (optional).

  • Position Closure: Closes all buy/sell positions on button click; shows net profit (profit + swap + commission).

  • Event Handling: Uses 100ms timer for updates and chart events for clicks.

  • Profit Calculation: Computes net profit, including commission from trade history.

Use Case

Simplifies closing positions for traders on a specific symbol.

Feedback

If you have suggestions or encounter issues, please leave a comment on the MQL5 CodeBase page or contact me through the MQL5 community. Your feedback is valuable for improving this tool!

Happy trading!


LotSize Calculation LotSize Calculation

This is a simple script file to compute lot size either using risk percentage approach or the actual amount to risk.

SuperTrend_Enhanced SuperTrend_Enhanced

The SuperTrend Indicator is a dynamic trend-following tool based on ATR. It plots a colored line above or below price to indicate bullish or bearish conditions. When the price crosses the line, a signal arrow appears. Fully customizable with ATR period, multiplier, arrows, labels, and colors. Suitable for all instruments and timeframes. Ideal for scalping, swing, and intraday trading. Combine it with other indicators for stronger setups.

Crash Spike Trade Pattern Crash Spike Trade Pattern

This indicator detects a specific bearish spike formation over 3 candles

CBitBuffer Class - Data Serialization in MQL5 CBitBuffer Class - Data Serialization in MQL5

A class for reading and writing individual bits or bit sequences to and from a buffer.