1. Start in the bot
Press Start at @TrendOrFlatBot. Plus trial for 14 days, no card required.
Here you connect TrendOrFlat to your trading software in about 15 minutes. No coding: download a file, paste it, enter an access code. After that your robots stop themselves in bad periods and switch on in good ones. Pick your platform below.
Connect the TSLab cube to the TrendOrFlat market regime feed. 14-day trial — no card.
Press Start at @TrendOrFlatBot. Plus trial for 14 days, no card required.
The bot sends RegimeGate.dll, your API token, and a link to this guide.
Place the DLL into the TSLab handlers folder and restart TSLab.
Trend agent: AllowedRegimes=TREND_LONG (or TREND_SHORT / both). Flat agent: FLAT. SignalSource=url (TSLab parameter) — paste your Regime API URL and token.
The regime on the cube should match the current regime on the site home — setup complete.
DLL blocked by Windows → Unblock in file properties. HTTP 403 → /status in the bot (subscription or token). Regime OFF is normal: that is the ensemble decision.
Expert Advisor TrendOrFlat Gate reads the Regime API, sets TOF_TRADE_ALLOWED_* globals, and can close positions when the regime is not allowed.
Live demo verification is a human step. Snippet for other EAs: GlobalVariableGet("TOF_TRADE_ALLOWED_BTCUSDT") > 0.5
Recipe for a TradingView strategy with a 3Commas bot as executor: entries from TV, trade permission from our filter.
MetaTrader path — see the MT5 section above.
Plus/Max can push regime changes to any TradingView-compatible webhook URL. We send STOP of the old regime, then START of the new one — only when the regime actually changes.
Limits: Plus = 1 webhook, Max = 5. HMAC header X-TrendOrFlat-Signature is always sent.