OPEN-SOURCE SCRIPT
JFJRTL

AKJ Strategy — Trend & Pullback Indicator
This indicator is based on the AKJ Swing Trading Strategy and combines Bollinger Bands (10/1) with Williams %R (4) across two timeframes. It is designed as a visual screener — the final trading decision always requires your own analysis.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
BACKGROUND COLORS (Weekly Chart Status)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🟢 GREEN — Weekly Long active
The weekly chart has closed above the upper Bollinger Band at least 2 consecutive times. The background remains green until a counter-signal appears.
🔴 RED — Weekly Short active
The weekly chart has closed below the lower Bollinger Band at least 2 consecutive times.
🔵 BLUE — Warning (possible trend reversal)
The current week closes for the first time against the existing weekly direction (1x above BB during a Short, 1x below BB during a Long). The signal is still active — proceed with caution.
⬜ NEUTRAL — No weekly setup present.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CHART SIGNALS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▲ LONG Pullback (green arrow)
Appears when: Weekly Long active + Daily closed 2x above BB + Williams %R ≤ -80% + current candle is a down candle (Close < Open). The arrow appears on every qualifying candle as long as the setup remains active — the entry stop is trailed accordingly.
▼ SHORT Pullback (red arrow)
Appears when: Weekly Short active + Daily closed 2x below BB + Williams %R ≥ -20% + current candle is an up candle (Close > Open). Same principle for trailing the entry.
✕ Signal broken (orange cross)
Appears once when the daily chart closes 2 consecutive times against the weekly direction. The daily setup is then invalid. It reactivates automatically once the daily closes 2x again in the direction of the weekly trend.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
INFO BOX (top right)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Weekly — Current weekly chart status (LONG ✓ / SHORT ✓ / NEUTRAL)
Daily Signal — Whether the daily setup is active (LONG active / SHORT active / no setup)
Williams %R — Current %R value, color-coded when inside the trigger zone
Pullback — Whether a pullback signal is present on the current candle
Setup ▲▼ — Summary row: lights up green/red when all conditions for a trade are met and an entry would be valid. Designed for fast screening.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SCREENER USAGE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This indicator is designed as a first filter when screening stocks. The Setup row in the info box shows at a glance whether a potential trade is present. A full analysis — including the higher timeframe monthly trend, upcoming earnings, and overall market conditions — is always required before entering any trade.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SETTINGS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
BB Length: 10 (default)
BB Standard Deviation: 1.0 (default)
Williams %R Length: 4 (default)
Oversold Level: -80 (Long trigger)
Overbought Level: -20 (Short trigger)
All parameters are adjustable.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
DISCLAIMER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This indicator is for educational purposes only. It does not constitute financial or investment advice. Trading involves substantial risk of loss. Past signals are no guarantee of future results. Always trade at your own risk.
This indicator is based on the AKJ Swing Trading Strategy and combines Bollinger Bands (10/1) with Williams %R (4) across two timeframes. It is designed as a visual screener — the final trading decision always requires your own analysis.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
BACKGROUND COLORS (Weekly Chart Status)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🟢 GREEN — Weekly Long active
The weekly chart has closed above the upper Bollinger Band at least 2 consecutive times. The background remains green until a counter-signal appears.
🔴 RED — Weekly Short active
The weekly chart has closed below the lower Bollinger Band at least 2 consecutive times.
🔵 BLUE — Warning (possible trend reversal)
The current week closes for the first time against the existing weekly direction (1x above BB during a Short, 1x below BB during a Long). The signal is still active — proceed with caution.
⬜ NEUTRAL — No weekly setup present.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CHART SIGNALS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▲ LONG Pullback (green arrow)
Appears when: Weekly Long active + Daily closed 2x above BB + Williams %R ≤ -80% + current candle is a down candle (Close < Open). The arrow appears on every qualifying candle as long as the setup remains active — the entry stop is trailed accordingly.
▼ SHORT Pullback (red arrow)
Appears when: Weekly Short active + Daily closed 2x below BB + Williams %R ≥ -20% + current candle is an up candle (Close > Open). Same principle for trailing the entry.
✕ Signal broken (orange cross)
Appears once when the daily chart closes 2 consecutive times against the weekly direction. The daily setup is then invalid. It reactivates automatically once the daily closes 2x again in the direction of the weekly trend.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
INFO BOX (top right)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Weekly — Current weekly chart status (LONG ✓ / SHORT ✓ / NEUTRAL)
Daily Signal — Whether the daily setup is active (LONG active / SHORT active / no setup)
Williams %R — Current %R value, color-coded when inside the trigger zone
Pullback — Whether a pullback signal is present on the current candle
Setup ▲▼ — Summary row: lights up green/red when all conditions for a trade are met and an entry would be valid. Designed for fast screening.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SCREENER USAGE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This indicator is designed as a first filter when screening stocks. The Setup row in the info box shows at a glance whether a potential trade is present. A full analysis — including the higher timeframe monthly trend, upcoming earnings, and overall market conditions — is always required before entering any trade.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
SETTINGS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
BB Length: 10 (default)
BB Standard Deviation: 1.0 (default)
Williams %R Length: 4 (default)
Oversold Level: -80 (Long trigger)
Overbought Level: -20 (Short trigger)
All parameters are adjustable.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
DISCLAIMER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This indicator is for educational purposes only. It does not constitute financial or investment advice. Trading involves substantial risk of loss. Past signals are no guarantee of future results. Always trade at your own risk.
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。