Never give up Version: 1.0

×

Expert Advisor: "Never Give Up" - Comprehensive Guide

🚀 "Persistence Pays Off – Trade Smart, Recover Stronger!" 🚀

🔹 Overview

The "Never Give Up" Expert Advisor (EA) is a grid/martingale trading system designed to recover from losing trades by averaging down positions. It is optimized for forex pairs and works best in ranging markets.


🔹 Key Features

✅ Grid Trading – Opens multiple orders at predefined price intervals.

✅ Martingale System – Increases lot sizes for recovery trades.

✅ Auto Profit-Taking – Closes all trades when total profit reaches a set target.

✅ Expiration Control – Automatically closes old trades after a set period.

✅ Risk Management – Includes equity-based stop loss and lot size control.


🔹 How It Works

1. Entry Logic

Buy Orders: Opens when price moves below previous buy by bdiff pips.


Sell Orders: Opens when price moves above previous sell by sdiff pips.


2. Lot Sizing

Base lot size (Lot) can be fixed or scaled based on account balance (LotFor1000).


Uses martingale multiplier (multiplier) to increase lot sizes for recovery trades.


Limits maximum open orders (maxopenorders) and maximum lot size (maxlevel).


3. Exit Logic

Profit Target: Closes all trades when total profit reaches dollar value.


Expiration: Closes trades older than expirationDays.


🔹 Input Parameters & Settings

📌 Trade Settings

Magic: Unique EA identifier (1001 by default).


Lot: Base lot size (0.01).


LotFor1000: Auto lot sizing per $1000 balance (0 = disabled).


bdiff/sdiff: Distance between grid orders (30 pips).


maxopenorders: Maximum open trades (1000).


maxlevel: Maximum lot multiplier level (1000).


📌 Profit & Loss Management

dollar: Total profit target to close all trades ($10).


lossdollar: (Currently commented out) Potential stop-loss in dollars.


CloseOnExpiration: Closes old trades after expirationDays (7 days).


📌 Martingale Settings

multiplier: Lot size multiplier for recovery trades (2.0).


openbuy/opensell: Enable/disable buy or sell trades (true).


🔹 Execution Logic

Checks account margin before opening trades.


Opens buy/sell orders at predefined intervals (bdiff/sdiff).


Increases lot sizes for recovery trades using martingale.


Closes all trades when total profit reaches dollar target.


Removes expired trades if CloseOnExpiration is enabled.


🔹 Risk Considerations

⚠️ High-Risk Strategy: Martingale/grid systems can lead to large drawdowns in trending markets.

⚠️ Requires Monitoring: Not fully automated; best used with manual oversight.

⚠️ Recommended for Demo Testing First.


🔹 Developer & Source

Developer: R.KH 1001

Website: https://www.robomql.com


🎯 Final Words

The "Never Give Up" EA is designed for traders who want an aggressive recovery system. It works best in sideways markets but carries significant risk in strong trends.


💡 Pro Tip: Use with tight stop-loss or manual intervention in volatile conditions!


Leave a comment

$15