PROTECTED SOURCE SCRIPT
Daily Breakout Strategy

https://www.tradingview.com/x/FkweqmSj/
🧠 Daily Breakout Strategy • No Repaint
This is a non-repainting backtestable strategy built on clean breakout logic using daily pivot-based levels. It executes one trade per day, following simple rules: wait for breakouts, aim for the target, and log whether it hits.
Designed for traders who want uncluttered, rule-based backtests using price action without lagging indicators or repaint tricks.
🔍 Strategy Logic:
The system calculates daily key levels based on previous day's high, low, and close:
Pivot (P) = (High + Low + Close) / 3
Buy Entry (r1) = P + 0.382 × (High - Low)
Buy TP (r2) = P + 0.618 × (High - Low)
Sell Entry (s1) = P – 0.382 × (High - Low)
Sell TP (s2) = P – 0.618 × (High - Low)
✅ Entry & Exit Rules (Non-Repainting):
🔹 A Buy trade is entered when price closes above r1, confirmed on the next bar.
🔹 A Sell trade is entered when price closes below s1, also confirmed.
🚫 Only 1 signal per day is allowed.
✅ Each trade targets its respective TP level (r2 or s2).
If TP is hit during the session, the trade closes as a win.
If TP is not hit by end of day, the system registers a loss.
⛔ No repainting — all entries are based on closed candles.
📊 Performance Table (Built-in):
A live table tracks and displays:
🟢 Buy/Sell Status (e.g., "Buy Active", "Sideways")
📌 Current Entry/TP Prices
📅 Today’s Breakout Levels
📈 Buy Win % and Sell Win %
📊 Total Accuracy over last N trades (default: 300)
This helps users understand edge, expectancy, and directional bias.
🧪 Backtesting Tips:
Works best on intraday timeframes like 5m, 15m, or 1H.
You may combine it with your own risk management, filters, or alerts.
Results are accurate for what this strategy simulates: 1 entry per day, no SL, TP-only logic.
⚙️ Strategy Settings:
🔧 Accuracy Lookback: Number of trades to track for % win stats.
🎯 Default Quantity: 100% equity by default — adjust to suit your model.
💡 No leverage, pyramiding, or position sizing built in — this is kept clean and logic-focused.
🔒 Access Info:
This strategy is FREE to use
🔐 Source code is locked to protect stability and performance
You can use this for backtesting, education, and signal modeling — no payment required.
💬 Feedback Welcome!
If you want this script extended with:
Stop Loss
Trailing Exit
Risk Management
Alert Conditions
...just leave a comment or message. This script is built to grow with the community!
📈 Add it to your chart, study the clean stats, and use it to model your own breakout logic with confidence.
🧠 Daily Breakout Strategy • No Repaint
This is a non-repainting backtestable strategy built on clean breakout logic using daily pivot-based levels. It executes one trade per day, following simple rules: wait for breakouts, aim for the target, and log whether it hits.
Designed for traders who want uncluttered, rule-based backtests using price action without lagging indicators or repaint tricks.
🔍 Strategy Logic:
The system calculates daily key levels based on previous day's high, low, and close:
Pivot (P) = (High + Low + Close) / 3
Buy Entry (r1) = P + 0.382 × (High - Low)
Buy TP (r2) = P + 0.618 × (High - Low)
Sell Entry (s1) = P – 0.382 × (High - Low)
Sell TP (s2) = P – 0.618 × (High - Low)
✅ Entry & Exit Rules (Non-Repainting):
🔹 A Buy trade is entered when price closes above r1, confirmed on the next bar.
🔹 A Sell trade is entered when price closes below s1, also confirmed.
🚫 Only 1 signal per day is allowed.
✅ Each trade targets its respective TP level (r2 or s2).
If TP is hit during the session, the trade closes as a win.
If TP is not hit by end of day, the system registers a loss.
⛔ No repainting — all entries are based on closed candles.
📊 Performance Table (Built-in):
A live table tracks and displays:
🟢 Buy/Sell Status (e.g., "Buy Active", "Sideways")
📌 Current Entry/TP Prices
📅 Today’s Breakout Levels
📈 Buy Win % and Sell Win %
📊 Total Accuracy over last N trades (default: 300)
This helps users understand edge, expectancy, and directional bias.
🧪 Backtesting Tips:
Works best on intraday timeframes like 5m, 15m, or 1H.
You may combine it with your own risk management, filters, or alerts.
Results are accurate for what this strategy simulates: 1 entry per day, no SL, TP-only logic.
⚙️ Strategy Settings:
🔧 Accuracy Lookback: Number of trades to track for % win stats.
🎯 Default Quantity: 100% equity by default — adjust to suit your model.
💡 No leverage, pyramiding, or position sizing built in — this is kept clean and logic-focused.
🔒 Access Info:
This strategy is FREE to use
🔐 Source code is locked to protect stability and performance
You can use this for backtesting, education, and signal modeling — no payment required.
💬 Feedback Welcome!
If you want this script extended with:
Stop Loss
Trailing Exit
Risk Management
Alert Conditions
...just leave a comment or message. This script is built to grow with the community!
📈 Add it to your chart, study the clean stats, and use it to model your own breakout logic with confidence.
보호된 스크립트입니다
이 스크립트는 비공개 소스로 게시됩니다. 하지만 제한 없이 자유롭게 사용할 수 있습니다 — 여기에서 자세히 알아보기.
h e
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
보호된 스크립트입니다
이 스크립트는 비공개 소스로 게시됩니다. 하지만 제한 없이 자유롭게 사용할 수 있습니다 — 여기에서 자세히 알아보기.
h e
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.