TerminalIntermediate

How to Convert a TradingView Indicator into an Auto-Trading Bot for Pocket Option and BinoDex

Step-by-step migration of an open-source Pine Script indicator from TradingView to the BinoView terminal using free Qwen 3.8-Max, using Reversion Probability Bands as an example: stripping copyright headers, first 352-line build, GBP/USD M1 signal parity check, second prompt for live-candle triggers (459 lines, 66.6% on AUD/CHF OTC) and auto-trading setup.

Nick 7 min read
Contents
The video is in Russian; English subtitles are available in the player. Watch on YouTube

The TradingView community catalog hosts thousands of open-source Pine Script indicators, yet the platform cannot launch an automated trading bot for Pocket Option or BinoDex directly: you still watch signals in one browser tab and place trades manually in another. Converting that script into BinoView Supercharts brings the entire logic inside one terminal for both manual confirmation and auto-trading. Following up on how to create an AI signal bot from scratch, this walkthrough covers migrating a third-party TradingView indicator line-by-line with zero hand coding.

What has changed since the recording. The video was published on 12 November 2026, and the script editor and Qwen workflow remain current. The converted bot is available in the BinoView script search across binoview.io (Pocket Option) and bdex.binoview.io (BinoDex) under the name Reversion Probability Bands. Both prompts from the video are posted in the author's Telegram channel. The video is in Russian.

Seven steps from Pine Script to BinoView

The migration relies on two structured prompts and one historical parity check:

StepWhereWhat happens
1TradingView → CommunityPick an open-source indicator and open it on the chart
2Qwen 3.8-MaxEnable Thinking mode and send the terminal docs link
3TradingView → Pine EditorCopy the source code and strip the top copyright lines
4Qwen → BinoView EditorCompile the first build and verify historical markers against TradingView
5Qwen 3.8-MaxSend prompt two for live-candle signals and HUD stats cards
6BinoView → Live ChartCheck win-rate stats and verify a live tick signal fires
7BinoView → Settings & AutoExpose extra settings if needed and test on demo

Step 1. Pick an open-source indicator on TradingView

Inside Community → Indicators & Strategies, the author selects the first signal indicator that catches his eye — Reversion Probability Bands by QuantAlgo (shown with 364 boosts on its preview page). It plots three pairs of volatility bands around a moving average and prints a table of historical mean-reversion odds.

Clicking "Add to chart" loads the indicator onto GBP/USD, displaying every arrow marker on screen so the converted BinoView version can be audited candle for candle. For why consolidating charting and execution into one workspace helps, see the BinoView vs TradingView comparison.

Step 2. Prepare free Qwen 3.8-Max and load the docs

To convert the code without paid subscriptions, the author uses Qwen 3.8-Max ($0 in browser or desktop app, with llms.txt link reading). Although Qwen 4 Max Preview appears in the model picker, he sticks with 3.8-Max because it avoids long stalls on multi-hundred-line files.

With Thinking enabled, prompt one supplies the BinoView llms.txt link and instructs the model to port the Pine Script v6 indicator cleanly with all bands and signals intact. Within roughly a minute, Qwen confirms it has loaded the documentation and is ready for the source file.

Bot Builder and other tools — in BinoView Supercharts

Open BinoView

Step 3. Copy Pine Script and strip the header

From the indicator row on TradingView, click the Source Code icon to inspect the 355-line Pine Script, copy everything (Ctrl + A, Ctrl + C), and paste it into a local file (script_tv.js).

Before uploading that file to Qwen, the author deletes the top copyright header lines so the AI does not carry licensing boilerplate or clutter into the finished BinoView module.

Uploading the cleaned file kicks off the first conversion, which completes in about five minutes.

Step 4. First compile and GBP/USD M1 parity check

Pasting the generated code into Scripts → Create Script in BinoView compiles a 352-line module with 85 signals, while the Problems tab flags one warning: signals appear on historical candles, not on the live forming candle.

Rather than fixing live triggers immediately, the author opens GBP/USD M1 in BinoView and checks candle alignment side by side with TradingView. Seven consecutive up/down signals and the band probability table match the original chart accurately.

Step 5. Second prompt: live candle and dual HUD

Next, prompt two instructs Qwen in the same conversation to make three upgrades:

  1. Trigger signals on the forming candle in real time, keeping historical signals intact.
  2. Add a second HUD card (Bot Statistics) showing win rate and recovery stats without deleting the existing band table.
  3. Add adaptive expiration and recovery logic derived from historical signal outcomes.

Qwen responds in about 90 seconds with a 459-line script. Replacing the code via Active Scripts → Edit Code yields a clean compile with zero issues. On GBP/USD M1, the new HUD displays a 59.0% win rate across 74 signals and 2 active signals.

Switching to AUD/CHF OTC (92% payout) updates the card to 66.6% win rate across 95 signals (66.5% in the live alert banner), and a live BUY signal triggers right on the active forming candle during recording.

Step 6. Exposed settings and next verification

Once saved, the bot is available immediately inside the Auto module. Fast 5-second (S5) charts introduce too much noise on channel-reversion scripts, so M1 serves as the cleaner test bed before enabling automated execution.

Inside Settings, the converted script exposes 13 strategy inputs (Source: close, Mean Type: SMA, Length: 50, Band Width Basis: StdDev, inner/middle/outer multipliers 1 / 2 / 3, Reversion Horizon: 20, Mean Touch: Wick, Max Events: 300, Min Sample Size: 10), 4 visual options and 9 HUD controls. If you want extra knobs such as recovery levels exposed in UI, a short follow-up prompt in the same chat adds them.

The immediate question after converting any public indicator is whether its logic holds up under real money — covered in full in testing a random TradingView script in live auto-trading.

New to custom scripts? Start with how to create an AI signal bot from scratch. Before enabling auto-trading with recoveries, check your payout threshold in the breakeven calculator and read the two live sessions run with this exact bot in Testing a Random TradingView Script in Live Auto-Trading.

Frequently asked questions

Which TradingView indicators can be converted to BinoView?

Any open-source community script on TradingView whose Pine Editor displays the source code can be converted. Invite-only or closed-source indicators with a lock icon hide their formulas and cannot be copied.

Why did the video use Qwen 3.8-Max instead of a newer preview model?

Free Qwen 3.8-Max with Thinking mode enabled reads the terminal documentation link reliably and outputs complete scripts within a couple of minutes. Preview models (such as Qwen 4 Max Preview) took longer or stalled on large scripts.

Why did the first build fail to fire on the current forming candle?

On a straight Pine Script translation, the logic evaluated only closed candles — historical markers matched TradingView, yet live entries arrived too late for auto-trading. A second prompt explicitly requesting live-candle evaluation fixes this.

Trading binary options carries a high risk of losing your capital. Converting a TradingView script speeds up prototyping, not profitability. Always validate every bot on a demo account over hundreds of trades and only risk money you can afford to lose.

Share

Telegram WhatsApp X
Nick

Author

Nick

Host of the BinoView YouTube channel, editor of the BinoView Academy blog.