PROTECTED SOURCE SCRIPT
Cybertrading-Insidebar hunter pro robot

The Cybertrading-Inside Pro strategy is an advanced version of Cyber-Inside.
It automates ATR-based inside-bar trading with optional pullback entries, full risk/reward visualization, time filtering, pending-order handling, and fixed chart watermark branding (“CollegePips / CyberTrading”).
⚙️ Technical Overview
1. Core Structure
Uses ATR(14) to measure volatility and classify candle ranges.
Candles are labeled as Spinning, Standard, Long, or Huge based on their range vs. ATR.
Only valid candles (Standard or Long) qualify to confirm a setup.
2. Inside-Bar Logic
The setup requires the current candle’s high/low to be fully contained inside the previous candle (an inside bar).
A wick-break must occur — the wick slightly breaks the previous inside bar’s range while the body remains inside.
This pattern forms a Pierce-Only signal.
Direction:
Wick down → potential Long entry
Wick up → potential Short entry
3. Timing and Entry Conditions
With the time filter enabled, trades trigger only between defined hours (e.g., 07–22).
If Enable Pullback is on, the entry is placed using a limit order offset by pullbackATR × ATR from the signal candle.
If the pullback entry isn’t triggered within pullbackMaxBars, the pending order is canceled automatically.
You can also enable display-only entries without execution (Enable Entry Without Pullback).
4. Risk & Target Management
Stop loss is placed beyond the second-previous candle’s high/low ± stopBuffer × ATR.
Take-profit is based on the chosen risk/reward multiple (RR) or the previous candle’s high/low.
Position size auto-adjusts to keep total risk equal to riskPercent of equity.
5. Visual Components
Dynamic chart objects include:
Red box: risk zone (entry → stop)
Green/blue box: reward zone (entry → target)
Dotted diagonal line: risk-to-reward path
Arrows: actual fill points
6. Order Management System
Each signal creates a unique order ID (pendingId) and exit ID (planExitId).
On a valid fill (newLong / newShort), real stop, target, and position size are applied.
If an order isn’t filled within the timeout window, it’s canceled and reset automatically.
7. Advantages
✅ Smart inside-bar pattern recognition
✅ Automated risk control and dynamic sizing
✅ Clear visual feedback for analysis
✅ Fully backtest-ready for research or education
It automates ATR-based inside-bar trading with optional pullback entries, full risk/reward visualization, time filtering, pending-order handling, and fixed chart watermark branding (“CollegePips / CyberTrading”).
⚙️ Technical Overview
1. Core Structure
Uses ATR(14) to measure volatility and classify candle ranges.
Candles are labeled as Spinning, Standard, Long, or Huge based on their range vs. ATR.
Only valid candles (Standard or Long) qualify to confirm a setup.
2. Inside-Bar Logic
The setup requires the current candle’s high/low to be fully contained inside the previous candle (an inside bar).
A wick-break must occur — the wick slightly breaks the previous inside bar’s range while the body remains inside.
This pattern forms a Pierce-Only signal.
Direction:
Wick down → potential Long entry
Wick up → potential Short entry
3. Timing and Entry Conditions
With the time filter enabled, trades trigger only between defined hours (e.g., 07–22).
If Enable Pullback is on, the entry is placed using a limit order offset by pullbackATR × ATR from the signal candle.
If the pullback entry isn’t triggered within pullbackMaxBars, the pending order is canceled automatically.
You can also enable display-only entries without execution (Enable Entry Without Pullback).
4. Risk & Target Management
Stop loss is placed beyond the second-previous candle’s high/low ± stopBuffer × ATR.
Take-profit is based on the chosen risk/reward multiple (RR) or the previous candle’s high/low.
Position size auto-adjusts to keep total risk equal to riskPercent of equity.
5. Visual Components
Dynamic chart objects include:
Red box: risk zone (entry → stop)
Green/blue box: reward zone (entry → target)
Dotted diagonal line: risk-to-reward path
Arrows: actual fill points
6. Order Management System
Each signal creates a unique order ID (pendingId) and exit ID (planExitId).
On a valid fill (newLong / newShort), real stop, target, and position size are applied.
If an order isn’t filled within the timeout window, it’s canceled and reset automatically.
7. Advantages
✅ Smart inside-bar pattern recognition
✅ Automated risk control and dynamic sizing
✅ Clear visual feedback for analysis
✅ Fully backtest-ready for research or education
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.