OPEN-SOURCE SCRIPT
TQQQ Vibha Strategy – Auto Ranges + Rally Days

1. Buy only after an intermediate bottom
A 20-day lowest low becomes the potential bottom.
2. Wait 3–4 days of higher highs & higher lows
higherSeq logic enforces that.
3. Avoid buying when too extended from the 200-day
Enforced with:
close <= ma200 * (1 + maxExtension) (default 10%)
4. Must close back above 200-day
Needed for “change of character”
5. Sell immediately if price breaks the Day-1 rally low (“line in the sand”)
Script sets lineInSand = bottom low
If price undercuts → close position immediately
6. Range-top rejection
Track touches of range top (highest high since bottom)
Three failures = sell (“3 strikes rule”)
A 20-day lowest low becomes the potential bottom.
2. Wait 3–4 days of higher highs & higher lows
higherSeq logic enforces that.
3. Avoid buying when too extended from the 200-day
Enforced with:
close <= ma200 * (1 + maxExtension) (default 10%)
4. Must close back above 200-day
Needed for “change of character”
5. Sell immediately if price breaks the Day-1 rally low (“line in the sand”)
Script sets lineInSand = bottom low
If price undercuts → close position immediately
6. Range-top rejection
Track touches of range top (highest high since bottom)
Three failures = sell (“3 strikes rule”)
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuyla, bu komut dosyasının mimarı, yatırımcıların işlevselliğini inceleyip doğrulayabilmesi için onu açık kaynaklı hale getirdi. Yazarı tebrik ederiz! Ücretsiz olarak kullanabilseniz de, kodu yeniden yayınlamanın Topluluk Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuyla, bu komut dosyasının mimarı, yatırımcıların işlevselliğini inceleyip doğrulayabilmesi için onu açık kaynaklı hale getirdi. Yazarı tebrik ederiz! Ücretsiz olarak kullanabilseniz de, kodu yeniden yayınlamanın Topluluk Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, alım satım veya diğer türden tavsiye veya öneriler anlamına gelmez ve teşkil etmez. Kullanım Koşulları bölümünde daha fazlasını okuyun.