Nadaraya-Watson Envelope Strategy//@version=6
// This work is licensed under a Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) creativecommons.org
// © LuxAlgo - Modified for strategy testing
strategy("Nadaraya-Watson Envelope Strategy", "NWE Strat", overlay = true, max_lines_count = 500, max_labels_count = 500, max_bars_back=500, initial_capital = 10000, commission_type = strategy.commission.percent, commission_value = 0.1, default_qty_type = strategy.percent_of_equity, default_qty_value = 100, calc_on_every_tick = true)
//------------------------------------------------------------------------------
//Settings
//-----------------------------------------------------------------------------{
h = input.float(8.,'Bandwidth', minval = 0)
mult = input.float(3., minval = 0)
src = input(close, 'Source')
repaint = input.bool(false, 'Repainting Smoothing', tooltip = 'Repainting is an effect where the indicators historical output is subject to change over time. Disabling repainting will cause the indicator to output the endpoints of the calculations')
// Strategy Settings
// 과거 날짜로 변경
startDate = input.time(timestamp("2020-01-01"), "Start Date")
endDate = input.time(timestamp("2023-12-31"), "End Date")
contractSize = input.float(1.0, "Contract Size", minval=0.1, step=0.1)
takeProfitPct = input.float(3.0, "Take Profit %", minval=0.1, step=0.1)
stopLossPct = input.float(2.0, "Stop Loss %", minval=0.1, step=0.1)
// Enable/disable take profit and stop loss
useTakeProfit = input.bool(true, "Use Take Profit")
useStopLoss = input.bool(true, "Use Stop Loss")
//Style
upCss = input.color(color.teal, 'Colors', inline = 'inline1', group = 'Style')
dnCss = input.color(color.red, '', inline = 'inline1', group = 'Style')
//-----------------------------------------------------------------------------}
//Functions
//-----------------------------------------------------------------------------{
//Gaussian window
gauss(x, h) => math.exp(-(math.pow(x, 2)/(h * h * 2)))
//-----------------------------------------------------------------------------}
//Append lines
//-----------------------------------------------------------------------------{
n = bar_index
var ln = array.new_line(0)
if barstate.isfirst and repaint
for i = 0 to 499
array.push(ln,line.new(na,na,na,na))
//-----------------------------------------------------------------------------}
//End point method
//-----------------------------------------------------------------------------{
var coefs = array.new_float(0)
var den = 0.
if barstate.isfirst and not repaint
for i = 0 to 499
w = gauss(i, h)
coefs.push(w)
den := coefs.sum()
out = 0.
float upper = na
float lower = na
float mae = na
if not repaint
for i = 0 to 499
out += src * coefs.get(i)
out /= den
mae := ta.sma(math.abs(src - out), 499) * mult
upper := out + mae
lower := out - mae
else
// 리페인팅 모드에서도 밴드 계산 수행
sma = ta.sma(src, 20)
stdev = ta.stdev(src, 20)
upper := sma + stdev * mult
lower := sma - stdev * mult
//-----------------------------------------------------------------------------}
//Compute and display NWE
//-----------------------------------------------------------------------------{
float y2 = na
float y1 = na
nwe = array.new(0)
if barstate.islast and repaint
sae = 0.
//Compute and set NWE point
for i = 0 to math.min(499,n - 1)
sum = 0.
sumw = 0.
//Compute weighted mean
for j = 0 to math.min(499,n - 1)
w = gauss(i - j, h)
sum += src * w
sumw += w
y2 := sum / sumw
sae += math.abs(src - y2)
nwe.push(y2)
sae := sae / math.min(499,n - 1) * mult
for i = 0 to math.min(499,n - 1)
// Fix for the bool vs int error - use modulo comparison instead of direct assignment
isEvenIndex = i % 2 == 0
if not isEvenIndex // This is equivalent to if i%2 but uses a proper boolean
line.new(n-i+1, y1 + sae, n-i, nwe.get(i) + sae, color = upCss)
line.new(n-i+1, y1 - sae, n-i, nwe.get(i) + sae, color = dnCss)
if src > nwe.get(i) + sae and src < nwe.get(i) + sae
label.new(n-i, src , '▼', color = color(na), style = label.style_label_down, textcolor = dnCss, textalign = text.align_center)
if src < nwe.get(i) - sae and src > nwe.get(i) - sae
label.new(n-i, src , '▲', color = color(na), style = label.style_label_up, textcolor = upCss, textalign = text.align_center)
y1 := nwe.get(i)
//-----------------------------------------------------------------------------}
//Dashboard
//-----------------------------------------------------------------------------{
var tb = table.new(position.top_right, 1, 1
, bgcolor = #1e222d
, border_color = #373a46
, border_width = 1
, frame_color = #373a46
, frame_width = 1)
if repaint
tb.cell(0, 0, 'Repainting Mode Enabled', text_color = color.white, text_size = size.small)
//-----------------------------------------------------------------------------}
//Plot
//-----------------------------------------------------------------------------{
float upperBand = na
float lowerBand = na
upperBand := upper
lowerBand := lower
plot(upperBand, 'Upper', upCss)
plot(lowerBand, 'Lower', dnCss)
//Crossing Arrows
plotshape(ta.crossunder(close, lowerBand) ? low : na, "Crossunder", shape.labelup, location.absolute, color(na), 0 , text = '▲', textcolor = upCss, size = size.tiny)
plotshape(ta.crossover(close, upperBand) ? high : na, "Crossover", shape.labeldown, location.absolute, color(na), 0 , text = '▼', textcolor = dnCss, size = size.tiny)
//-----------------------------------------------------------------------------}
// Strategy Implementation
//-----------------------------------------------------------------------------{
// Set date filter
inDateRange = time >= startDate and time <= endDate
// Trading Conditions
longCondition = ta.crossunder(close, lowerBand) and inDateRange
shortCondition = ta.crossover(close, upperBand) and inDateRange
// Entry conditions
if (longCondition)
strategy.entry("Long", strategy.long, qty=contractSize)
if (shortCondition)
strategy.entry("Short", strategy.short, qty=contractSize)
// Calculate Take Profit and Stop Loss levels
longTakeProfit = strategy.position_avg_price * (1 + takeProfitPct / 100)
longStopLoss = strategy.position_avg_price * (1 - stopLossPct / 100)
shortTakeProfit = strategy.position_avg_price * (1 - takeProfitPct / 100)
shortStopLoss = strategy.position_avg_price * (1 + stopLossPct / 100)
// Exit conditions
isInLongPosition = strategy.position_size > 0
isInShortPosition = strategy.position_size < 0
// Apply take profit and stop loss if enabled
if (isInLongPosition)
if (useTakeProfit and useStopLoss)
strategy.exit("Long TP/SL", "Long", limit=longTakeProfit, stop=longStopLoss)
else if (useTakeProfit)
strategy.exit("Long TP", "Long", limit=longTakeProfit)
else if (useStopLoss)
strategy.exit("Long SL", "Long", stop=longStopLoss)
if (isInShortPosition)
if (useTakeProfit and useStopLoss)
strategy.exit("Short TP/SL", "Short", limit=shortTakeProfit, stop=shortStopLoss)
else if (useTakeProfit)
strategy.exit("Short TP", "Short", limit=shortTakeProfit)
else if (useStopLoss)
strategy.exit("Short SL", "Short", stop=shortStopLoss)
// Plot entry/exit signals
plotshape(longCondition, "Long Signal", shape.triangleup, location.belowbar, color.green, size=size.small)
plotshape(shortCondition, "Short Signal", shape.triangledown, location.abovebar, color.red, size=size.small)
//-----------------------------------------------------------------------------}
Bill Williams-Indikatoren
Bi Trend signalauto bot MT5 for XAU, BTC ETH, liên hệ tôi để biết thêm chi tiết cho các hạng mục coppy trade
JPMorgan Collar LevelsJPMorgan Collar Levels – SPX/SPY Auto-Responsive (Quarterly Logic)
This script tracks the JPMorgan Hedged Equity Fund collar strategy, one of the most watched institutional positioning tools on SPX/SPY. The strategy rolls quarterly and often acts as a magnet or resistance/support zone for price.
[TABLE] Moving Average Stage Indicator Table📈 MA Stage Indicator Table
🧠 Overview:
This script analyzes market phases based on moving average (MA) crossovers, classifying them into 6 distinct stages and displaying statistical summaries for each.
🔍 Key Features:
• Classifies market condition into Stage 1 to Stage 6 based on the relationship between MA1 (short), MA2 (mid), and MA3 (long)
• Provides detailed stats for each stage:
• Average Duration
• Average Width (MA distance)
• Slope (Angle) - High / Low / Average
• Shows current stage details in real-time
• Supports custom date range filtering
• Choose MA type: SMA or EMA
• Optional background coloring for stages
• Clean summary table displayed on the chart
RedK VADER - Volume-Accelerated Directional Energy RatioRedK VADER - Volume-Accelerated Directional Energy Ratio
Overview
RedK VADER is an indicator that analyzes market trends by calculating the energy ratio based on price movement and volume. It utilizes Zero Lag EMA smoothing to provide faster and more responsive signals.
Features
✅ Considers both price action and volume: Calculates the energy ratio of upward and downward movements to assess market strength.
✅ Zero Lag Smoothing: Uses EMA-based smoothing to minimize lag and improve responsiveness.
✅ Histogram Display: Helps visualize trend strength and potential reversals.
✅ Simple yet effective: Uses short-term and long-term energy differences to generate intuitive trade signals.
How to Use
📌 Blue Line (RedK VADER): Indicates trend direction and strength.
📌 Orange Line (Signal Line): A smoothed version of VADER; crossovers provide trade signals.
📌 Histogram (Green Bars): Represents the difference between VADER and the signal line. When crossing the zero line, it may indicate a trend reversal.
Trade Signals
🔵 Buy Signal: When RedK VADER crosses above the signal line.
🔴 Sell Signal: When RedK VADER crosses below the signal line.
⚡ Trend Strength: The larger the histogram bars, the stronger the trend.
Use this indicator to gain deeper market insights and enhance your trading decisions! 🚀
💎 Amiqas F-22 Diamond Algo 💎Amiqas F-22 Diamond Algo 💎
By Waqas Abdul Salam | Empire of Waqas
🔥 Description:
The Amiqas F-22 Diamond Algo is a next-level institutional-grade TradingView indicator combining Smart Money Concepts (SMC), Smart Entry Signals, Market Structure, Trend Clouds, and Adaptive Risk Management – built for serious traders who want precision, clarity, and power in their decision-making.
Designed to be your personal AI-powered analyst, it detects smart buy/sell zones, multi-timeframe trend shifts, and delivers smart trailing stop logic, adaptive volatility filtering, and supply-demand rejection blocks, with a complete risk-to-reward auto-mapping system.
✨ Key Features:
✅ Smart Entry Signals
• Buy/Sell with trend confirmation
• Smart-only signals based on 200 EMA, SMC, and price action
✅ SMC + Market Structure Zones
• Auto Support/Resistance + Supply/Demand
• BOS / CHoCH detection & visual labels
• Dynamic rejection analysis with volume filters
✅ Advanced Dashboard (Multi-Timeframe)
• Real-time trend detection (M1 to D1)
• Institutional activity & volatility zones
• Market session display (London, NY, Tokyo, Sydney)
• Sentiment + Volume health display
✅ Trend Clouds & Smart Trailing Stops
• Dynamic trend overlays: Cirrus & Comulus
• SuperTrend + MA + ATR-based trend filters
• Auto Fib TP lines & trailing stop logic
✅ Auto SL/TP & Risk Management Zones
• 1:1 / 2:1 / 3:1 TP auto-labels
• ATR-based adaptive SL
• Chart-annotated entry, SL, and TP
✅ Alerts + Visual Styling
• Custom alerts for buy/sell and trendline breaks
• Clean, modern design – color-coded for clarity
• Built-in momentum, volatility, volume logic
✅ Built For Scalping, Swing & Position Trading
• Sensitivity adjustable
• Works on all pairs (Forex, Crypto, Stocks, Gold, etc.)
🔧 Best Timeframes:
• 5M, 15M, 1H, 4H, 1D
• Works with Scalping, Intraday, and Swing styles
🧠 Powered By:
Amiqas World Gold Labs
Developed by Waqas Abdul Salam – backed by deep market structure experience, AI logic, and adaptive SMC mapping.
📨 Contact & Community:
Join Telegram 👉 t.me
Website 👉 empireofwaqas.com
Email 👉 waqasabdulsalamllc@icloud.com
GainzAlgo Pro// © GainzAlgo
//@version=5
indicator('GainzAlgo Pro', overlay=true, max_labels_count=500)
candle_stability_index_param = input.float(0.5, 'Candle Stability Index', 0, 1, step=0.1, group='Technical', tooltip='Candle Stability Index measures the ratio between the body and the wicks of a candle. Higher - more stable.')
rsi_index_param = input.int(50, 'RSI Index', 0, 100, group='Technical', tooltip='RSI Index measures how overbought/oversold is the market. Higher - more overbought/oversold.')
candle_delta_length_param = input.int(5, 'Candle Delta Length', 3, group='Technical', tooltip='Candle Delta Length measures the period over how many candles the price increased/decreased. Higher - longer period.')
disable_repeating_signals_param = input.bool(false, 'Disable Repeating Signals', group='Technical', tooltip='Removes repeating signals. Useful for removing clusters of signals and general clarity')
GREEN = color.rgb(29, 255, 40)
RED = color.rgb(255, 0, 0)
TRANSPARENT = color.rgb(0, 0, 0, 100)
label_size = input.string('normal', 'Label Size', options= , group='Cosmetic')
label_style = input.string('text bubble', 'Label Style', , group='Cosmetic')
buy_label_color = input(GREEN, 'BUY Label Color', inline='Highlight', group='Cosmetic')
sell_label_color = input(RED, 'SELL Label Color', inline='Highlight', group='Cosmetic')
label_text_color = input(color.white, 'Label Text Color', inline='Highlight', group='Cosmetic')
stable_candle = math.abs(close - open) / ta.tr > candle_stability_index_param
rsi = ta.rsi(close, 14)
bullish_engulfing = close < open and close > open and close > open
rsi_below = rsi < rsi_index_param
decrease_over = close < close
bull = bullish_engulfing and stable_candle and rsi_below and decrease_over and barstate.isconfirmed
bearish_engulfing = close > open and close < open and close < open
rsi_above = rsi > 100 - rsi_index_param
increase_over = close > close
bear = bearish_engulfing and stable_candle and rsi_above and increase_over and barstate.isconfirmed
var last_signal = ''
if bull and (disable_repeating_signals_param ? (last_signal != 'buy' ? true : na) : true)
if label_style == 'text bubble'
label.new(bull ? bar_index : na, low, 'BUY', color=buy_label_color, style=label.style_label_up, textcolor=label_text_color, size=label_size)
else if label_style == 'triangle'
label.new(bull ? bar_index : na, low, 'BUY', yloc=yloc.belowbar, color=buy_label_color, style=label.style_triangleup, textcolor=TRANSPARENT, size=label_size)
else if label_style == 'arrow'
label.new(bull ? bar_index : na, low, 'BUY', yloc=yloc.belowbar, color=buy_label_color, style=label.style_arrowup, textcolor=TRANSPARENT, size=label_size)
last_signal := 'buy'
if bear and (disable_repeating_signals_param ? (last_signal != 'sell' ? true : na) : true)
if label_style == 'text bubble'
label.new(bear ? bar_index : na, high, 'SELL', color=sell_label_color, style=label.style_label_down, textcolor=label_text_color, size=label_size)
else if label_style == 'triangle'
label.new(bear ? bar_index : na, high, 'SELL', yloc=yloc.abovebar, color=sell_label_color, style=label.style_triangledown, textcolor=TRANSPARENT, size=label_size)
else if label_style == 'arrow'
label.new(bear ? bar_index : na, high, 'SELL', yloc=yloc.abovebar, color=sell_label_color, style=label.style_arrowdown, textcolor=TRANSPARENT, size=label_size)
last_signal := 'sell'
alertcondition(bull, 'BUY Signals', 'New signal: BUY')
alertcondition(bear, 'SELL Signals', 'New signal: SELL')
Forex.lk with Fake Cross & Trend Confirmation"Based on the 3-line strategy, I added a few ideas to it. Mainly working with the 1H and 4H timeframes, but short signals can also be taken from the 15-minute timeframe." visit forex.lk
Beyond TrackBeyond Track is a powerful tool designed to assist traders in identifying key market trends, entry and exit points, and potential reversals. This indicator combines to provide clear and actionable signals for both novice and experienced traders.
Punk Algo [Signals and Trends]Amiqas PunkAlgo Pro is a next-gen all-in-one trading system that blends smart signal detection, multi-timeframe trend logic, and intelligent overlays for precision entries and clean visuals.
Built for traders who want a fast, stylish, and data-rich interface.
⸻
Key Features:
• Buy/Sell Signals with dynamic market detection logic
• Multi-Timeframe Trend Dashboard from 1H to Daily
• RSI, WaveTrend & Volume Divergence Filters
• Take Profit & Stop Loss Zones with auto labeling
• Smart Momentum Candles with ATR + Supertrend logic
• Intelligent Trend Zones with adaptive cloud shading
• Real-time Alerts for signals, TP, RSI, divergences
⸻
Visuals meet performance — built for speed, clarity, and jet-strike entries.
Created by Waqas Abdul Salam (Amiqas Series)
“Ride the momentum. Trust the logic. Trade like a Raptor.”
⸻
✅ Suggested Tags:
Signals, Trend, Smart Money, RSI, WaveTrend, Multi-Timeframe, Supertrend, Candle Overlay, Dashboard, Amiqas, PunkAlgo
SV Strategy📈 Quick Scalping Indicator
This custom-built indicator is designed specifically for quick scalping and fast-paced intraday trading. It helps traders spot short-term price movements and identify high-probability entry and exit points with ease.
🔍 Key Features:
Real-time Buy/Sell signals based on momentum and short-term price action.
Optimized for 1-min, 3-min, 5-min, 1-hr and 4-hr timeframes.
Effective in both trending and ranging market conditions.
Lightweight and minimal — keeps your chart clean and focused.
✅ How to Use:
Use this tool alongside basic support/resistance and volume for best results.
Ideal for scalping BTC, ETH, and high-liquidity altcoins on spot or futures.
Avoid trading during high-impact news events for more accurate signals.
⚠️ Disclaimer:
This indicator is for educational and informational purposes only. Always do your own research and use proper risk management when trading.
Williams Alligator + Adaptive RSITrend base indicator. Most powerful to use in daily timeframe as the confluence, and entry on the 4 hrs.
Daily/Weekly/Monthly Highs & EMAs Levels📄 Description:
This smart and efficient indicator is designed to highlight critical market levels by plotting:
✅ Previous Highs and Lows from the Daily, Weekly, and Monthly timeframes.
✅ 200 & 50 EMA levels from both the current chart and an external ticker (e.g., CBOE:SPX).
✅ Labels and color customization for all levels.
✅ EMA levels are fixed from higher timeframes, meaning they stay accurate regardless of your current chart timeframe.
💡 Why this matters:
Some tickers (like indices or ETFs) may show gaps or price differences across different data providers or instruments. That’s why pulling EMA levels from a secondary ticker (like SPX) helps compare behavior and make more informed decisions.
🎯 Ideal for:
Price action traders
EMA crossover strategies
Key level confluence spotting
Institutional level monitoring
Important Levels (Arabic Version)Important Levels (Arabic Version)
All-in-One Market Context Indicator
This indicator highlights key technical levels to guide your trading decisions with confidence and clarity. It includes:
✅ Dynamic Daily, Weekly, and Monthly Highs & Lows
Clearly labeled price levels to help you identify support/resistance zones at a glance.
✅ Fixed 200 & 50 EMAs from the current chart and external tickers
View essential trend indicators with customizable colors for both daily and hourly resolutions.
✅ Arabic Labels & Custom Transparency
Arabic-language support for all chart labels and the ability to control label visibility with transparency settings.
✅ Perfect for Technical Traders
Combine trend-following with level-based strategies — all in one compact, clean visual layout.
ITACHI ExitHTC will have to get you up from the bottom is not going through all these questions can also provide us your thoughts
ITACHI EMASItachi in all I have is about what was this email will not let go about how you can see it as possible in order that was just a few things
ITACHIHitachi in your case in case you want a little more about what was a great time in this time to take
ITACHI ExitHitachi is the best thing to say is no longer available and if you are not going to have to do a few things for a while to
Supply & Demand Zones + Order Block (Pro Fusion) SuroLevel up your trading edge with this all-in-one Supply and Demand Zones + Order Block TradingView indicator, built for precision traders who focus on price action and smart money concepts.
🔍 Key Features:
Automatic detection of Supply & Demand Zones based on refined swing highs and lows
Dynamic Order Block recognition with customizable thresholds
Highlights Breakout signals with volume confirmation and trend filters
Built-in EMA 50 trend detection
Take Profit (TP1, TP2, TP3) projection levels
Clean visual labels for Demand, Supply, and OB zones
Uses smart box plotting with long extended zones for better zone visibility
🔥 Ideal for:
Traders who follow Smart Money Concepts (SMC)
Supply & Demand strategy practitioners
Breakout & Retest pattern traders
Scalpers, swing, and intraday traders using Order Flow logic
📈 Works on all markets: Forex, Crypto, Stocks, Indices
📊 Recommended timeframes: M15, H1, H4, Daily
✅ Enhance your trading strategy using this powerful zone-based script — bringing structure, clarity, and automation to your chart.
#SupplyAndDemand #OrderBlock #TradingViewScript #SmartMoney #BreakoutStrategy #TPProjection #ForexIndicator #SMC
CZ Basic Strategy V1 Manual1. Indicator Components & Features
This indicator includes:
Buy/Sell Signals using ATR-based trailing stop.
Linear Regression Candles (Optional smoothing of price data).
Market Sentiment Dashboard displaying biases across multiple timeframes.
Multiple Moving Averages (MA) with customizable settings.
2. How to Use the Indicator
A. Configuring Buy/Sell Signals
Signal Smoothing: Adjust the "Signal Smoothing" input to control signal sensitivity.
Heikin Ashi Option: Enable “Signals from Heikin Ashi Candles” if you want signals to be based on Heikin Ashi data.
ATR Period: Adjust the ATR period to fine-tune the trailing stop.
Key Value: Increases or decreases sensitivity for trade signals.
🔹 BUY Signal: Appears when the price moves above the ATR trailing stop.
🔻 SELL Signal: Appears when the price moves below the ATR trailing stop.
B. Market Sentiment Dashboard
This dashboard helps you see market trends across different timeframes (1min, 3min, 5min, etc.).
Green = Bullish trend (Upward momentum)
Red = Bearish trend (Downward momentum)
Blue = Neutral (Sideways market)
You can adjust:
Panel Position (Top, middle, or bottom of the chart)
Sentiment Colors (Customizable bullish/bearish colors)
Label Size (Adjust text size for better visibility)
C. Customizing Moving Averages
The script includes four customizable moving averages:
Choose the MA Type: SMA, EMA, WMA, VWMA, etc.
Adjust the Length: Shorter MAs react faster; longer ones smooth out trends.
Set the Color: Differentiate each MA visually.
You can enable or disable each MA as needed.
3. Alerts & Notifications
The script provides buy/sell alerts whenever a new signal is detected.
Alerts are also set for market sentiment changes on multiple timeframes.
To activate:
Go to Alerts in TradingView.
Select "CZ Basic Strategy Signal" to get notified of buy/sell conditions.
Set alerts for sentiment shifts in different timeframes.
4. Recommended Trading Approach
Trend Confirmation: Use MAs and sentiment dashboard to validate trades.
Avoid False Signals: Increase the ATR period for better filtering.
Timeframe Selection: The strategy works on all timeframes but is best tested on 15m, 1H, and 4H.
5. Summary
✅ Use Buy/Sell signals to identify trade entries.
✅ Monitor the Market Sentiment Dashboard for trend direction across timeframes.
✅ Utilize customizable Moving Averages for trend confirmation.
✅ Set up alerts to receive real-time notifications of trade opportunities.
5 days ago
Release Notes
1. Indicator Components & Features
This indicator includes:
Buy/Sell Signals using ATR-based trailing stop.
Linear Regression Candles (Optional smoothing of price data).
Market Sentiment Dashboard displaying biases across multiple timeframes.
Multiple Moving Averages (MA) with customizable settings.
2. How to Use the Indicator
A. Configuring Buy/Sell Signals
Signal Smoothing: Adjust the "Signal Smoothing" input to control signal sensitivity.
Heikin Ashi Option: Enable “Signals from Heikin Ashi Candles” if you want signals to be based on Heikin Ashi data.
ATR Period: Adjust the ATR period to fine-tune the trailing stop.
Key Value: Increases or decreases sensitivity for trade signals.
🔹 BUY Signal: Appears when the price moves above the ATR trailing stop.
🔻 SELL Signal: Appears when the price moves below the ATR trailing stop.
B. Market Sentiment Dashboard
This dashboard helps you see market trends across different timeframes (1min, 3min, 5min, etc.).
Green = Bullish trend (Upward momentum)
Red = Bearish trend (Downward momentum)
Blue = Neutral (Sideways market)
You can adjust:
Panel Position (Top, middle, or bottom of the chart)
Sentiment Colors (Customizable bullish/bearish colors)
Label Size (Adjust text size for better visibility)
C. Customizing Moving Averages
The script includes four customizable moving averages:
Choose the MA Type: SMA, EMA, WMA, VWMA, etc.
Adjust the Length: Shorter MAs react faster; longer ones smooth out trends.
Set the Color: Differentiate each MA visually.
You can enable or disable each MA as needed.
3. Alerts & Notifications
The script provides buy/sell alerts whenever a new signal is detected.
Alerts are also set for market sentiment changes on multiple timeframes.
To activate:
Go to Alerts in TradingView.
Select "CZ Basic Strategy Signal" to get notified of buy/sell conditions.
Set alerts for sentiment shifts in different timeframes.
4. Recommended Trading Approach
Trend Confirmation: Use MAs and sentiment dashboard to validate trades.
Avoid False Signals: Increase the ATR period for better filtering.
Timeframe Selection: The strategy works on all timeframes but is best tested on 15m, 1H, and 4H.
A. Fractal Detection & Trendline Drawing
It detects fractal highs and lows using ta.pivothigh() and ta.pivotlow().
Automatically connects recent fractals with trendlines.
The trendlines are categorized into:
Recent trendlines (colored brightly).
Historical trendlines (older ones fade in color).
How to Adjust Trendline Settings
Go to the Auto Trendlines section in the input settings:
"Fractal Period" (n) → Controls sensitivity (higher values reduce signals).
"Recent Line" Color & Width → Adjusts appearance of fresh trendlines.
"Historical Line" Color & Width → Adjusts older trendlines.
"Max Pair of Lines" → Limits the number of active trendlines.
"Extend Lines" (Right or Both Ways) → Controls how far lines extend.
B. Cross Detection (When Price Crosses Trendlines)
Detects when the closing price crosses above/below the most recent trendlines.
Plots "X" markers at crossing points if enabled.
Sends an alert notification when a cross happens.
How to Customize Cross Settings
Show Crosses → Enable/Disable cross markers.
Cross Colors → Customize colors for cross-above (Green) and cross-below (Red).
Max Crossed Lines → Limits the number of cross indicators shown.
C. Support & Resistance (SR) Detection
Finds strong support and resistance zones using pivot highs/lows over a loopback period.
Draws horizontal support/resistance levels based on strength.
How to Adjust SR Settings
Go to the Support and Resistance section:
Pivot Period (rb) → Determines pivot strength.
Loopback Period (prd) → Defines how far back to look for levels.
S/R Strength (nump) → Filters only strong S/R levels.
Channel Width (ChannelW) → Adjusts how wide the support/resistance zones are.
D. Trendline Slope & Log Scale
Slope Calculation → Computes slope of trendlines for predictions.
Log Scale Mode → Ensures correct calculations on logarithmic charts.
How to Enable Log Scale
Enable Log Scale Mode in the settings.
5. Summary
✅ Use Buy/Sell signals to identify trade entries.
✅ Monitor the Market Sentiment Dashboard for trend direction across timeframes.
✅ Utilize customizable Moving Averages for trend confirmation.
✅ Set up alerts to receive real-time notifications of trade opportunities.
Marcador de Entradas Long y ShortExplanation of the Script
Definition of Timeframe:
The variable timeframeCondition ensures that the signals only appear on the 1-hour ("60") and 30-minute ("30") charts.
Entry Conditions:
As an example, moving average crossovers are used:
longCondition: Detects a bullish crossover between a fast moving average (14 periods) and a slow moving average (28 periods).
shortCondition: Detects a bearish crossover between the same moving averages.
Note: You should replace these conditions with those that correspond to your specific strategy (for example, support/resistance levels, ADX, etc.).
Marking Entries:
Long Entries:
Uses plotshape() with location=location.belowbar to place a green arrow (color=color.green) below the candle.
The style shape.arrowup displays an upward-pointing arrow, and the text "LONG" appears next to the arrow.
Short Entries:
Uses plotshape() with location=location.abovebar to place a red arrow (color=color.red) above the candle.
The style shape.arrowdown displays a downward-pointing arrow, and the text "SHORT" appears next to the arrow.
The signals are only displayed when timeframeCondition is true (i.e., on 1H or 30M charts).
Johnny 65I do this one base on ema 200 ,50 and rsi
The green triangle mean it have big percentage it will go up