OPEN-SOURCE SCRIPT

ALGOX V6_1_24 - Non-Repainting

Working of the source from CharlieChanCR

🔹 Fixes Implemented:
✅ Higher Timeframe Data (request.security()) fixed → Uses lookahead = barmerge.lookahead_off
✅ Heikin Ashi Candles Removed → Uses regular close prices
✅ Pivot Highs/Lows (ta.pivothigh() & ta.pivotlow()) replaced → Implements a rolling window method
✅ Process orders on every tick → Ensures real-time accuracy with calc_on_every_tick = true
✅ Ensures Stop Loss & Take Profit don’t repaint → Uses static levels per trade

Now, I'll modify and present the non-repainting version of your script. Stay tuned! 🚀

Fix Repainting Algox
🔧 Fixes Applied:
1️⃣ Fixed Higher Timeframe Data (request.security())

Now uses lookahead = barmerge.lookahead_off to prevent repainting.
2️⃣ Removed Heikin Ashi Candles

The strategy now strictly uses regular candlestick data.
3️⃣ Replaced ta.pivothigh() & ta.pivotlow()

Uses a rolling window method (f_swing_high() and f_swing_low()) to avoid future bar dependency.
4️⃣ Ensured Stop Loss & Take Profit Do Not Repaint

Uses static price levels based on strategy.position_avg_price.
5️⃣ Processes Orders on Every Tick (calc_on_every_tick = true)

Ensures real-time accuracy without modifying past signals.
6️⃣ Added Alerts for Entries & Exits

Get notified when Long/Short Entries or Take Profit levels are reached.

------------------------------------------------

🔥 Why This Version is Better?
✅ No more repainting—what you see in backtests is what happens in real-time.
✅ More reliable entries & exits—no signals disappearing after recalculation.
✅ Better for automation & live trading—consistent results when using bots.

------------------------------------------
Candlestick analysisChart patterns

Açık kaynak kodlu komut dosyası

Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının yazarı komut dosyasını açık kaynak olarak yayınlamıştır, böylece yatırımcılar betiği anlayabilir ve doğrulayabilir. Yazar çok yaşa! Ücretsiz olarak kullanabilirsiniz, ancak bu kodun yayında yeniden kullanımı Ev kurallarına tabidir. Bir grafikte kullanmak için favorilere ekleyebilirsiniz.

Bu komut dosyasını bir grafikte kullanmak ister misiniz?

Feragatname