How the strategy works
From a signal to a closed trade. Filters, the entry, the averaging cascade, exits and alerts.
Meanward Revert Strategy takes the indicator's signals and turns them into trades in the TradingView strategy tester: it filters them, opens a position against the stretch, adds to it by a cascade you set, and exits by target, channel line, opposite signal, stop or time. Every rule is an input. The same rules go out as webhook alerts, so a bot can execute what the tester shows.
A trade, step by step
- Signal. The strategy carries its own copy of the indicator's signal layer: the same channel, zones, FADE, CONSENSUS and components. Which signals may open a trade is set in 📡 Entry and averaging signals. Default: CONSENSUS only.
- Filters. Before anything opens, a chain of gates has to agree. On by default: the higher-timeframe Supertrend direction filter (4h), the channel width filter, the price distance between orders, and the bot start date. Off by default: volatility, rate of change, position time gate, trading hours, line-side gate.
- Entry. A market order on the open of the bar after the signal. Size: Volume (USDT), 500 by default, at leverage 10 and cross margin.
- Averaging cascade. If price keeps going against the position, the strategy adds on new signals. Each add level has its own signal and zone, and each add is the previous order times the level's multiplier: 4×, then 3×. With the defaults a trade goes 500 → 2,000 → 6,000 USDT, at most two adds, and never adds above the entry (long) or below it (short).
- Exit. By default, the TP: 0.5% from the average entry price, tightened to 0.2% after the first add. No stop loss by default. Optional exits: a stop loss, a time stop, a stop behind the higher-timeframe Supertrend line, a close at a channel line, a close on an opposite signal in plus.
- Alerts. Every open, add, TP update and close goes out as a JSON alert in the format the connector reads.
The long bot and the short bot are independent. They can hold a long and a short on the same symbol at the same time, which is why the connector uses hedge mode on the exchange.
How orders fill in the tester
- The signal is decided on the close of a bar. The order fills on the open of the next bar. Live, the alert goes out at that same close, so tester and exchange fill at roughly the same moment.
- Tester defaults set by the script: initial capital 10,000 USDT, commission 0.04% per order, slippage 1 tick, margin 10% for long and short (that's 10x), up to 11 entries per position (one entry plus up to ten adds).
- Change capital and commission in the Properties tab to match your account. Keep margin at 10% unless you trade a different leverage; at 100% the tester quietly refuses orders the exchange would accept.
The details of reading the tester are on Dashboard and tester.
What makes this strategy risky
Read this part twice. It's mean reversion with averaging, and that has a particular shape:
- Many small wins, a few deep drawdowns. With the stop loss off, a trade that doesn't come back sits open until it does. The win rate looks high because losing trades often haven't closed yet.
- The cascade multiplies exposure. 500 USDT of first order becomes 8,500 USDT of position after two adds with the defaults. Size the account for the full cascade on every symbol you run.
- A backtest isn't a forecast. The tester runs on past data with its own assumptions. How I test is on Backtest methodology.
Sections
- Risk presets: three sets of values for the risk inputs of both bots, to type in by hand.
- Inputs reference: every group, every input, in the order of the settings dialog.
- Dashboard and tester: the backtest dashboard, row by row, and two tester quirks that look like bugs.
- Backtest methodology: data, window, fees, leverage and how drawdown is measured.
Credits
The channel core is based on the open-source Mean Reversion Channel (fareid's MRI Variant) by fareidzulkifli (MPL 2.0), smoothed with John Ehlers' SuperSmoother. Everything built on top of it is Meanward's own code.