OPEN-SOURCE SCRIPT
Range Oscillator Strategy + Stoch Confirm / Long Only by (Mara)

Strategy Overview
This script is a long-only trend-following strategy that combines:
– Range-based trend filter (inspired by "Range Oscillator" by Zeiierman)
– Stochastic (7 / 3 / 3) for pullback & entry timing
– EMA Exit Filter for adaptive exits as default 70
Use it to backtest, tweak, and study how this combination behaves on different markets.
1. Trend Filter
Trade longs only when the trend filter value is above the user-defined Threshold.
If the filter ≤ Threshold → no new long entries.
Threshold is adjustable in the settings.
2. Pullback Logic – Stochastic (7 / 3 / 3)
While trend is bullish:
Wait for %K to pull back below a chosen level (e.g. 50 or 20),
then look for a bullish %K over %D crossover.
All parameters are configurable.
3. Entry Conditions (Long Only)
– Trend filter > Threshold
– Stoch pullback condition met
– Bullish %K > %D at bar close
No short entries.
4. Stop Loss & Take Profit
Configurable Stop Loss and optional Take Profit.
Use Inputs to compare fixed RR vs. indicator/exit-based management.
5. EMA Exit Filter (Optional)
Additional custom exit logic to react faster to weakening conditions.
Toggleable in Inputs.
6. How to Test
Try on BTC and major markets (1D / 4D / 1H) and review:
net profit, drawdown, win rate, and robustness over multiple years.
7. Disclaimer
This script is for testing, education, and strategy development only.
It is not financial advice and not a guarantee of profits.
Always manage your own risk.
This script is a long-only trend-following strategy that combines:
– Range-based trend filter (inspired by "Range Oscillator" by Zeiierman)
– Stochastic (7 / 3 / 3) for pullback & entry timing
– EMA Exit Filter for adaptive exits as default 70
Use it to backtest, tweak, and study how this combination behaves on different markets.
1. Trend Filter
Trade longs only when the trend filter value is above the user-defined Threshold.
If the filter ≤ Threshold → no new long entries.
Threshold is adjustable in the settings.
2. Pullback Logic – Stochastic (7 / 3 / 3)
While trend is bullish:
Wait for %K to pull back below a chosen level (e.g. 50 or 20),
then look for a bullish %K over %D crossover.
All parameters are configurable.
3. Entry Conditions (Long Only)
– Trend filter > Threshold
– Stoch pullback condition met
– Bullish %K > %D at bar close
No short entries.
4. Stop Loss & Take Profit
Configurable Stop Loss and optional Take Profit.
Use Inputs to compare fixed RR vs. indicator/exit-based management.
5. EMA Exit Filter (Optional)
Additional custom exit logic to react faster to weakening conditions.
Toggleable in Inputs.
6. How to Test
Try on BTC and major markets (1D / 4D / 1H) and review:
net profit, drawdown, win rate, and robustness over multiple years.
7. Disclaimer
This script is for testing, education, and strategy development only.
It is not financial advice and not a guarantee of profits.
Always manage your own risk.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.