I trade by hand on the chart
You watch TradingView and enter on the exchange yourself. You get: a Telegram traffic-light on regime change, colored history on the chart, and a CSV simulator for your fills.
Trade with TradingView? Our filter already works with you — three ways. Pick your path below: by hand, via an execution bot, or via MetaTrader. To check a strategy on history — use the library on this page.
You watch TradingView and enter on the exchange yourself. You get: a Telegram traffic-light on regime change, colored history on the chart, and a CSV simulator for your fills.
TradingView alerts are executed by a bot. Second key: your strategy generates entries; our webhook grants permission — the bot is off in the wrong regime, so alerts go nowhere.
Alerts execute in MetaTrader (bridges like PineConnector). The TrendOrFlat Gate expert blocks and closes trades in the wrong regime.
TrendOrFlatFilter library for backtests: embedded public regime history (~90 days, 3h delay). For backtests that is full data. For live trading — the gate sits on the executor (scenarios above).
trendorflat_filter.pine SMA demo
Ready-made indicator with the same embedded history — just a regime background. Not live data: refresh by copying the script again.
Live regime cannot be shown inside the TradingView chart: their scripts are barred from the internet — for everyone, not only us. So the live switch sits where a strategy becomes trades: on the execution bot or in MT5. For backtests there is no such limit — history is embedded in the library above.
TradingView scripts cannot call the internet, so we embed ~90 days of public history (about a 3-hour delay) into the code. To refresh — copy the script from this page again. This is not entry/exit tips — it is a permission filter: when trend or flat trading is allowed.