Relative Strength with CNX500This indicator compares the relative strength of the stock with respect to a wider benchmark index Nifty 500
Grafik Desenleri
𝐍𝐄𝐔𝐑𝐀𝐋 𝐍𝐄𝐓𝐖𝐎𝐑𝐊神经网络交易系统全网都在疯狂寻找的神经网络交易系统
策略通过整合多种技术指标(如EMA、Supertrend、HMA、PSAR、RSI、MACD、WaveTrend、Stochastic、Bollinger Bands、ATR、RVI、OBV、CMF、VWAP、K线形态等),生成综合交易信号。策略采用评分系统,根据各指标的权重累积分数,触发强/弱多头和空头信号,并结合趋势过滤(可选)和止损机制进行交易管理。
The neural network trading system that the entire network is frantically searching for
The strategy integrates multiple technical indicators (such as EMA、Supertrend、HMA、PSAR、RSI、MACD、WaveTrend、Stochastic、Bollinger Bands、ATR、RVI、OBV、CMF、VWAP、K Generate comprehensive trading signals based on line shapes, etc. The strategy adopts a scoring system, accumulates scores based on the weights of each indicator, triggers strong/weak long and short signals, and combines trend filtering (optional) and stop loss mechanism for trading management.
Advanced Pattern Detection System [50+ Patterns]【Advanced Pattern Detection System - Auto-detects 50+ Chart Patterns】
Introducing the most powerful pattern detection indicator for TradingView!
◆ What is this?
An automated tool that finds and displays over 50 chart patterns on your charts. It detects all the patterns professional traders use - Double Tops, Triangles, Head & Shoulders, and more - all in ONE indicator.
◆ Main Features
・Detects 50+ patterns in real-time
・Shows visual explanation of WHY each pattern was identified
・Automatically calculates theoretical target prices
・Displays confidence levels in % (60-95%)
・Choose panel position from 9 locations
・Works on all timeframes (1min to Monthly)
◆ Detectable Patterns
1. Classic Patterns (Double Top/Bottom, Head & Shoulders, etc.)
2. Triangle Patterns (Ascending, Descending, Symmetrical, Expanding)
3. Continuation Patterns (Flags, Pennants, Wedges, etc.)
4. Harmonic Patterns (Gartley, Butterfly, Bat, etc.)
5. Price Action (Pin Bar, Engulfing, Hammer, etc.)
6. Special Patterns (Cup & Handle, V-formations, etc.)
◆ What Makes It Different
・Not just detection - shows the reasoning behind it
・Auto-draws pivot points and necklines
・Displays target prices with % gain/loss from current price
・Detects multiple patterns simultaneously, sorted by confidence
・Available in both Japanese and English versions
◆ Perfect For
✓ Anyone tired of using multiple indicators
✓ Beginners wanting to learn pattern trading
✓ Traders who don't want to miss entry points
✓ Those looking to improve discretionary trading accuracy
◆ How to Use (Easy 3 Steps)
1. Open TradingView and paste code in Pine Editor
2. Click "Add to Chart"
3. Enable only the patterns you need in settings
◆ Color Meanings
Green → Bullish potential (Buy signal)
Red → Bearish potential (Sell signal)
Yellow → Neutral direction (Wait and see)
◆ Recommended Settings
Scalping: Detection period 20, Sensitivity 0.0025
Day Trading: Detection period 50, Sensitivity 0.002
Swing Trading: Detection period 100, Sensitivity 0.0015
◆ Real Trading Example
"Detects Double Bottom → 85% confidence → Enter on neckline break → Take profit at displayed target price"
This is how you can use it in practice.
◆ Important Notes
・This is an analysis tool, not investment advice
・Always combine with other indicators
・Always set stop losses
・Practice on demo account before live trading
◆ Performance
If running slow, turn OFF unused pattern categories. Reducing max display count to 3 also helps.
◆ Summary
This single tool provides functionality that would normally require multiple paid indicators (worth $100-200 total). It's the ultimate pattern detection system recommended for all traders, from beginners to professionals.
Give it a try if interested! Feel free to ask questions in the comments.
ConfluenceX Scanner • Setup + EntryThe ConfluenceX Scanner is a precision trading tool that combines multiple confirmations into one system — giving you high-probability setups in real time.
✔ Support & Resistance detection
✔ Stochastic extremes (92/6)
✔ Keltner channel breakouts
✔ Setup vs Strong Buy/Sell signals
Instead of guessing, you’ll know exactly when multiple factors align.
Binary traders use it for fast, 60-second entries.
Forex traders use it for precise, high-probability setups.
Access is invite-only and managed through Whop. Purchase a license on Whop to unlock full access, alerts, and community support.
ORB Pro — Auto Market + DST (자동 시장·썸머타임 ORB)_[by Irum]ORB Pro — Purpose & Definition (EN)
Purpose
Standardize and visualize the Opening Range Breakout process across markets (KR/US/EU/Crypto) with DST-safe auto session detection; generate three trade-friendly signals (Breakout, Retest, Fakeout); optionally gate by trend and volume; and fire both fixed alertcondition() and runtime alerts that include market names.
Definitions
Opening Range (OR): High/Low (and Mid) built over the configured “opening window”. Auto mode maps by timezone:
KRX 09:00–09:30, US 09:30–10:00 (Eastern, DST-safe), LSE 08:00–08:30, EU 09:00–09:30, Crypto 00:00–00:30.
Breakout: Close above ORH (+ optional ATR buffer) or below ORL (– buffer) for N consecutive closes.
Retest: Within retestBars after a breakout, a return toward ORH/ORL within a tolerance (retestTolPct × OR range) and closing back in the breakout direction.
Fakeout: Within fakeoutBars after the breakout, price re-enters the range past ORH/ORL by the buffer the other way.
ORB Pro — 목적 & 정의 (KR)
목적
시장(한국/미국/유럽/암호화폐)별 개장 구간을 DST(썸머타임)에 맞춰 자동 인식하고, OR(오프닝 레인지)을 시각화한 뒤 브레이크아웃·리테스트·페이크아웃 3종 신호를 제공합니다. 필요 시 추세/거래량 필터로 품질을 높이고, 정적 알림과 실시간 알림(시장명 포함)을 함께 발사할 수 있습니다.
정의
오프닝 레인지(OR): 개장 윈도우 동안의 고가/저가(및 중앙값). 자동 모드 기본 매핑:
KRX 09:00–09:30, 미국 09:30–10:00(동부시간·DST 적용), 런던 08:00–08:30, EU 09:00–09:30, 크립토 00:00–00:30.
브레이크아웃: 종가가 ORH(또는 ORL)를 ATR 버퍼 고려해 연속 N봉 돌파.
리테스트: 브레이크아웃 후 retestBars 이내, ORH/ORL 근방(OR 범위 대비 retestTolPct)을 재접근하고, 돌파 방향으로 종가 복귀.
페이크아웃: 브레이크아웃 후 fakeoutBars 이내, 반대 방향으로 버퍼 넘겨 재유입.
=================================================================================
Settings Manual (EN → KR)
0) Auto Session Detection
Auto-detect Market & ORB Session (DST-safe)
EN: Uses syminfo.timezone and ticker prefix to pick market and opening window (DST aware).
KR: 심볼의 타임존/접두사로 시장·세션 자동 결정(DST 자동 반영).
Manual ORB Session (when Auto is OFF)
EN: Session string like 0930-1000. Use for non-standard opens, RTH-only, etc.
KR: 수동 세션(예: 0930-1000). 변형 장세/정규장만 등 수동 지정.
Show Previous-Day OR
EN: Plots prior day’s OR lines outside today’s session.
KR: 전일 ORH/ORL 표시.
1) Signals & Logic
Breakout confirmation closes (연속 종가 수)
EN: Require 1–3 consecutive closes beyond ORH/ORL (+/– buffer). Higher = fewer false breaks.
KR: ORH/ORL 돌파 종가 연속 N봉 요구(높일수록 잡음 감소).
Use ATR Buffer (진입 버퍼?) / ATR Length / ATR Buffer (×ATR)
EN: Adds a cushion around OR to avoid wicky false triggers. Start 0.10×ATR on 5–15m, raise on volatile coins.
KR: OR 경계에 버퍼(쿠션) 부여. 5–15분 0.10×ATR 시작→변동 크면 상향.
Retest window (bars) & Retest tolerance (% of OR range)
EN: How long after break you accept a retest, and how near to OR line counts as “retest”.
KR: 브레이크아웃 후 리테스트 허용 시간과 OR 근접 허용폭.
Fakeout if back inside within bars
EN: Window to flag failed breaks.
KR: 되돌림 실패(페이크)로 간주할 시간창.
2) Filters
Trend Filter: EMA Direction / EMA Length / Direction Mode
EN: Gate signals to long-only above EMA, short-only below, or both. Default EMA 200.
KR: EMA 기준 상방만/하방만/전체 허용(기본 EMA200).
Volume Filter: Volume ≥ k × SMA / Volume SMA Length / Min Volume (% of SMA)
EN: Demand volume ≥ X% of SMA(volume). Use 110–150% on stocks; optional on crypto.
KR: 거래량이 SMA 대비 X% 이상일 때만 신호 인정(주식 110–150% 권장).
3) Visualization
Show OR Box / Lines / Midline
EN: Box during session; lines & midline after session.
KR: 세션 중 박스, 종료 후 라인/중앙선 표시.
Show Signal Markers / Text Labels / Market Header Label
EN: Triangles (break), circles (retest), crosses (fakeout), header at session start.
KR: 삼각(브레이크), 원(리테스트), X(페이크), 세션 시작 헤더 라벨.
4) Alerts
또한 alert()로 시장명 포함 동적 메시지 발사
EN: Besides the six alertcondition() (fixed texts), you can also push runtime alerts with market names.
KR: 6개 alertcondition()(고정문구) 외에 시장명 포함 실시간 알림도 발사.
How to add alerts (EN → KR)
Condition: ORB Pro Auto DST → choose one of:
ORB Long/Short Breakout, ORB Long/Short Retest, ORB Long/Short Fakeout.
Options: If using runtime alerts too, set “Once per bar” to avoid duplicates.
Webhook/Message: Your exchange bridge (e.g., TradingView → BingX) can parse the fixed message.
조건: ORB Pro Auto DST → 다음 중 선택:
롱/숏 브레이크아웃, 롱/숏 리테스트, 롱/숏 페이크아웃
옵션: 런타임 알림도 켜면 “바마다 1회” 권장(중복 방지).
웹훅/메시지: 고정 메시지 기반으로 자동매매 연동.
Up/Down Days, Volume & Price Change SummaryThis scripts helps you to see the up days and down days over the look back period defined by you .
One of the most important concept in judging the strength of the stock.
Use it
Ai Golden Support and Resistance Adaptive Support & Resistance (ADR-scaled ABCD + Breakout/Retest Zones)
What it does
This indicator detects actionable support/resistance zones from swing structure and breakout events, then keeps each zone active until it’s invalidated by price. It adapts zone sensitivity using Average Daily Range (ADR) so the same rules scale across symbols and vol regimes.
Core Logic (high level)
Swing & ABCD pattern seed
Detects alternating pivots (high–low–high–low or low–high–low–high) using a user-selected lookback.
Validates basic AB–BC–CD proportions: BC must retrace a portion of AB; CD must extend BC within a set range.
From a valid sequence, sets a candidate level (top for bearish, bottom for bullish).
Breakout confirmation
A level becomes confirmed when price closes beyond it (crossover/crossunder).
On confirmation, the script draws a dotted reference line and records how many bars elapsed from the seed pivot to breakout. That count defines the lookback window used for local extremes.
Zone construction
Supply (bearish): builds a box around the most recent local range near the bearish seed;
Demand (bullish): builds a box around the most recent local range near the bullish seed.
Each zone’s height is derived from nearby extremes and the seed swing, so boxes reflect local structure rather than fixed pip widths.
Volatility normalization (ADR%)
ADR is computed from daily candles.
The Risk Profile input (“High/Medium/Low”) scales required move sizes using ADR%, and adjusts pivot sensitivity (fewer/more bars).
Higher risk → more sensitive (smaller ADR %, tighter pivot lookback).
Lower risk → stricter filters (larger ADR %, wider pivot lookback).
Explosive-move filter (streak logic)
Searches the seeded lookback for consecutive same-color candles (config via the risk profile).
Requires the cumulative % move of that streak to exceed an ADR-scaled threshold.
When found, the zone is tagged as originating from an “explosive” move (potentially higher reaction probability).
Zone persistence & invalidation
Zones persist and auto-extend to the right until invalidated.
Invalidation occurs when price closes through a rule-based threshold derived from the seed structure (stored per zone).
Once invalidated, the zone is marked inactive and stops updating.
Inputs & Controls
Risk Profile: High / Medium / Low (sets pivot lookback, streak length, and ADR% thresholds).
Labels & Visuals: Toggle labels and level lines; set line width.
Colors/Boxes: Supply (red), Demand (green); dotted breakout references.
No broker/session settings are required; the script adapts per symbol via ADR.
On-Chart Elements
Dotted breakout lines at confirmed levels (with measured bars-to-breakout).
Supply/Demand boxes that extend until invalidation.
Optional labels for clarity; minimal clutter by default.
How to Use
Context: Use higher-TF context for bias; apply zones on your trading TF.
Confluence: Combine zones with your own triggers (structure breaks, rejection wicks, momentum shifts).
Invalidation: If price closes beyond a zone’s invalidation threshold, treat that zone as inactive.
Sensitivity: If too many zones appear, switch to Medium/Low Risk (stricter ADR% & pivots); if too few, use High Risk.
Notes & Limitations
Logic is rule-based; there is no machine learning.
Daily ADR is computed from D timeframe, so intraday charts inherit daily volatility context.
Results vary by symbol and timeframe; validate settings per market.
This is an indicator (no orders or P/L).
ASM Pro EMA Indicator – Smart Buy/Sell SignalsAdvanced EMA crossover indicator with auto Buy/Sell signals, real-time alerts, and multi-market support. Perfect for Indian Market, Crypto, Forex & Stocks traders.
🔹ASM Pro EMA Indicator – Key Features:
1.Dual EMA Crossover Strategy – Detects market trend shifts using Fast & Slow EMA crossover.
2.Auto Buy/Sell Labels – Instantly shows clear green BUY and red SELL signals on chart.
3.Multi-Timeframe Support – Works smoothly from 1-minute to daily charts.
4.Real-Time Alerts – Receive instant alerts on TradingView app, email, or pop-up.
5.Beginner Friendly – Simple, easy-to-use with no complex setup.
6.Professional Look – Premium design with Blue & Orange EMAs + smart labels.
7.Universal Market Fit – Optimized for Crypto, Forex, Stocks, and Gold.
8.Low Lag Signals – Faster and more reliable than standard EMA crossovers.
9.Risk-Reward Friendly – Helps traders find clear entries, stop-loss, and exit zones.
10.Premium Access Model – Available via monthly & yearly subscription.
🔹How to Make Profit with ASM Pro EMA Indicator:
1.Follow Buy/Sell Signals with Discipline – Enter on Green BUY, exit/short on Red SELL.
2.Use Multi-Timeframe Confirmation – Small timeframe entry, big timeframe trend confirmation.
3.Set Stop-Loss at EMA Levels – Below EMA for BUY, above EMA for SELL.
4.Book Partial Profits – Secure 50% at key levels, trail the rest with EMA.
5.Trade Only Trending Markets – Works best in strong uptrend or downtrend.
もちぽよRCI subもちぽよさん監修の元作成したRCIのインジケーターです
RCIの短期+中期が上限下限到達時に背景色が変わり、加えて長期も到達すれば色が濃ゆくなります
サブチャートに表示されます
作成者のXのアカウントはこちら→@keito_trader
This is an RCI indicator created under the supervision of Mochipoyo.
When the short-term and medium-term RCIs reach the upper or lower limits, the background color changes.
If the long-term RCI also reaches the limit, the color becomes darker.
It is displayed in the sub-chart.
Creator’s X account → @keito_trader
智能资金BOS指标“智能资金BOS指标”是一个复杂的主图指标,整合了多种市场分析工具,基于智能资金(Smart Money)理念,分析市场结构(Market Structure)、订单块(OB)、公平价值缺口(FVG)以及溢价/折扣区域
The "Smart Money BOS Indicator" is a complex main chart indicator that integrates multiple market analysis tools. Based on the concept of Smart Money, it analyzes market structure, order block (OB), fair value gap (FVG), and premium/discount areas
进阶增强版MACD 这是一个增强版 MACD(移动平均线收敛-发散)指标,集成了多时间框架分析、面积统计、背离检测、仪表盘显示和警报功能。
该指标在传统 MACD 指标的基础上进行了大幅扩展,增加了多时间框架(本级别和高级别)、面积分析、背离概率计算、交互式仪表盘和表格显示等功能,旨在为交易者提供更全面的市场动态信息。核心功能包括:双级别 MACD:同时计算本级别(默认快线12、慢线26、信号线9)和高级别(默认快线66、慢线143、信号线50)的 MACD 和信号线。
面积分析:统计 MACD 直方图的面积(红绿柱),并与历史最大面积对比。
背离检测:识别价格与 MACD 的顶背离和底背离,并计算背离概率。
可视化:提供丰富的图形输出,包括直方图、MACD 线、信号线、金叉/死叉标记、背离线、面积标签、表格和仪表盘。
警报系统:为金叉/死叉、面积变化、背离信号等设置多种警报条件。
指标适用于趋势跟踪、背离交易和强度分析,适合日内交易、波段交易等场景。
This is an enhanced MACD (Moving Average Convergence Divergence) indicator that integrates multi time frame analysis, area statistics, divergence detection, dashboard display, and alert functions.
This indicator has been greatly expanded on the basis of the traditional MACD indicator, adding functions such as multi time frame (local and high-level), area analysis, deviation probability calculation, interactive dashboard and table display, aiming to provide traders with more comprehensive market dynamic information. The core functions include: dual level MACD: simultaneously calculating the MACD and signal lines of this level (default fast line 12, slow line 26, signal line 9) and high-level (default fast line 66, slow line 143, signal line 50).
Area analysis: Calculate the area of the MACD histogram (red and green bars) and compare it with the historical maximum area.
Deviation detection: Identify the top and bottom deviations between prices and MACD, and calculate the probability of deviation.
Visualization: Provides rich graphical output, including histograms, MACD lines, signal lines, golden/dead cross markers, backlit lines, area labels, tables, and dashboards.
Alarm system: Set multiple alarm conditions for golden/dead forks, area changes, deviation signals, etc.
The indicator is suitable for trend tracking, divergence trading, and intensity analysis, and is suitable for intraday trading, band trading, and other scenarios.
VXN Levels! Curated Supply and Resistance!VXN Levels!! is a clean, no-nonsense auto-draw tool that displays handpicked support & resistance zones for selected major forex pairs.
Unlike most indicators that rely on formulas and often repaint, every level here comes from a manually curated database. Each price zone is chosen based on precision rejections, wick re-tests, and institutional footprints — the same levels we trade daily.
Because these levels are database-driven, they never repaint. They will only change if we manually update them on our end, ensuring you see exactly what we see.
🔄 Levels are updated daily/weekly as needed to reflect current market conditions.
Pre-loaded pairs include:
AUDCAD, AUDJPY, AUDUSD
CADJPY
EURCAD, EURJPY, EURUSD, EURAUD
GBPAUD, GBPCAD, GBPJPY, GBPUSD
USDJPY
🧭 If you're viewing this on an unlisted pair, no levels will appear.
📨 Contact us if you’d like custom auto-levels tailored for your pair.
⚙️ All levels are static, not repainted, and built for clean S/R retest strategies — suitable for both intraday and swing setups.
📌 For more insights & updates:
Follow us on Instagram → @vxnvixions
David Dang - Scalp M15/H1 (XAUUSD)How to use:
Select your timeframe and XAUUSD pair.
Watch Buy/Sell arrows (BUY green, SELL red) for entry signals.
Follow the auto SL/TP lines to manage risk.
Enable alerts to get notified when signals appear.
My script// This Pine Script® code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
P/B Ratio (Per Share) vs Median + Bollinger Band- 📝 This indicator highlights potential buying opportunities by analyzing the Price-to-Book (P/B) ratio in relation to Bollinger Bands and its historical median.
- 🎯 The goal is to provide a visually intuitive signal for value-oriented entries, especially when valuation compression aligns with historical context.
- 💡 Vertical green shading is applied when the P/B ratio drops below the lower Bollinger Band, which is calculated directly from the P/B ratio itself — not price. This condition often signals the ticker may be oversold.
- 🟢 Lighter green appears when the ratio is below the lower band but above the median, suggesting a possible shorter-term entry with slightly more risk.
- 🟢 Darker green appears when the ratio is both below the lower band and below the median, pointing to a potentially stronger, longer-term value entry.
- ⚠️ This logic was tested using 1 and 2-day time frames. It may not be as helpful in longer time frames, as the financial data TradingView pulls in begins in Q4 2017.
- ⚠️ Note: This script relies on financial data availability through TradingView. It may not function properly with certain tickers — especially ETFs, IPOs, or thinly tracked assets — where P/S ratio data is missing or incomplete.
- ⚠️ This indicator will not guarantee successful results. Use in conjunction with other indicators and do your due diligence.
- 🤖 This script was iteratively refined with the help of AI to ensure clean logic, minimalist design, and actionable signal clarity.
- 📢 Idea is based on the script "Historical PE ratio vs median" by haribotagada
- 💬 Questions, feedback, or suggestions? Drop a comment — I’d love to hear how you’re using it or what you'd like to see changed.
J12Matic Builder by galgoomA flexible Renko/tick strategy that lets you choose between two entry engines (Multi-Source 3-way or QBand+Moneyball), with a unified trailing/TP exit engine, NY-time trading windows with auto-flatten, daily profit/loss and trade-count limits (HALT mode), and clean webhook routing using {{strategy.order.alert_message}}.
Highlights
Two entry engines
Multi-Source (3): up to three long/short sources with Single / Dual / Triple logic and optional lookback.
QBand + Moneyball: Gate → Trigger workflow with timing windows, OR/AND trigger modes, per-window caps, optional same-bar fire.
Unified exit engine: Trailing by Bricks or Ticks, plus optional static TP/SL.
Session control (NY time): Evening / Overnight / NY Session windows; auto-flatten at end of any enabled window.
Day controls: Profit/Loss (USD) and Trade-count limits. When hit, strategy HALTS new entries, shows an on-chart label/background.
Alert routing designed for webhooks: Every order sets alert_message= so you can run alerts with:
Condition: this strategy
Notify on: Order fills only
Message: {{strategy.order.alert_message}}
Default JSONs or Custom payloads: If a Custom field is blank, a sensible default JSON is sent. Fill a field to override.
How to set up alerts (the 15-second version)
Create a TradingView alert with this strategy as Condition.
Notify on: Order fills only.
Message: {{strategy.order.alert_message}} (exactly).
If you want your own payloads, paste them into Inputs → 08) Custom Alert Payloads.
Leave blank → the strategy sends a default JSON.
Fill in → your text is sent as-is.
Note: Anything you type into the alert dialog’s Message box is ignored except the {{strategy.order.alert_message}} token, which forwards the payload supplied by the strategy at order time.
Publishing notes / best practices
Renko users: Make sure “Renko Brick Size” in Inputs matches your chart’s brick size exactly.
Ticks vs Bricks: Exit distances switch instantly when you toggle Exit Units.
Same-bar flips: If enabled, a new opposite signal will first close the open trade (with its exit payload), then enter the new side.
HALT mode: When day profit/loss limit or trade-count limit triggers, new entries are blocked for the rest of the session day. You’ll see a label and a soft background tint.
Session end flatten: Auto-closes positions at window ends; these exits use the “End of Session Window Exit” payload.
Bar magnifier: Strategy is configured for on-close execution; you can enable Bar Magnifier in Properties if needed.
Default JSONs (used when a Custom field is empty)
Open: {"event":"open","side":"long|short","symbol":""}
Close: {"event":"close","side":"long|short|flat","reason":"tp|sl|flip|session|limit_profit|limit_loss","symbol":""}
You can paste any text/JSON into the Custom fields; it will be forwarded as-is when that event occurs.
Input sections — user guide
01) Entries & Signals
Entry Logic: Choose Multi-Source (3) or QBand + Moneyball (pick one).
Enable Long/Short Signals: Master on/off switches for entering long/short.
Flip on opposite signal: If enabled, a new opposite signal will close the current position first, then open the other side.
Signal Logic (Multi-Source):
Single: any 1 of the 3 sources > 0
Dual: Source1 AND Source2 > 0
Triple (default): 1 AND 2 AND 3 > 0
Long/Short Signal Sources 1–3: Provide up to three series (often indicators). A positive value (> 0) is treated as a “pulse”.
Use Lookback: Keeps a source “true” for N bars after it pulses (helps catch late triggers).
Long/Short Lookback (bars): How many bars to remember that pulse.
01b) QBands + Moneyball (Gate -> Trigger)
Allow same-bar Gate->Trigger: If ON, a trigger can fire on the same bar as the gate pulse.
Trigger must fire within N bars after Gate: Size of the gate window (in bars).
Max signals per window (0 = unlimited): Cap the number of entries allowed while a gate window is open.
Buy/Sell Source 1 – Gate: Gate pulse sources that open the buy/sell window (often a regime/zone, e.g., QBands bull/bear).
Trigger Pulse Mode (Buy/Sell): How to detect a trigger pulse from the trigger sources (Change / Appear / Rise>0 / Fall<0).
Trigger A/B sources + Extend Bars: Primary/secondary triggers plus optional extension to persist their pulse for N bars.
Trigger Mode: Pick S2 only, S3 only, S2 OR S3, or S2 AND S3. AND mode remembers both pulses inside the window before firing.
02) Exit Units (Trailing/TP)
Exit Units: Choose Bricks (Renko) or Ticks. All distances below switch accordingly.
03) Tick-based Trailing / Stops (active when Exit Units = Ticks)
Initial SL (ticks): Starting stop distance from entry.
Start Trailing After (ticks): Start trailing once price moves this far in your favor.
Trailing Distance (ticks): Offset of the trailing stop from peak/trough once trailing begins.
Take Profit (ticks): Optional static TP distance.
Stop Loss (ticks): Optional static SL distance (overrides trailing if enabled).
04) Brick-based Trailing / Stops (active when Exit Units = Bricks)
Renko Brick Size: Must match your chart’s brick size.
Initial SL / Start Trailing After / Trailing Distance (bricks): Same definitions as tick mode, measured in bricks.
Take Profit / Stop Loss (bricks): Optional static distances.
05) TP / SL Switch
Enable Static Take Profit: If ON, closes the trade at the fixed TP distance.
Enable Static Stop Loss (Overrides Trailing): If ON, trailing is disabled and a fixed SL is used.
06) Trading Windows (NY time)
Use Trading Windows: Master toggle for all windows.
Evening / Overnight / NY Session: Define each session in NY time.
Flatten at End of : Auto-close any open position when a window ends (sends the Session Exit payload).
07) Day Controls & Limits
Enable Profit Limits / Profit Limit (Dollars): When daily net PnL ≥ limit → auto-flatten and HALT.
Enable Loss Limits / Loss Limit (Dollars): When daily net PnL ≤ −limit → auto-flatten and HALT.
Enable Trade Count Limits / Number of Trades Allowed: After N entries, HALT new entries (does not auto-flatten).
On-chart HUD: A label and soft background tint appear when HALTED; a compact status table shows Day PnL, trade count, and mode.
08) Custom Alert Payloads (used as strategy.order.alert_message)
Long/Short Entry: Payload sent on entries (if blank, a default open JSON is sent).
Regular Long/Short Exit: Payload sent on closes from SL/TP/flip (if blank, a default close JSON is sent).
End of Session Window Exit: Payload sent when any enabled window ends and positions are flattened.
Profit/Loss/Trade Limit Close: Payload sent when daily profit/loss limit causes auto-flatten.
Tip: Any tokens you include here are forwarded “as is”. If your downstream expects variables, do the substitution on the receiver side.
Known limitations
No bracket orders from Pine: This strategy doesn’t create OCO/attached brackets on the broker; it simulates exits with strategy logic and forwards your payloads for external automation.
alert_message is per order only: Alerts fire on order events. General status pings aren’t sent unless you wire a separate indicator/alert.
Renko specifics: Backtests on synthetic Renko can differ from live execution. Always forward-test on your instrument and settings.
Quick checklist before you publish
✅ Brick size in Inputs matches your Renko chart
✅ Exit Units set to Bricks or Ticks as you intend
✅ Day limits/Windows toggled as you want
✅ Custom payloads filled (or leave blank to use defaults)
✅ Your alert uses Order fills only + {{strategy.order.alert_message}}
P/E Ratio vs Median + Bollinger Band- 📝 This indicator highlights potential buying opportunities by analyzing the Price-to-Earnings (P/E) ratio in relation to Bollinger Bands and its historical median.
- 🎯 The goal is to provide a visually intuitive signal for value-oriented entries, especially when valuation compression aligns with historical context.
- 💡 Vertical green shading is applied when the P/E ratio drops below the lower Bollinger Band, which is calculated directly from the P/E ratio itself — not price. This condition often signals the ticker may be oversold.
- 🟢 Lighter green appears when the ratio is below the lower band but above the median, suggesting a possible shorter-term entry with slightly more risk.
- 🟢 Darker green appears when the ratio is both below the lower band and below the median, pointing to a potentially stronger, longer-term value entry.
- ⚠️ This logic was tested using 1 and 2-day time frames. It may not be as helpful in longer time frames, as the financial data TradingView pulls in begins in Q4 2017.
- ⚠️ Note: This script relies on financial data availability through TradingView. It may not function properly with certain tickers — especially ETFs, IPOs, or thinly tracked assets — where P/S ratio data is missing or incomplete.
- ⚠️ This indicator will not guarantee successful results. Use in conjunction with other indicators and do your due diligence.
- 🤖 This script was iteratively refined with the help of AI to ensure clean logic, minimalist design, and actionable signal clarity.
- 📢 Idea is based on the script "Historical PE ratio vs median" by haribotagada
- 💬 Questions, feedback, or suggestions? Drop a comment — I’d love to hear how you’re using it or what you'd like to see changed.
P/S Ratio vs Median + Bollinger Band- 📝 This indicator highlights potential buying opportunities by analyzing the Price-to-Sales (P/S) ratio in relation to Bollinger Bands and its historical median.
- 🎯 The goal is to provide a visually intuitive signal for value-oriented entries, especially when valuation compression aligns with historical context.
- 💡 Vertical green shading is applied when the P/S ratio drops below the lower Bollinger Band, which is calculated directly from the P/S ratio itself — not price. This condition often signals the ticker may be oversold.
- 🟢 Lighter green appears when the ratio is below the lower band but above the median, suggesting a possible shorter-term entry with slightly more risk.
- 🟢 Darker green appears when the ratio is both below the lower band and below the median, pointing to a potentially stronger, longer-term value entry.
- ⚠️ This logic was tested using 1 and 2-day time frames. It may not be as helpful in longer time frames, as the financial data TradingView pulls in begins in Q4 2017.
- ⚠️ Note: This script relies on financial data availability through TradingView. It may not function properly with certain tickers — especially ETFs, IPOs, or thinly tracked assets — where P/S ratio data is missing or incomplete.
- ⚠️ This indicator will not guarantee successful results. Use in conjunction with other indicators and do your due diligence.
- 🤖 This script was iteratively refined with the help of AI to ensure clean logic, minimalist design, and actionable signal clarity.
- 📢 Idea is based on the script "Historical PE ratio vs median" by @haribotagada
- 💬 Questions, feedback, or suggestions? Drop a comment — I’d love to hear how you’re using it or what you'd like to see changed.
[TRIX] Sessions & KillzonesSessions boxes and backgrounds drawn, enable all overall sessions, New York, Asia, London and kill zones. All times, colors, and line styles are customizable. Sessions highs and lows extend until mitigated by price showing where your DOL's are located.
[TRIX] MTF Highs/LowsMTF Highs and Lows automatically drawn and mitigated on LTF when price sweeps. Select up to 4 HTF timeframes. Never have to draw your time frame based draw's on liquidity again.
Spreads CCC/BBB/AAA vs Treasury 10Y//@version=5
indicator("Spreads CCC/BBB/AAA vs Treasury 10Y", overlay=false)
// Tickes de ejemplo (debes reemplazar con los que tengas disponibles en TradingView)
ccc = request.security("XCCC", "D", close) // High Yield CCC
bbb = request.security("LQD", "D", close) // Investment Grade BBB
aaa = request.security("QLTA", "D", close) // AAA
treasury = request.security("US10Y", "D", close) // US Treasury 10Y
// Cálculo del spread (yield bono - yield Treasury)
spread_ccc = ccc - treasury
spread_bbb = bbb - treasury
spread_aaa = aaa - treasury
// Umbral para alerta de riesgo
umbral = input.float(2.0, "Umbral spread (%)")
// Plot de los spreads
plot(spread_ccc, color=color.red, title="Spread CCC")
plot(spread_bbb, color=color.orange, title="Spread BBB")
plot(spread_aaa, color=color.green, title="Spread AAA")
// Señal visual cuando el spread supera el umbral
plotshape(spread_ccc > umbral, title="Alerta CCC", color=color.red, style=shape.triangledown, location=location.abovebar, size=size.tiny)
plotshape(spread_bbb > umbral, title="Alerta BBB", color=color.orange, style=shape.triangledown, location=location.abovebar, size=size.tiny)
plotshape(spread_aaa > umbral, title="Alerta AAA", color=color.green, style=shape.triangledown, location=location.abovebar, size=size.tiny)
EMA 5/25 Cross Signals with AlertsIt is EMA 5/25 Cross Signals with Alerts
So you can find Golden Cross and Dead Cross