Voir comment télécharger gratuitement des robots de trading
Retrouvez-nous sur Facebook !
Rejoignez notre page de fans
Un script intéressant ?
Poster un lien vers celui-ci -
laisser les autres l'évaluer
Vous avez aimé le script ? Essayez-le dans le terminal MetaTrader 5
Scripts

Creat Button Close BuySell On Chart - script pour MetaTrader 5

Vues:
1880
Note:
(1)
Publié:
MQL5 Freelance Besoin d'un robot ou d'un indicateur basé sur ce code ? Commandez-le sur Freelance Aller sur 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.