อินดิเคเตอร์

MACD PRO + Filtro + Genesis//@version=6
indicator("MACD PRO + Filtro + Delay", overlay=true)
// ======================
// 🔧 INPUTS
// ======================
source = close
fastLen = input.int(12, "Fast")
slowLen = input.int(26, "Slow")
signalLen = input.int(9, "Signal")
delay = input.int(1, "Delay (velas após cruzamento)", minval=0, maxval=5)
emaFilterLen = input.int(100, "EMA Tendência")
// ======================
// 📊 MACD
// ======================
= ta.macd(source, fastLen, slowLen, signalLen)
// ======================
// 📈 FILTRO DE TENDÊNCIA
// ======================
ema = ta.ema(close, emaFilterLen)
trendBuy = close > ema
trendSell = close < ema
// ======================
// 🔀 CRUZAMENTOS
// ======================
buyCross = ta.crossover(macd, signal)
sellCross = ta.crossunder(macd, signal)
// ======================
// ⏱️ DELAY (controle de vela)
// ======================
buySignal = buyCross
sellSignal = sellCross
// ======================
// ✅ CONFIRMAÇÃO DE CANDLE
// ======================
candleBuy = close > open
candleSell = close < open
// ======================
// 🎯 SINAL FINAL (FILTROS)
// ======================
finalBuy = buySignal and trendBuy and candleBuy
finalSell = sellSignal and trendSell and candleSell
// ======================
// 📍 PLOTAGEM
// ======================
plotshape(finalBuy,
title="Compra",
style=shape.triangleup,
location=location.belowbar,
color=color.lime,
size=size.small,
text="BUY")
plotshape(finalSell,
title="Venda",
style=shape.triangledown,
location=location.abovebar,
color=color.red,
size=size.small,
text="SELL")
// ======================
// 📉 EMA NO GRÁFICO
// ======================
plot(ema, "EMA 200", color=color.orange)
// ======================
// 🔔 ALERTAS
// ======================
alertcondition(finalBuy, "Compra", "Sinal de COMPRA confirmado")
alertcondition(finalSell, "Venda", "Sinal de VENDA confirmado" อินดิเคเตอร์

อินดิเคเตอร์

Moving Average Convergence Divergence TIMEOverview
This is a customized MACD (Moving Average Convergence Divergence) indicator for TradingView, labeled "MACDH" on the chart, with a few enhancements beyond the stock MACD.
Core Components
MACD Calculation
Uses a fast moving average (default 12) and slow moving average (default 26), both configurable as EMA or SMA
MACD line = Fast MA − Slow MA
Signal line = moving average of the MACD line (default 9-period, EMA or SMA)
Histogram = MACD line − Signal line
Multi-Timeframe Support
You can calculate the MACD on a different timeframe than the chart itself (e.g., view 5-minute chart but calculate MACD on 1-hour data) via request.security
A "Wait for timeframe closes" toggle lets you choose between using the confirmed (closed) value of the higher timeframe or the live, repainting value
Color-Coded Histogram
Dark teal: histogram is positive and rising
Light teal: histogram is positive but falling
Light red: histogram is negative but rising
Dark red: histogram is negative and falling
This gives a quick visual read on momentum direction, not just above/below zero
Plots
Histogram as columns
MACD line
Signal line (orange)
Zero line for reference
Alerts
Fires when the histogram crosses from positive to negative ("rising to falling")
Fires when the histogram crosses from negative to positive ("falling to rising")
Timeframe Watermark
Displays a small label on the chart (e.g., "1H", "4H", "1D") showing which timeframe the MACD is actually being calculated on — useful since it can differ from the chart's own timeframe
Position (corner) and font size are both configurable
In short: it's a standard MACD with configurable multi-timeframe calculation, momentum-based histogram coloring, crossover alerts, and an on-chart label confirming which timeframe is driving the calculation. อินดิเคเตอร์

อินดิเคเตอร์

DNSE VN301!, Donchian Break Out Strategy"Donchian Channel Breakout with SMA Trend Filter" is a trend-following breakout strategy designed to capture sustained price movements while filtering out low-probability signals. The Donchian Channel identifies breakouts by tracking the highest high and lowest low over a specified lookback period, generating potential entry signals when price closes outside the recent trading range. Because breakouts during sideways or low-volatility markets often fail, the strategy incorporates a Simple Moving Average (SMA) as a trend filter.
Long signals are prioritized when the SMA is rising, while Short signals are prioritized when the SMA is falling, ensuring trades align with the prevailing market trend. By combining breakout detection with trend confirmation, the strategy aims to reduce false breakouts and improve overall signal quality.
*By default: each VN Futures contract requires VND 30,000,000 of initial margin. The strategy assumes an initial capital of VND 100,000,000, resulting in a fixed position size of 3 contracts for each trading signal.
To better reflect real-market trading conditions, the backtest incorporates a commission of VND 10,000 per contract and a minimum slippage assumption of 3 ticks on every executed trade.
Settings & Strategy Configuration:
Chart: recommended 15-minute timeframe
Donchian Channel Period: 20
SMA Period: 200
Stop Loss: 10 points
Take Profit: 20 points
SMA Trend Filter: On / Off
Use Take Profit: On / Off
Time Filter: On / Off
Trading Session: 09:00 – 14:30
Trade Direction: Long / Short / Both
Default Script Settings:
The strategy calculates the upper and lower bands of the Donchian Channel using the selected lookback period. A breakout above the upper band may indicate buying pressure, while a breakout below the lower band may indicate selling pressure.
When the SMA(200) trend filter is enabled, the script only allows Long entries when SMA(200) is rising and only allows Short entries when SMA(200) is falling. When the SMA filter is disabled, the strategy can trade both directions based only on Donchian Channel breakout signals.
Entry & Exit Conditions:
Entry Long:
Close Price > Upper Donchian Channel
AND SMA(200) is rising, if the SMA filter is enabled
AND the signal appears within the selected trading session
AND Long trading is allowed by the trade direction setting
Exit Long:
Stop Loss: 10 points from entry price
Take Profit: 20 points from entry price, if enabled
Opposite Donchian breakout signal
Position reversal when a valid Short signal appears
Automatic close at the end of the trading session
Entry Short:
Close Price < Lower Donchian Channel
AND SMA(200) is falling, if the SMA filter is enabled
AND the signal appears within the selected trading session
AND Short trading is allowed by the trade direction setting
Exit Short:
Stop Loss: 10 points from entry price
Take Profit: 20 points from entry price, if enabled
Opposite Donchian breakout signal
Position reversal when a valid Long signal appears
Automatic close at the end of the trading session
Disclaimers:
Trading futures contracts carries a high degree of risk, and price movements can be highly volatile. This script is intended as a reference and research tool only. It should be used by individuals who understand futures trading, have assessed their own risk tolerance, and are knowledgeable about the strategy’s logic.
All investment decisions are the sole responsibility of the user. DNSE bears no liability for any potential losses incurred from applying this strategy in real trading. Past performance does not guarantee future results.
______________________________________________________________________
"Chiến lược Breakout Donchian Channel kết hợp bộ lọc xu hướng SMA" là một chiến lược giao dịch theo xu hướng, được thiết kế nhằm tận dụng các đợt bứt phá giá mạnh đồng thời giảm thiểu các tín hiệu nhiễu. Donchian Channel xác định các điểm breakout bằng cách theo dõi mức giá cao nhất và thấp nhất trong một khoảng thời gian xác định, từ đó tạo tín hiệu khi giá đóng cửa vượt ra khỏi vùng dao động gần nhất. Do các tín hiệu breakout trong giai đoạn thị trường đi ngang hoặc biến động thấp thường có xác suất thất bại cao, chiến lược sử dụng thêm đường trung bình động đơn giản (SMA) làm bộ lọc xu hướng.
Khi đường SMA đang dốc lên, chiến lược ưu tiên các tín hiệu Long; ngược lại, khi SMA dốc xuống, chiến lược ưu tiên các tín hiệu Short, giúp các lệnh giao dịch đi cùng xu hướng chính của thị trường. Bằng cách kết hợp tín hiệu breakout với xác nhận xu hướng, chiến lược hướng tới việc giảm các tín hiệu phá vỡ giả và nâng cao chất lượng giao dịch.
*Theo mặc định, mỗi hợp đồng VN Futures yêu cầu ký quỹ ban đầu là 30.000.000 VNĐ. Chiến lược giả định vốn ban đầu là 100.000.000 VNĐ, tương ứng với quy mô vị thế cố định là 3 hợp đồng cho mỗi tín hiệu giao dịch được tạo ra.
Để phản ánh sát hơn điều kiện giao dịch thực tế, kết quả kiểm định (backtest) được giả định với phí giao dịch là 10.000 VNĐ cho mỗi hợp đồng và độ trượt giá (slippage) tối thiểu là 3 bước giá (ticks) đối với mỗi lệnh được khớp.
Cài đặt & cấu hình chiến lược:
Biểu đồ: khuyến nghị khung 15 phút
Chu kỳ Donchian Channel: 20
Chu kỳ SMA: 200
Cắt lỗ: 10 điểm
Chốt lời: 20 điểm
Bộ lọc xu hướng SMA: Bật / Tắt
Dùng chốt lời: Bật / Tắt
Bộ lọc giờ: Bật / Tắt
Khung giờ giao dịch: 09:00 – 14:30
Chiều giao dịch: Mua / Bán / Cả hai
Cài đặt mặc định của script:
Chiến lược tính toán biên trên và biên dưới của Donchian Channel dựa trên chu kỳ được chọn. Khi giá phá lên biên trên, lực mua có thể đang chiếm ưu thế. Khi giá phá xuống biên dưới, lực bán có thể đang chiếm ưu thế.
Khi bật bộ lọc xu hướng SMA(200), script chỉ cho phép lệnh Mua khi SMA(200) dốc lên và chỉ cho phép lệnh Bán khi SMA(200) dốc xuống. Khi tắt bộ lọc SMA, chiến lược có thể giao dịch cả hai chiều chỉ dựa trên tín hiệu breakout của Donchian Channel.
Điều kiện vào và thoát lệnh:
Vào lệnh Mua:
Giá đóng cửa > Biên trên Donchian Channel
VÀ SMA(200) dốc lên, nếu bật bộ lọc SMA
VÀ tín hiệu xuất hiện trong khung giờ giao dịch
VÀ chiều giao dịch cho phép lệnh Mua
Thoát lệnh Mua:
Cắt lỗ: 10 điểm từ giá vào lệnh
Chốt lời: 20 điểm từ giá vào lệnh, nếu bật
Có tín hiệu breakout ngược chiều
Đảo chiều khi xuất hiện tín hiệu Bán hợp lệ
Tự động đóng lệnh khi hết khung giờ giao dịch
Vào lệnh Bán:
Giá đóng cửa < Biên dưới Donchian Channel
VÀ SMA(200) dốc xuống, nếu bật bộ lọc SMA
VÀ tín hiệu xuất hiện trong khung giờ giao dịch
VÀ chiều giao dịch cho phép lệnh Bán
Thoát lệnh Bán:
Cắt lỗ: 10 điểm từ giá vào lệnh
Chốt lời: 20 điểm từ giá vào lệnh, nếu bật
Có tín hiệu breakout ngược chiều
Đảo chiều khi xuất hiện tín hiệu Mua hợp lệ
Tự động đóng lệnh khi hết khung giờ giao dịch
Tuyên bố rủi ro:
Giao dịch hợp đồng tương lai có mức độ rủi ro cao và giá có thể biến động mạnh. Script này chỉ phục vụ mục đích tham khảo, nghiên cứu và kiểm thử. Người dùng cần hiểu rõ giao dịch phái sinh, khẩu vị rủi ro cá nhân và logic của chiến lược trước khi áp dụng vào giao dịch thực tế.
Mọi quyết định đầu tư thuộc trách nhiệm của người dùng. DNSE không chịu trách nhiệm cho bất kỳ khoản lỗ nào phát sinh từ việc sử dụng chiến lược này trong giao dịch thực tế. Hiệu quả trong quá khứ không đảm bảo kết quả trong tương lai.
กลยุทธ์

ORB + Key Levels (PDH/PDL, PM H/L, PDC, Open)Restructured for backtesting. The key change: instead of drawing only the current day's rays at the last bar, the script now creates real line objects day by day as it processes history. So:
Every past day on the chart keeps its own ORB 15/30, PDH/PDL, PDC, PM H/L, and opening print lines — each one starting at its forming candle and ending at that day's close
When you enter bar replay mode and jump to any date, the script recalculates up to the replay point, so that date's levels are drawn correctly and the "active" day at the replay head extends to the right edge — exactly like live trading
As you step forward through replay, ORB lines pop in the moment the 15/30-min window completes (9:45/10:00 ET), PM levels update tick-by-tick during premarket, and everything freezes when the next day's premarket begins — so you're seeing exactly what you'd have seen in real time, with no lookahead
Two practical notes for your replay testing:
Line history depth: max_lines_count=500 keeps roughly the last 50 sessions of lines visible (10 lines per day). TradingView's hard cap is 500, so older days silently drop their lines — but in replay this doesn't matter, since everything recalculates from the replay point anyway.
On the very first day of loaded history there are no PDH/PDL/PDC lines (there's no tracked previous day yet) — start your replay at least one session in. อินดิเคเตอร์

FTA Daily Pro v4FTA Daily Pro v4 — Full Technical Analyzer
A comprehensive daily-timeframe dashboard that combines trend, momentum, volume, volatility, relative strength, and divergence analysis into a single panel.
WHAT'S NEW IN V4
- Graded trend scoring — instead of an all-or-nothing trend flag, each condition (price vs EMA20, EMA20 vs EMA50, EMA50 vs EMA200, price vs EMA200) contributes points. A stock above its short-term EMAs but still below EMA200 now receives a partial score rather than zero.
- Momentum measures direction only — RSI and Stochastic no longer lose their points when readings run hot. Overbought/oversold is surfaced separately as an Exhaustion warning instead of silently reducing the score.
- Volume and volatility act as a quality gate — signals require meaningful relative volume and ATR expansion, not just a small score deduction.
- RRG (Relative Rotation) row — shows where the symbol sits versus a benchmark: Leading, Weakening, Lagging, or Improving, with RS-Ratio / RS-Momentum values and a direction arrow.
- Higher-timeframe confirmation row — displays the weekly (configurable) trend state to help avoid counter-trend setups.
- Clearer scoring scale — Bull/Bear score is now out of 10.
FEATURES
- EMA 10 / 20 / 50 / 200 — trend direction and structure
- MACD — momentum regime and fresh crossovers
- RSI (14) — zone reading with overbought/oversold background
- Stochastic K/D — momentum confirmation
- Relative Volume — participation filter
- ATR % — volatility filter
- RRG — relative strength quadrant versus a configurable benchmark (default SPY)
- HTF confirmation — higher-timeframe trend state
- Exhaustion flag — warns when momentum readings are stretched
- RSI Divergence — bull/bear divergence labels on chart
- Scoring system — Bull/Bear score out of 10
SIGNALS
Buy triggers on an EMA10/EMA20 crossover or a fresh MACD crossover, provided the score threshold and quality gate are met. Sell is symmetric. Score thresholds are adjustable in settings.
Dashboard displays real-time status of all components in one panel (top right). Alerts available for Buy, Strong Buy, Sell, Strong Sell, Bullish Divergence, Bearish Divergence, and RRG quadrant entries.
Best used on the Daily timeframe. Works across stocks, forex, crypto, and commodities, though the volume filter is most meaningful on symbols with reliable volume data.
NOTE
This is a technical analysis and visualization tool. It has not been backtested as a standalone trading system, and the scoring reflects current conditions rather than a validated edge. It does not constitute financial advice — always do your own research before making trading decisions. อินดิเคเตอร์

อินดิเคเตอร์

อินดิเคเตอร์

อินดิเคเตอร์

อินดิเคเตอร์

อินดิเคเตอร์

RSI Divergence Indicator with Custom LevelsHere's a publish-ready description you can paste into TradingView's publishing form:
---
**RSI Divergence Indicator with Custom Levels**
This indicator combines a standard RSI oscillator with automatic divergence detection, plus fully customizable horizontal reference lines.
**Core Features:**
- **RSI Oscillator** — configurable period and source, plotted with standard 30/50/70 reference lines and an overbought/oversold shaded zone.
- **Automatic Divergence Detection** — identifies and labels four types of divergence directly on the RSI:
- Regular Bullish (price makes a lower low, RSI makes a higher low)
- Hidden Bullish (price makes a higher low, RSI makes a lower low)
- Regular Bearish (price makes a higher high, RSI makes a lower high)
- Hidden Bearish (price makes a lower high, RSI makes a higher high)
- **Built-in Alerts** — alert conditions are included for all four divergence types, so you can get notified the moment a new divergence forms.
**New: Custom Horizontal Lines**
Beyond the default 30/50/70 levels, you can now add up to 10 additional horizontal reference lines anywhere on the RSI scale — useful for marking your own thresholds, historical pivot levels, or extreme readings. Each line is fully independent and configurable:
- Enable/disable individually
- Set the exact level
- Choose the color and opacity
- Choose the line style (solid, dashed, dotted)
- Set the line width
This makes it easy to tailor the indicator to your own trading strategy without cluttering the chart with lines you don't need.
**How to Use:**
Add the indicator, then open its settings to adjust RSI period/source, toggle divergence types, and turn on any custom lines you want under "Custom Line 1" through "Custom Line 10."
อินดิเคเตอร์

อินดิเคเตอร์

อินดิเคเตอร์

อินดิเคเตอร์

Fund + Pullback Screener v5Fund + Pullback Screener — fundamental filter + pullback entry signal
WHAT IT DOES
This indicator combines fundamental screening and technical entry timing in a single tool. The logic is two-stage: a stock is first checked against fundamental criteria, then against a pullback setup (a retracement within an uptrend). All checks are displayed in an on-chart table: value, threshold, pass/fail.
PRESETS
5 built-in fundamental filter modes (switchable in settings):
- GARP — quality companies at a reasonable price: P/E 8–35, ROE > 15%, operating margin > 15%, EPS growth > 10%, Debt/Equity < 1, PEG < 2
- Growth — profitable companies with aggressive growth: P/E up to 120, EPS growth > 25%, revenue growth > 20%, PEG < 3
- Deep Value — cheap and profitable: P/E 5–18, PEG < 1.2, Debt/Equity < 0.7
- Emerging Growth — pre-profit hypergrowth (P/E, PEG, EPS, ROE are not used): revenue growth > 30%, revenue acceleration, gross margin > 40%, improving operating margin, Rule of 40, share dilution < 8%
- Custom — manual thresholds
SIGNAL LOGIC
Status in the table: NO / WATCH / ENTRY.
- Trend filter: weekly timeframe, price above SMA200 and SMA50 above SMA200. For young companies without 200 weeks of history, it automatically falls back to SMA50.
- WATCH: fundamentals passed, uptrend intact, RSI below 50, price within 4 ATR of support (pivot low or SMA50). A candidate to monitor.
- ENTRY: RSI in the 30–50 zone turning up, price within 1.5 ATR above support (an undercut down to 0.5 ATR is allowed). Shown as a triangle below the bar.
Distances are measured in ATR units, so the logic automatically adapts to each instrument's volatility.
HANDLING UNAVAILABLE DATA (N/A POLICY)
Some sectors structurally lack certain metrics (e.g., gross margin for insurers). Lenient mode (default) skips up to 2 unavailable metrics, marking them with a gray "–" and showing a skip counter. Core metrics (market cap, revenue growth) are never skipped. Strict mode: any unavailable metric = fail.
HOW TO USE
1. Recommended timeframe — daily.
2. Pick the preset matching the company type: mature names — GARP/Deep Value, expensive growers — Growth, pre-profit — Emerging Growth.
3. Shortlist candidates with the native TradingView screener, add them to a watchlist and flip through the charts — the table instantly shows the full picture for each ticker.
4. All thresholds are configurable in the settings.
LIMITATIONS
- Works on stocks only — crypto, forex and futures have no fundamental data.
- EPS and revenue growth are computed from the history of quarterly reports accumulated on the chart: full history is required (at least 8–9 quarters), otherwise growth metrics show n/a.
- Fundamental data updates quarterly as reports are released.
- The indicator is informational only and is not investment advice. อินดิเคเตอร์

อินดิเคเตอร์

อินดิเคเตอร์

อินดิเคเตอร์

อินดิเคเตอร์

อินดิเคเตอร์
