Botkrit FlipLock Stop Reverse ATR
- Experts
- Versione: 1.72
- Attivazioni: 10
Botkrit FlipLock is an automated Expert Advisor for MetaTrader 5 that trades with a stop-and-reverse logic. All distances are calculated from the symbol ATR, so the same settings adapt to forex pairs, metals, indices and crypto CFDs.
IMPORTANT RISK NOTICE
This EA uses a grid / recovery technique and does not place a fixed stop loss on individual trades. Losing trades can stay open and the number of open trades can grow (up to 40 by default) while the system works to recover them. A basket can therefore show a large floating loss. The hard protection is the account-level drawdown cut-off (default 50% of peak balance), which closes all trades. Past or simulated results do not guarantee future results. Test on a demo account first and only risk money you can afford to lose.
How it works
- The EA opens a first trade (BUY or SELL, selectable).
- When the trade is in profit by the Activate distance, a pending stop order is placed on the opposite side and trails the price at the Trail distance. The order only moves in the direction that locks more profit.
- If price retraces and hits the pending order, the opposite trade opens and the old, profitable trade is closed. Profit is locked and the cycle repeats.
- If the trade moves against you, a reverse pending stop is placed further away. When it fills, the old trade is kept and the new side becomes the working side (hedging accounts). Further trades are added at ATR-based distances, and profits from the working side are used to close the worst losing trades one by one.
- When the total profit of all open trades reaches the basket target, everything is closed and a new cycle starts.
- A market-state reader (sideways / trend / breakout / exhaustion, measured on M5 by default) adjusts the reverse distance, add distance and recovery actions to the current market.
- After many open trades the distances grow gradually (Grid growth) so the grid does not run out of room.
Features
- ATR-based distances: works on any symbol without manual point conversion; optional fixed-points mode
- Profit-lock trailing pending stop with automatic side switching
- Switch-side recovery grid with pair-fix (closes the worst trade using winning trades)
- Market-state reader with 9 states, used to adapt the recovery logic
- Equity drawdown cut-off (percent of peak balance)
- Margin-level safety check before every new order
- Hedging accounts (full logic) and netting accounts (stop-and-reverse mode)
- Lot, volume step, stops level, freeze level, filling mode and order-limit checks before every request
- On-chart dashboard with hide/show button, optional pastel chart theme, profit/spread tag beside the last bar
- No DLL, no web requests
Main inputs
- Start: first direction (BUY), automatic start (true), lot size (0.01)
- Distance mode: ATR multiples or fixed points; ATR timeframe M5, period 14
- Activate ATR 0.4 - profit before the trailing pending starts
- Trail ATR 0.25 - distance of the trailing pending from price
- Step ATR 0.02 - minimum move step of the pending order
- Lock min ATR 0.06 - minimum profit locked relative to the open price
- Reverse ATR 3.0 - reverse pending distance
- Add ATR 3.0 - distance for adding a trade on the working side
- Basket TP ATR 0.12 - basket close target
- Max orders 40; Grid soft 20 / Grid grow 1.15
- Pair fix (true) - close the worst opposite trade using working-side profit
- Cut DD 50 - close everything at this drawdown % from peak balance (0 = off)
- Min margin level 300 - no new trade if margin level would fall below this % (0 = off)
- Max spread (points, 0 = off)
- State trading options: against ATR 1.5, counter, hedge, exhaust
- Display: panel, price tag, logo, pastel chart
- Magic number and order comment
Recommended setup
- Symbols: EURUSD, GBPUSD, USDJPY, XAUUSD (any liquid symbol with a low spread)
- Chart: M5 or M15 (ATR and market state are read from M5 internally)
- Account: hedging, ECN / raw spread, leverage 1:100 or higher
- Minimum deposit: USD 1000 for the default 0.01 lot. Smaller deposits mean a much higher relative risk and are not recommended with the default lot.
- Run 24/5 on a VPS; do not run several FlipLock instances on the same symbol with the same magic number
- Do not change inputs while trades are open
