Join our fan page
- Views:
- 1680
- Rating:
- Published:
-
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!

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

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.

This indicator detects a specific bearish spike formation over 3 candles

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