PROTECTED SOURCE SCRIPT

Daily Breakout Strategy

81
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.

Отказ от ответственности

Все виды контента, которые вы можете увидеть на TradingView, не являются финансовыми, инвестиционными, торговыми или любыми другими рекомендациями. Мы не предоставляем советы по покупке и продаже активов. Подробнее — в Условиях использования TradingView.