Trendline Breakout Daily Stats

Trendline Breakout Daily Stats draws descending trendlines automatically, marks the first candle that closes above a line, simulates a trade for each breakout, and shows the results in a statistics panel. It was built for the daily timeframe.
Rules (all thresholds are inputs):
- Pivot high: the highest high with 5 candles on each side.
- Trendline: drawn through two consecutive pivot highs where the second is lower than the first; no high between them may exceed the line by more than 0.1%.
- Breakout: the first close above the line, at least 5 candles after the second pivot and within 100 candles of it.
Trade simulation:
- Entry at the next candle open, stop loss at the lowest low since the second pivot, exit at the close of the 20th candle (input) or at the stop. Stop is checked first within a candle.
- Fees of 0.1% per side are deducted in R.
- The panel shows trades, win rate, total R after fees, profit factor and average R per trade for the selected date range.
Notes: a line becomes available only after its second pivot is confirmed (5 candles later), and breakouts are evaluated on closed candles, so signals do not repaint. Historical statistics only; not a trading recommendation.
Rules (all thresholds are inputs):
- Pivot high: the highest high with 5 candles on each side.
- Trendline: drawn through two consecutive pivot highs where the second is lower than the first; no high between them may exceed the line by more than 0.1%.
- Breakout: the first close above the line, at least 5 candles after the second pivot and within 100 candles of it.
Trade simulation:
- Entry at the next candle open, stop loss at the lowest low since the second pivot, exit at the close of the 20th candle (input) or at the stop. Stop is checked first within a candle.
- Fees of 0.1% per side are deducted in R.
- The panel shows trades, win rate, total R after fees, profit factor and average R per trade for the selected date range.
Notes: a line becomes available only after its second pivot is confirmed (5 candles later), and breakouts are evaluated on closed candles, so signals do not repaint. Historical statistics only; not a trading recommendation.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.