OPEN-SOURCE SCRIPT

IShakfa Long-Only Confluence

445
OVERVIEW
IShakfa Long-Only Confluence is a buy-only signal tool that waits for several
independent technical conditions to align before marking a long entry, and then
attaches a fixed take-profit and stop-loss plan to that entry. It is built around
a single idea: the highest-conviction long entries tend to occur when you buy a
short-term pullback (a dip) inside a market that is already trending up, while
momentum and trend strength are confirming the move. Rather than acting on any one
signal, this indicator only fires when trend, market structure, momentum, and a
dip-reversal trigger agree at the same time.
It is intentionally selective. Long stretches with no signal are normal and expected
— the tool is designed to skip choppy, rangebound, and downtrending conditions
entirely.
WHAT IT DOES

Marks BUY entries only when a stack of confirming conditions is satisfied together.
Draws an Entry line, a Take-Profit line, and a Stop-Loss line for each trade.
Manages one position at a time: after a BUY, no new BUY appears until the open
trade reaches its target or stop.
Prints a "TP" or "SL" marker when a level is touched.
Shows a live status table so you can always see which conditions are met and which
are holding a signal back.
Provides alerts for the entry and for both exits.

HOW A BUY IS GENERATED
A BUY prints only when ALL of the following are true on the same bar:

TREND — Price is above the slow EMA, the fast EMA is above the slow EMA, and the
slow EMA is rising. This confirms an established uptrend rather than a flat market.
MARKET STRUCTURE — The most recent confirmed swing structure break is to the
upside (a bullish Break of Structure / Change of Character). Swing points are
based on confirmed pivots.
MOMENTUM — A Squeeze-Momentum style oscillator (linear regression of price versus
its recent mean) is positive and rising.
DIP REVERSAL (entry timing) — A combined Bollinger %b + RSI + Stochastic
"oversold package" has just turned back up out of its oversold zone within a short
lookback window. This is what times the entry to a pullback rather than chasing.
RSI CONFIRM (optional) — RSI has turned up above a confirmation level, showing the
bounce has follow-through.
TREND STRENGTH (optional) — ADX is above a minimum threshold and +DI is above -DI,
so entries only occur when a real trend is present (filters out chop).
VOLUME (optional) — Volume is above its moving average (off by default; useful for
stocks, less reliable for some ETFs/FX).

The status table converts this into a 0–100% "confidence" reading. A signal prints
only when every enabled condition passes.
TRADE MANAGEMENT (EXITS)
When a BUY fires, the indicator records the entry price and computes:
Take-Profit = entry x (1 + TP%) default +20%
Stop-Loss = entry x (1 - SL%) default -10%
This is a 2:1 reward-to-risk framework by default. Both percentages are editable.

Only one position is tracked at a time. New entries are blocked until the current
one resolves.
On any single bar, the stop is evaluated before the target. If a bar's range spans
both levels, the result is recorded as a stop — the conservative assumption.
The Entry/TP/SL lines are drawn while the trade is open and stop drawing once it
closes.

IMPORTANT — TIMEFRAME NOTE: A +20% / -10% bracket is large for very low timeframes.
On a 15-minute chart each trade effectively becomes a multi-day swing and exits will
be infrequent. If you prefer faster turnover, either reduce the TP/SL percentages or
run the indicator on a higher timeframe (1H/4H/Daily), where a 20%/10% target fits
price movement more naturally. Tune the percentages to the instrument's volatility.
THE INFO TABLE
The table (top-right) lists each of the seven conditions with a check or cross, an
overall confidence percentage, the current position state, and the active TP/SL
levels when in a trade. If no signal is appearing, the table tells you exactly which
condition is the holdout, so the tool is never a black box.
SETTINGS OVERVIEW

General: entry trigger window (how recently the dip-reversal must have occurred).
Exit Strategy: Take-Profit %, Stop-Loss %, and a toggle to draw the level lines.
Trend: fast/slow EMA lengths and the rising-EMA lookback.
Smart Money Concepts: swing pivot length (larger = more significant structure).
Squeeze Momentum: squeeze length and true-range option.
BB %b + RSI + Stoch: lengths, thresholds, and how many of the three sub-conditions
must be oversold to mark a dip (1–3).
RSI Confirm / ADX / Volume: optional confirmation filters with their own thresholds.
Visuals: toggle arrows, EMAs, and the info table.

HOW TO USE

Add the indicator and let the chart load enough history for the EMAs and pivots.
Watch the table. When all enabled conditions line up, a BUY arrow prints and the
Entry/TP/SL lines appear.
Use the drawn levels as your trade plan, or as a starting point you adjust to your
own risk rules.
If signals are too rare, relax the optional filters (ADX/Volume), lower the
oversold sub-conditions needed, or widen the entry window. If they are too frequent,
do the opposite.

ALERTS
Create an alert and choose one of:

"Buy Signal"
"Take Profit Hit"
"Stop Loss Hit"
Set the alert to "Once Per Bar Close." A single "Any alert() function call" alert will
also capture all three events for the chart.

REPAINTING / CALCULATION BEHAVIOR
Historical signals are based on confirmed, closed-bar data and confirmed swing pivots,
and do not repaint. On the live (still-forming) bar, conditions are evaluated on each
tick and only become final when the bar closes — this is standard indicator behavior.
For confirmed signals, rely on bar close and set alerts to "Once Per Bar Close."
ORIGINALITY AND CREDITS
This script is a mashup that combines several well-known technical concepts and adds
an original confluence-gating layer plus an automated take-profit/stop-loss management
engine. The component concepts are credited as follows:

Smart Money Concepts (market-structure breaks / BOS / CHoCH): concept popularized by
LuxAlgo and the broader ICT methodology.
Squeeze Momentum: original concept by LazyBear.
Bollinger Bands: John Bollinger. RSI and ADX/DMI: J. Welles Wilder. Stochastic:
George Lane.

The logic here is an independent re-implementation of these public concepts (not a
copy of any author's source code). The original contribution is the way the components
are combined into a single, gated long-only signal with built-in trade management and
a transparency table.
DISCLAIMER
This indicator is provided for educational and informational purposes only. It is not
financial advice and does not guarantee any outcome. Technical confluence improves the
odds of a setup but never removes risk — losing trades will occur. Always do your own
research and manage risk according to your own plan. Past behavior of any signal does
not predict future results.

Penafian

Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.