OPEN-SOURCE SCRIPT
已更新

Advance Trading System

256
This Price Action + Volume based indicator combines Multi‑Timeframe swing structure, volume ranking, liquidity zones and auto long/short signal generation to create an “Advance Trading System” that displays OB (order block‑like) levels, dashboard and entry/exit labels on the chart.

What this indicator does
Looks at recent candles on different timeframes to determine if the trend is more “bullish” or “bearish” (considers it bullish if at least 2 out of 3 timeframes agree).
Picks up the recent swing points where the price can reverse and plots green/red lines on them (called “Buy OB”/“Sell OB” here).
Shows when volume has increased, whether the bar is an inside-bar or not, and a small dashboard in the top-right that shows the trend, reversal levels, volume and LTF/HTF signals.

What are the buttons/settings
Swing Strength: Based on how many bars the recent swing high/low will be confirmed; if the number increases, the signal will come late but with more confidence.
Volume Avg Period: How many bars the volume should be averaged from; this checks “whether the volume is strong or not”.
Show HH/HL/LH/LL Labels: Switch to show/hide swing labels by writing them on the chart.
Show Dashboard: Small panel on/off in the top-right.
Signal Mode: Auto, Long Only, Short Only or Both—that is, whether to follow the auto-trend or see only buy/sell.
LTF/HTF: Choose lower and higher timeframes; also 15m/30m/1h/4h are scanned in the background to understand the recent direction.

How to identify trends and swings
Candle patterns: Simple rule—if the latest candle is biased (e.g. a strong bull/bear or a particularly long wick candle), then the signal for that TF is 1 (bull) or -1 (bear); otherwise 0.
Three TFs: Lower, Mid (which is the chart TF), and Higher—the non-zero signal is considered the “last known direction”; then the number of the three is counted as bull/bear.
Swing high/low: The most recent “solid” high/low on the chart is considered the highest/lowest within a few bars to the left or right; this indicates whether the new high is above (HH) or below (LH) the old one, and whether the new low is above (HL) or below (LL).

What are the green/red lines
If the trend is bullish (at least 2 out of 3 TFs are bullish), a green line is drawn near the previous confirmed low—here it is called Buy OB; the idea is that if the price comes near this zone, a bounce is expected.
On a bearish trend, a red line is drawn near the previous confirmed high—Sell OB—which means if the price comes near that zone, a drop is expected.

Volume colors and inside-bars
color of each bar is determined by the volume ranking: orange/yellow for low volume, varying shades of blue for high volume; if an inside-bar is formed (both high/low inside the previous bar) the bar is darkened to draw attention.

Simple estimation of liquidity zone
When the recent swing high is formed, the total volume is looked at in the surrounding few bars (eg: 3-3 bars before/after) and the upper/lower edge is noted where the maximum concentration is - this is considered as the liquidity zone.
The same is done for the high TF as well and the average of both is taken to form an MTF zone to get a big-picture picture.

What the dashboard shows
Trend (Multi‑TF): HL/HH indicates bullish trend, LH/LL indicates bearish trend; color green/red.
Reversal Level: Level where the recent reversal was confirmed (high/low of the last confirmed swing).
Volume vs Prev: Volume higher/lower/equal to the previous bar.
Volume: Raw number, color green/red depending on whether Price is buy or sell.
LTF/HTF: Last received signal as BUY/SELL.

How entry/exit signals are formed
Basic conditions:
Mood bias: at least 2 TFs in the same direction.
Volume strength: current volume is well above average and higher than the previous bar—i.e. there is real juice.
Near zone: price is in a small band around the green/red line (e.g. within about -2% to +1% for Buy).

Long Entry: all three conditions above are met on the previous close of the bar in the buy direction; Short Entry is the opposite. Exit rule is also placed on the previous bar of the opposite signal, so that everything is on a “confirmed close” and false shocks are minimized.

Labels: once the signal is confirmed, the labels “LONG ENTRY”, “LONG EXIT”, “SHORT ENTRY”, “SHORT EXIT” are applied to the chart on the previous bar itself, with a small ATR-based gap for clear reading.

How Auto/Manual modes work
Auto (TF Based): The system will decide whether to look at Long Only, Short Only, or Both—depending on the Multi‑TF trend.
Long Only/Short Only: Only signals from that side will be generated; Both will generate both.

What to look for in the limits
Swing confirmation takes time, as you have to wait for a few bars to the right—so the signal is more reliable with a slight delay.
The term “OB” is used here for a simple level; this is not pro-level order-block detection (such as with FVG/break-off-structure), but it works well with this system.
Volume ranking is simple; ties are possible at equal volume, which can reduce precision in color-coding.

How to use
First check the trend from the dashboard: focus on the buy zone if HL/HH, sell zone if LH/LL.
Then check if there is a volume spike; without volume confirmation it is better to skip signals.
When the price is right near the green/red line, only work with a confirmed signal on the previous close bar, avoid rushing in between.

This can be made more robust if desired by adding true order‑block, FVG, and additional confirmations (such as RSI/MACD/Structure Break); but the base idea is to combine multi‑timeframe trend + swing levels + volume strength + zone close to produce simple, Tradeable and confirmed signals.
發行說明
add new logic for buy/sell
add ma line for better trend observation

for full detail -- check my another indicator cnagda trading tool

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。