Indicators and strategies
Williams Vix Fix ShortsSo if you haven't already, add the normal "Williams Vixx Fixx" indicator to your chart twice,
Then open the settings on one of them and click the "highs not lows" option. and uncheck the "Highlight Bars For Simple Entry" option.
That will be the histogram for your shorts. The other Vixx Fixx indicator you added can be left as is.
Then add my indicator, either by just searching it in Tradigview or by using the pinescript above. This will act as your "white" candle for your short setups aligning with volitility and your histogram. So then you will have a black candle when the shorts Vixx Fixx triggers and a white while the long Vixx Fixx triggers.
ORDERFLOW - CHOCH STATUS WITH MULTI TF PANNELThis code gives you the status of the orderflow direction (defined by the Choch theory, see Somstradamus for more information on how it is defined) in the form of barcolor for the current TF.
We also have a pannel which let you know the orderflow's status of different timeframes on 1 glances.
DMI + Didi Index (Convergência)This indicator combines the power of DMI/ADX with the Didi Index to detect high-probability trade signals only when the market is trending and momentum is aligned.
✅ ADX and DMI help filter out sideways markets by identifying low-trend strength zones.
✅ The Didi Index uses the convergence and divergence of exponential moving averages (EMAs 3, 8, and 20) to spot trend reversals and continuations.
✅ Buy and sell signals are only plotted when both trend strength and directional alignment are confirmed.
Designed for traders who prefer momentum and trend-following strategies while avoiding noise during ranging conditions.
Bot Institucional - EMAs + Volumen + SR InternoThis script is a technical trading tool that combines three main features:
EMA Cross Alerts
Uses two Exponential Moving Averages (EMAs): a short-term (default 9) and a long-term (default 21).
Generates alerts and labels when the fast EMA crosses above (bullish) or below (bearish) the slow EMA.
Institutional Volume Detection
Highlights bars where volume exceeds a user-defined multiple (default: 2×) of the 20-bar average volume.
These spikes are marked as potential signs of institutional activity.
Support/Resistance Level Detection (internal only)
Automatically identifies significant pivot highs/lows to estimate strong support/resistance zones.
These levels are tracked internally but not displayed on the chart to keep visuals clean.
The script provides clear visual labels and alert conditions, making it useful for momentum traders, scalpers, and volume-based strategies.
Danny_Stone SnR Enhanced [by Danny Shih]This technical indicator shows the accuracy of the support and pressure positions. The accuracy of the technical indicators will continue to be improved in the future. Please continue to pay attention to my updates. If you feel it is good to use or have any questions, you can ask me. Thank you!
這個技術指標是提供支撐與壓力位置的精確顯示,之後還會繼續完善技術指標的準確性,請繼續關注我的更新,若覺得不錯使用或有什麽問題都可以提出詢問,感謝!
Bollinger + EMA Strategy with Statssharpe_window = input.int(252, "Sharpe Lookback")sharpe_window = input.int(252, "Sharpe Lookback")sharpe_window = input.int(252, "Sharpe Lookback")sharpe_window = input.int(252, "Sharpe Lookback")sharpe_window = input.int(252, "Sharpe Lookback")sharpe_window = input.int(252, "Sharpe Lookback")sharpe_window = input.int(252, "Sharpe Lookback")sharpe_window = input.int(252, "Sharpe Lookback")sharpe_window = input.int(252, "Sharpe Lookback")sharpe_window = input.int(252, "Sharpe Lookback")sharpe_window = input.int(252, "Sharpe Lookback")sharpe_window = input.int(252, "Sharpe Lookback")sharpe_window = input.int(252, "Sharpe Lookback")
Stochastic RSI with MTF TableThis Pine Script creates a Stochastic RSI indicator with a multi-timeframe (MTF) table for TradingView. It calculates the Stochastic RSI (using RSI length of 14, Stochastic length of 14, and smoothing of 3 for K and D lines) on the current chart timeframe and plots K (blue) and D (orange) lines, with overbought (80) and oversold (20) levels. The script also displays a horizontal table showing the overbought/oversold status for multiple timeframes (5m, 15m, 30m, 1h, 4h, 1D), with customizable table position (Top-Left, Top-Right, Bottom-Left, Bottom-Right). The table uses green for oversold, red for overbought, and gray for neutral, ensuring independent calculations for each timeframe using historical data to avoid repainting.
Bollinger + EMA Strategy with Statsif show_stats and bar_index == ta.highest(bar_index, 50)
winrate = strategy.closedtrades > 0 ? (strategy.wintrades / strategy.closedtrades) * 100 : na
label_text = "Net Profit: " + str.tostring(strategy.netprofit, "#.##") + " " +
"Max DD: " + str.tostring(max_dd * 100, "#.##") + "% " +
"Win Rate: " + str.tostring(winrate, "#.##") + "% " +
"Trades: " + str.tostring(strategy.closedtrades)
label.new(x=bar_index, y=high, text=label_text,
style=label.style_label_right, color=color.gray, textcolor=color.white)
Bollinger + EMA Strategy with StatsThis strategy is a mean-reversion trading model that combines Bollinger Band deviation entries with EMA-based exits. It enters a long position when the price drops significantly below the lower Bollinger Band by a user-defined multiple of standard deviation (x), and a short position when the price exceeds the upper band by the same logic. To manage risk, it uses a wider Bollinger Band threshold (y standard deviations) as a stop loss, while take profit occurs when the price reverts to the n-period EMA, indicating mean reversion. The strategy maintains only one active position at a time—either long or short—and allocates a fixed percentage of capital per trade. Performance metrics such as equity curve, drawdown, win rate, and total trades are tracked and displayed for backtesting evaluation.
Multi-Timeframe EMAs with Cross Alerts (Up & Down)📌 Indicator Name:
Multi-Timeframe EMAs with Cross Alerts (Up & Down)
🛠️ Core Features:
✅ 1. Multi-Timeframe EMA Display
The script calculates and displays 6 different Exponential Moving Averages (EMAs).
Each EMA has:
Custom length input (e.g., 9, 21, etc.).
Custom timeframe selection (e.g., 1H, 4H, 1D).
Custom color for easy identification on the chart.
✅ 2. EMA Visualization
Each of the six EMAs is plotted on the chart using the selected color and thickness.
They respond dynamically to different timeframes (current or higher/lower).
✅ 3. Cross Detection Logic
The script can detect crossover and crossunder between EMA pairs:
EMA 1 and EMA 2
EMA 3 and EMA 4
EMA 5 and EMA 6
(Optional: can be extended to other combinations.)
✅ 4. Alert Toggles
Users can enable or disable alerts for each pair independently:
Alert: EMA 1 crosses EMA 2
Alert: EMA 3 crosses EMA 4
Alert: EMA 5 crosses EMA 6
(You added an additional option for EMA 4 vs EMA 6 later.)
✅ 5. Visual Alert Markers
The script uses alert() function to send alert messages when:
An EMA crosses above another (crossover)
An EMA crosses below another (crossunder)
Alerts include clear icons like 🔼 and 🔽 in the messages.
🔔 Use Case Scenarios
Swing traders: Identify longer-term cross signals on higher timeframes.
Scalpers: Use lower-timeframe EMAs with fast alert reactions.
Multi-timeframe analysis: Spot alignment between trend-following EMAs across different periods.
✅ Bonus
Fully customizable — great for adapting to your own strategy, whether it's trend confirmation, re-entry signals, or early reversals
📌 اسم المؤشر:
المتوسطات المتحركة الأسية (EMA) متعددة الفريمات مع تنبيهات تقاطع صاعدة وهابطة
🛠️ الميزات الأساسية:
✅ 1. دعم متعدد للفريمات الزمنية
يقوم السكربت بحساب وعرض 6 متوسطات متحركة أسية (EMA) مختلفة.
يمكن تخصيص كل EMA من حيث:
الطول (مثل: 9، 21...).
الفريم الزمني (مثل: الساعة، الأربع ساعات، اليومي...).
اللون، لتسهيل التمييز بين الخطوط على الشارت.
✅ 2. عرض المتوسطات على الرسم البياني
يتم رسم كل من المتوسطات الستة باستخدام اللون والتنسيق الذي تختاره.
المتوسطات تتفاعل تلقائيًا مع التغييرات في الفريم الزمني.
✅ 3. كشف التقاطعات
يمكن للسكربت كشف تقاطعات (صعودًا أو هبوطًا) بين أزواج المتوسطات التالية:
EMA 1 و EMA 2
EMA 3 و EMA 4
EMA 5 و EMA 6
(ويمكنك إضافة المزيد مثل EMA 4 مع EMA 6 حسب الحاجة)
✅ 4. التحكم في التنبيهات
يمكن للمستخدم تفعيل أو تعطيل التنبيهات لكل زوج من المتوسطات على حدة:
تنبيه عند تقاطع EMA 1 و EMA 2
تنبيه عند تقاطع EMA 3 و EMA 4
تنبيه عند تقاطع EMA 5 و EMA 6
(وأي أزواج إضافية يتم إضافتها لاحقًا)
✅ 5. تنبيهات مرئية برسائل واضحة
السكربت يرسل تنبيهات عبر وظيفة alert() عند حدوث:
تقاطع صاعد (EMA يتقاطع من الأسفل إلى الأعلى).
تقاطع هابط (EMA يتقاطع من الأعلى إلى الأسفل).
التنبيه يحتوي على رموز توضيحية مثل 🔼 و 🔽 ليسهل قراءته.
🎯 مناسب لـ:
المتداولين المتأرجحين (Swing Traders): لاكتشاف تقاطعات على الفريمات الكبرى.
المضاربين (Scalpers): باستخدام EMA سريعة على فريمات صغيرة مع تنبيهات فورية.
محللي الفريمات المتعددة: لتأكيد الاتجاه أو الانعكاس بناءً على تقاطع متوسطات من فريمات مختلفة.
✅ مزايا إضافية:
قابل للتخصيص بشكل كامل حسب استراتيجيتك.
مناسب لعدة أساليب: تأكيد الترند، إعادة الدخول، أو إشارات الانعكاس المبكر.
Price for 1 Gold Baht ราคา ทองคำ หนึ่งบาท📘 Indicator Description
🔧 English Version
Name: Price for 1 Gold Baht – ราคา ทองคำ หนึ่งบาท
Short title: 1 Baht Gold (THB)
Purpose:
This indicator calculates and visualizes the real-time price of 1 Thai Gold Baht (15.244 grams) based on the global gold price (XAU/USD) and the USD/THB exchange rate. It allows users to simulate the domestic Thai gold price with customizable inputs for gold weight and purity.
What it does:
Retrieves live gold price per troy ounce in USD (XAU/USD) Retrieves the current USD to Thai Baht exchange rate (USD/THB)
Converts the value into Thai Baht using:
User-defined weight in grams (default: 15.244 g)
User-defined purity in % (default: 96.5% for standard Thai gold)
Displays the result as a real-time chart line
Adds reference values to the Data Window for detailed tracking
Ideal for:
Traders who want to monitor local Thai gold price movements in global markets Analysts comparing spot gold to domestic bullion prices Anyone needing a precise, configurable conversion of international gold data into local Thai currency
📘 คำอธิบายอินดิเคเตอร์
🔧 ภาษาไทย
ชื่อ: ราคา ทองคำ หนึ่งบาท – Price for 1 Gold Baht
ชื่อย่อ: 1 Baht Gold (THB)
วัตถุประสงค์:
อินดิเคเตอร์นี้ออกแบบมาเพื่อแสดงราคาทองคำไทย 1 บาท (น้ำหนัก 15.244 กรัม) แบบเรียลไทม์ โดยใช้ราคาทองคำสากล (XAU/USD) และอัตราแลกเปลี่ยน USD/THB พร้อมทั้งให้ผู้ใช้สามารถปรับแต่งค่าน้ำหนักและความบริสุทธิ์ของทองได้ตามต้องการ
สิ่งที่อินดิเคเตอร์นี้ทำ:
ดึงราคาทองคำต่อทรอยออนซ์ในรูปแบบ USD (XAU/USD) แบบเรียลไทม์
ดึงอัตราแลกเปลี่ยน USD → บาท (USD/THB)
คำนวณราคาทองคำไทยโดยใช้: - น้ำหนักทองที่กำหนดโดยผู้ใช้ (ค่าเริ่มต้น 15.244 กรัม) - ความบริสุทธิ์ของทองที่กำหนดได้ (ค่าเริ่มต้น 96.5% สำหรับทองไทย) แสดงผลราคาทองคำ 1 บาทในรูปแบบกราฟเส้น แสดงข้อมูลเสริมใน Data Window เช่น ราคาทองสากล อัตราแลกเปลี่ยน และข้อมูลการคำนวณ
เหมาะสำหรับ:
นักเทรดที่ต้องการติดตามราคาทองคำไทยจากความเคลื่อนไหวในตลาดโลก
นักวิเคราะห์ที่เปรียบเทียบราคาทองคำ Spot กับราคาทองคำภายในประเทศ
ผู้ใช้งานที่ต้องการแปลงข้อมูลทองคำระหว่างประเทศให้เป็นราคาท้องถิ่นอย่างแม่นยำ
💡 Tip:
To use this script: Add it to any chart Customize gold weight or purity (if needed) Observe how international gold price movements translate to Thai domestic gold prices
3 Zero Lag + 3 Moving Averages + 3 RVWAPThe "3 Zero Lag + 3 Moving Averages + 3 RVWAP" (ZMR) indicator combines three groups of tools for technical analysis.
1. Three Customizable Moving Averages (MAs):
Configuration for Each MA:
Choice of 7 types (SMA, EMA, WMA, HMA, VWMA, LSMA, SMMA).
Independent periods and price sources for each line.
Visualization:
MA1 (Blue), MA2 (Red), MA3 (Green).
2. Three Zero Lag EMAs (ZLEMA) with Individual Settings:
Lag Reduction: Corrects traditional EMA lag using:
Adjusted Price = 2 * Current Price - Price .
Flexibility:
Unique lengths (20, 50, 70) and individual price sources for each ZLEMA (HLC3, HL2, Close, etc.).
Colors:
ZLEMA1 (Yellow), ZLEMA2 (Orange), ZLEMA3 (Purple).
3. Three Rolling VWAPs with Custom Parameters:
Volume-Weighted Average Price (VWAP):
Calculated for three periods (20, 50, 100) with dedicated price sources for each VWAP.
Colors:
VWAP1 (Pink), VWAP2 (Light Blue), VWAP3 (Neon Green).
ICT Macro H1"H1 Candle Time Box" is a custom TradingView indicator that highlights a configurable time window surrounding the close of each 1-hour (H1) candle. The indicator draws a transparent box 15 minutes before and after each H1 candle close (by default), helping traders visualize time-based reaction zones.
🔍 Features:
Custom time window: Users can set how many minutes before and after the H1 close the box should appear.
Dynamic positioning: Boxes are drawn slightly above the candles to avoid overlap with price bars.
Live time labels: Each box displays its time range (e.g., "08:45 - 09:15") based on the start and end time of the zone.
Auto-cleaning: Only a limited number of recent boxes (default: 5) are shown, keeping the chart clean.
Requires 1-minute chart for precise timing.
This tool is especially helpful for intraday traders to identify areas of interest or market reactions before and after key hourly closes.
Custom MACD//@version=5
indicator("Custom MACD", overlay=false)
fastLength = input.int(8, title="Fast EMA Length")
slowLength = input.int(21, title="Slow EMA Length")
signalSmoothing = input.int(5, title="Signal Smoothing")
= ta.macd(close, fastLength, slowLength, signalSmoothing)
plot(macdLine, color=color.blue, title="MACD Line")
plot(signalLine, color=color.red, title="Signal Line")
plot(histLine, style=plot.style_histogram, color=histLine >= 0 ? color.green : color.red, title="Histogram")
Custom Opening Range Breakout (IST, Fixed)This script is designed to:
Calculate and visualize the Opening Range (OR) for any session using Indian Standard Time (IST)
Automatically plot breakout levels (A and C) based on a user-defined percentage buffer
Draw persistent horizontal lines from the OR candle to the end of the trading day
Reset daily, drawing a fresh set of levels for each new session
Returns by Market SessionThe indicator displays the trading sessions of New York, London, and Asia, along with a Misc option for any other desired timeframe. There is also a returns table that shows the returns by session of the previous 7-day, 14-day, and 28-day periods.
ZLEMA + Custom Momentum Cross v6.6 [CP Base]This script uses Zema for 9, 20, 50 which can be configured. Also, displays Zema of 15 min to show the 15min trend.
Also, uses Momentum code from ChartPrime.
When both momentum and zema alignment is there, we can trade.
Price Channel MarkerThis indicator identifies a dynamic price channel based on the most relevant recent price action. It draws two horizontal lines:
* 🔴 Red Line – Marks the high of the most recent red candle (bearish) whose high is just below the current price. It selects the red candle with the high closest in price to the current close, and ensures it is from a valid historical context (ignoring recent highs above the current price).
* 🟢 Green Line – Marks the low of the most recent green candle (bullish) whose low is just above the current price, also selected based on proximity to the current price.
Together, these two lines define a potential price compression zone or "trap" area — showing where price may currently be trading between recent supply (red candle) and demand (green candle). The lines update dynamically and extend into the future to help visualize breakout or rejection levels.
Use Cases:
* Spot potential breakout zones.
* Define short-term support and resistance.
* Filter for entries in range-bound or squeeze conditions.
Customization:
* Adjustable lookback range (up to 5000 bars).
* Colors and line style are easily customizable.
kkADXLibrary "kkADX"
TODO: add library description here
fun(x)
TODO: add function description here
Parameters:
x (float) : TODO: add parameter x description here
Returns: TODO: add what function returns
Dmarc Multi MAsMultiple MA's on a single chart.
You can add up to 10 MA's, either EMA or SMA per indicator instance.
6 Session Boxes with 15m ORB and Midline (Fixed)Proper ORB handling (first 15 minutes starting exactly from session start).
Make sure ORB, Midline stay inside the session box perfectly.
Fix session crossing midnight issue automatically.
Clean code structure and reduce bugs.