Session TPO Profile - 3 SessionsSession TPO Profile - 3 Sessions
Session TPO Profile - 3 Sessions
Session TPO Profile - 3 Sessions
Session TPO Profile - 3 Sessions
Session TPO Profile - 3 Sessions
Session TPO Profile - 3 Sessions
Indikator dan strategi
15-Min ConditionThis is very good. We want trading This is very good. We want tradingThis is very good. We want tradingThis is very good. We want tradingThis is very good. We want tradingThis is very good. We want trading
RSI DivergenceMade the rsi divergence appear on the candle.
Look at the indicators and enter long and short after the signal comes out
Make it easier to see by showing up in overlay.
FVG Screener improved (Nephew_Sam_) - Sorted Packed ArraysFVG Screener and has optimization improvements, unsure if working correctly with sorts.
need to investigate, but structure is sound.
StochRSI 50 Overlay
Hello?
Hello, traders.
If you "Follow", you can always get new information quickly.
Please click "Boost".
Have a nice day today.
-------------------------------------
(1D chart)
This is a 1D chart that shows the StochRSI 50 point shown on the 1M, 1W chart above.
-
As a basic property of the chart, it has the property of regressing to the average value.
In that sense, if the StochRSI indicator rises based on the 50 point,
- the strength of the rise becomes stronger, and if it falls,
- the strength of the fall becomes stronger.
In particular, it can be seen that it shows the strongest rise/fall strength when entering the overbought or oversold zone.
I made it displayed on the price chart so that you can see this characteristic more intuitively.
It seems to play a good role as a support and resistance point.
-
Thank you for reading to the end.
I hope you have a successful transaction.
--------------------------------------------------
--------------------------------------------------
안녕하세요?
트레이더 여러분, 반갑습니다.
"팔로우"를 해 두시면, 언제나 빠르게 새로운 정보를 얻으실 수 있습니다.
"부스트" 클릭도 부탁드립니다.
오늘도 좋은 하루되세요.
-------------------------------------
(1D 차트)
위의 1M, 1W 차트에 표시된 StochRSI 50 지점을 표시하여 나타낸 1D 차트입니다.
-
차트의 기본적인 속성으로 평균값으로 회귀하려는 성질을 가지고 있습니다.
그러한 의미에서 볼 때, StochRSI 지표가 50 지점을 기준으로 하여
- 상승한다면 상승 강도가 강해지고,
- 하락한다면 하락 강도가 강해집니다.
특히, 과매수 구간이나 과매도 구간에 진입하였을 때 가장 강한 상승/하락 강도를 나타낸다고 볼 수 있습니다.
이러한 성질을 보다 직관적으로 알 수 있도록 가격 차트 부분에 표시되도록 만들었습니다.
지지와 저항 지점으로 역할을 잘 수행한다고 보여집니다.
-
끝까지 읽어주셔서 감사합니다.
성공적인 거래가 되기를 기원입니다.
--------------------------------------------------
Teamboss BB100 va Keltner Channelsđây là công cụ miễn phí của nhóm, mong nhóm sử dụng ngon lành và kiếm được tiền từ thị trường
DR+MKR Signals – SL la Bandă, TP multiplu & Trailing Stopa simple indicator that can probably help you enjoy it
LBRTY by RichDer Indikator ist für die Liberty Strategie Asia Range mit erweiterten Linien an High und LOW
Ronnie's DikFat Attack - Moving Average Angle/Slope PositionRonnie's DikFat Attack - True Moving Average Angle/Slope Position
Overview
This TradingView indicator, written in Pine Script version 5, injects energy into your chart analysis by calculating and displaying the angles of four moving averages (MAs). It empowers you to customize each MA—choosing both type and length—to suit your trading strategy perfectly.
How It Works
1. User Inputs:
Under the “MA Settings” group, the script offers an intuitive interface where you can define four different moving averages. Each MA can be set to one of several types (SMA, EMA, SMMA, VWMA, Hull, WMA, or TEMA) and assigned a specific length (number of bars).
2. Dynamic Moving Average Calculation:
A dedicated function ( getMA ) selects and computes the appropriate moving average using TradingView’s built-in functions (like ta.ema , ta.sma , etc.). This yields four customized MA series based on your inputs.
3. Calculating the Angle of Momentum:
The script employs a robust function ( calcAngle ) that measures the change between consecutive values of each MA to determine its slope. This slope is then converted into an angle in degrees using the arctangent function, providing a clear and vivid depiction of trend strength and direction.
4. Visualizing the Angles:
Each moving average’s angle is plotted with its own distinct color, enhancing visual clarity. A horizontal line at 0° acts as a reference point, marking the divide between upward and downward momentum.
Potential Uses
Trend Analysis:
The angle measurement offers a dynamic perspective on trend strength. Steep positive angles suggest vigorous upward movement, while steep negative angles indicate strong downward trends.
Signal Confirmation:
By comparing the angles of multiple moving averages, you can quickly spot momentum shifts and crossover points, which may serve as powerful entry or exit signals.
Tailored Strategy Customization:
The flexibility to choose various MA types and lengths allows this tool to adapt seamlessly to different timeframes and trading styles, enhancing its usefulness in diverse market conditions.
Multi-Timeframe ATR Levels by Hitesh2603Description:
"Multi-Timeframe ATR Levels by Hitesh2603" is a versatile and adaptive indicator designed to help traders identify key price levels based on the Average True Range (ATR) from a higher timeframe. The script automatically adapts to the current chart’s timeframe and allows you to customize the higher timeframe for ATR calculations, making it ideal for intraday and swing trading strategies.
The indicator plots upper and lower price levels based on the ATR multiplier, providing clear visual cues for potential profit-taking or exit points. It also includes features like editable timeframe presets , historical level plotting , labels , and alerts , making it a powerful tool for traders of all experience levels.
---
Key Features:
1. Automatic Timeframe Adaptation : - The script automatically detects the current chart’s timeframe and selects the appropriate higher timeframe for ATR calculations.
2. Editable Preset Timeframe Pairs : - Customize the higher timeframe for each chart timeframe directly in the indicator settings.
3. Dynamic ATR-Based Levels :- Plots upper and lower price levels using the formula:
- Upper Level = Current Candle Open + (Previous Candle ATR * Multiplier)
- Lower Level = Current Candle Open - (Previous Candle ATR * Multiplier)
4. Customizable Inputs :
- Adjust ATR length, multiplier, line length, colors, and more.
5. Labels :
- Displays the exact values of the upper and lower levels for easy reference.
6. Historical Levels :
- Optionally plots historical levels for all candles.
7. Alerts :
- Get notified when the price crosses the upper or lower levels.
---
Use Cases:
1. Intraday Trading :
- Use the script on a 5-minute or 15-minute chart with a 1-hour higher timeframe to identify intraday profit-taking or exit points.
2. Swing Trading :
- Use the script on a 1-hour or 4-hour chart with a daily higher timeframe to identify swing trading opportunities.
3. Position Trading :
- Use the script on a daily chart with a weekly higher timeframe to identify key levels for position trading.
4. Breakout Confirmation :
- Use the upper and lower levels as confirmation points for breakouts or reversals.
5. Risk Management :
- Use the levels to set stop-loss or take-profit targets based on market volatility.
---
How to Use:
1. Add the Script to Your Chart :
- Search for "Multi-Timeframe ATR Levels by Hitesh2603" in the TradingView indicator library and add it to your chart.
2. Customize the Settings :
- Adjust the inputs (e.g., ATR length, multiplier, line length, colors, etc.) to suit your trading strategy.
3. Set the Higher Timeframe :
- The script will automatically display an input for the higher timeframe based on the current chart’s timeframe. Customize it as needed.
4. Interpret the Levels :
- The script will plot two horizontal lines (upper and lower levels) on the chart. Use these levels for profit-taking, exits, or breakout confirmation.
5. Enable Alerts :
- Set up alerts to get notified when the price crosses the upper or lower levels.
---
Input Parameters:
1. ATR Length :
- The period used to calculate the ATR (default: 14).
2. ATR Multiplier :
- The multiplier applied to the ATR to calculate the levels (default: 0.65).
3. Line Length :
- The number of candles to extend the lines (default: 10).
4. Show Labels :
- Toggle to display the exact values of the levels (default: true).
5. Show Historical Levels :
- Toggle to plot historical levels for all candles (default: false).
6. Line Colors :
- Customize the colors of the upper and lower levels.
7. Line Width :
- Adjust the thickness of the lines (default: 2).
---
Example:
- Current Chart : 5-minute
- Higher Timeframe : 1-hour
- Previous Hour’s ATR : 4.6
- Current Hour’s Open : 102
- Multiplier : 0.65
Levels :
- Upper Level = 102 + (4.6 * 0.65) = 105.0
- Lower Level = 102 - (4.6 * 0.65) = 99.0
The script will plot horizontal lines at 105.0 and 99.0 on the 5-minute chart.
---
Alerts:
- Price Crosses Upper Level :
- Triggered when the price crosses above the upper level.
- Price Crosses Lower Level :
- Triggered when the price crosses below the lower level.
---
Notes:
- The script is designed to be flexible and adaptable to various trading styles and timeframes.
- Always backtest and validate the indicator with your trading strategy before using it in live trading.
---
Credits:
- Developed by Hitesh2603 .
- Special thanks to the TradingView community for inspiration and support.
Combined Stochastic, ADX & BreakoutThe indicator marks two potential buying points in a trend after a correction:
--- Made by @immortaltraderA find him on twitter ---
First Buy Signal Type:
Requirements:
Price must move above EMA9 first
Must have at least one lower high (correction)
Breakout above previous candle's high
Stop loss: Below the last low
Second Buy Signal Type:
Appears after a blue triangle above the candle (based on closing price)
Represents a deep technical correction (measured by Stochastic) in a strong uptrend (measured by ADX)
Additional requirement: Signal candle must be above EMA9 and above previous candle's high
Stop loss: Below the last low
Exit Strategy:
The sell signal has been removed from the indicator to reduce chart clutter
Better selling methods are recommended, such as selling at new highs
PriceCatch - Previous Hour RangeHi Tradingview community,
Recently I stumbled upon a video on Youtube where the Youtuber was talking about Intraday trading based on 1 hour price range.
Anyone requesting the code was asked to contact over email for the code. So, I thought, this is such a simple script and has no special complex coding involved and why such a show off instead of just sharing it.
So, I decided to write the code myself and it took me under 10 minutes to do it. So, here's the PriceCatch - Previous Hour Range script. It is open source, so you can check it and apply it in your trading strategy.
Remember, this is just a simple range plotter and does not give any signals.
If you want 2 hours range, then simply change 60 to 120. Simple.
So, all the best with your trades.
PriceCatch
H1 Engulfing Detectorthis indicator shows you horizontal lines and a box until a new engulfing trend change candle
it is an educational indicator
All-in-One Multi-Indicator Options Strategy
// This Pine Script™ code is subject to the terms of the Mozilla Public License 2.0 at mozilla.org
// © AlgoTest
//@version=5
indicator("All-in-One Multi-Indicator Options Strategy",shorttitle = "All-in-One", overlay=false)
// Input for Index and Expiry Date
spot = input.string("BANKNIFTY", title = "Spot Symbol", options = , group = "Index")
tooltip_day = "Enter the day of the expiry. Add 0 in front if the day is a single digit. For example: 05 instead of 5"
tooltip_month = "Enter the month of the expiry. Add 0 in front if the month is a single digit. For example: 06 instead of 6"
tooltip_year = "Enter the year of the expiry. Use the last two digits of the year. For example: 24 instead of 2024"
_day = input.string("21", title = "Expiry Day", tooltip = tooltip_day, group="Expiry Date")
_month = input.string("08", title = "Expiry Month", tooltip = tooltip_month, group="Expiry Date")
_year = input.string("24", title = "Expiry Year", tooltip = tooltip_year, group="Expiry Date")
// Input for Strikes
tooltip_ = "You can select any Strike, and choose to include both strikes or just one"
strike_ce = input.int(50800, "Call Strike", tooltip = tooltip_, group = "Select Strike")
strike_pe = input.int(50800, "Put Strike", tooltip = tooltip_, group = "Select Strike")
// Option to include both strikes
strike_choice = input.string("Combined", title = "Select Strike", options = , group = "Select Strike")
// Generate symbols for Call and Put options
var string symbol_CE = spot + _year + _month + _day + "C" + str.tostring(strike_ce)
var string symbol_PE = spot + _year + _month + _day + "P" + str.tostring(strike_pe)
// Request security data for both Call and Put options
= request.security(symbol_CE, timeframe.period, )
= request.security(symbol_PE, timeframe.period, )
call_volume = request.security( symbol_CE, timeframe.period , volume )
put_volume = request.security( symbol_PE, timeframe.period , volume )
var float combined_open = 0
var float combined_high = 0
var float combined_low = 0
var float combined_close = 0
var float combined_vol = 0
// Calculate combined premium based on strike choice
if strike_choice == "Combined"
combined_open := call_open + put_open
combined_close := call_close + put_close
combined_high := math.max(combined_open, combined_close)
combined_low := math.min(combined_open, combined_close)
combined_vol := call_volume + put_volume
else if strike_choice == "Only Call"
combined_open := call_open
combined_close := call_close
combined_high := call_high
combined_low := call_low
combined_vol := call_volume
else
combined_open := put_open
combined_close := put_close
combined_high := put_high
combined_low := put_low
combined_vol := put_volume
// Plot combined premium as a candle
plotcandle(combined_open, combined_high, combined_low, combined_close, title = "Combined Premium", color = combined_close > combined_open ? color.green : color.red)
// Indicator selection
use_ema_crossover = input.bool(true, title = "Use EMA Crossover", group = "Indicators")
use_supertrend = input.bool(false, title = "Use Supertrend", group = "Indicators")
use_vwap = input.bool(false, title = "Use VWAP", group = "Indicators")
use_rsi = input.bool(false, title = "Use RSI", group = "Indicators")
use_sma = input.bool(false, title = "Use SMA", group = "Indicators")
pine_supertrend_value(factor, atrPeriod) =>
src = combined_close
atr = ta.atr(atrPeriod)
upperBand = src + factor * atr
lowerBand = src - factor * atr
prevLowerBand = nz(lowerBand )
prevUpperBand = nz(upperBand )
lowerBand := lowerBand > prevLowerBand or combined_close < prevLowerBand ? lowerBand : prevLowerBand
upperBand := upperBand < prevUpperBand or combined_close > prevUpperBand ? upperBand : prevUpperBand
int _direction = na
float superTrend = na
prevSuperTrend = superTrend
if na(atr )
_direction := 1
else if prevSuperTrend == prevUpperBand
_direction := combined_close > upperBand ? -1 : 1
else
_direction := combined_close < lowerBand ? 1 : -1
superTrend := _direction == -1 ? lowerBand : upperBand
superTrend
pine_supertrend_dir(factor, atrPeriod) =>
src = combined_close
atr = ta.atr(atrPeriod)
upperBand = src + factor * atr
lowerBand = src - factor * atr
prevLowerBand = nz(lowerBand )
prevUpperBand = nz(upperBand )
lowerBand := lowerBand > prevLowerBand or combined_close < prevLowerBand ? lowerBand : prevLowerBand
upperBand := upperBand < prevUpperBand or combined_close > prevUpperBand ? upperBand : prevUpperBand
int _direction = na
float superTrend = na
prevSuperTrend = superTrend
if na(atr )
_direction := 1
else if prevSuperTrend == prevUpperBand
_direction := combined_close > upperBand ? -1 : 1
else
_direction := combined_close < lowerBand ? 1 : -1
superTrend := _direction == -1 ? lowerBand : upperBand
_direction
// Input for EMA lengths
fastLength = input.int(7, 'Fast EMA Length', group = "EMA")
slowLength = input.int(12, 'Slow EMA Length', group = "EMA")
// Input for SuperTrend
atrLength = input.int(7, 'ATR Length', group = "SuperTrend")
fac = input.float(2, 'Factor', group = "SuperTrend")
// Input for RSI
rsi_length = input.int(7, 'Length', group="RSI")
rsi_ob_level = input.int(80, 'Overbought', group="RSI")
rsi_os_level = input.int(20, 'Oversold', group="RSI")
// Input for SMA
sma_length = input.int(7, 'SMA Length', group = "SMA")
var float fast_ema = na
var float slow_ema = na
var float supertrend = na
var int direction = na
var float rsi_val = na
var float sma_val = na
var float sumPriceVolume = 0.0
var float sumVolume = 0.0
var float vwap = 0.0
// Fast EMA
if use_ema_crossover
fast_ema := ta.ema(combined_close, fastLength)
slow_ema := ta.ema(combined_close, slowLength)
// Supertrend
if use_supertrend
supertrend := pine_supertrend_value( fac, atrLength)
direction := pine_supertrend_dir( fac, atrLength)
// VWAP
if use_vwap
if (dayofweek != dayofweek )
sumPriceVolume := 0.0
sumVolume := 0.0
vwap := 0.0
sumPriceVolume += combined_close * combined_vol
sumVolume += combined_vol
vwap := sumPriceVolume / sumVolume
// RSI
if use_rsi
rsi_val := ta.rsi(combined_close, rsi_length)
// SMA
if use_sma
sma_val := ta.sma(combined_close, sma_length)
plot(fast_ema, title='Fast EMA', color=color.blue, linewidth=2)
plot(slow_ema, title='Slow EMA', color=color.yellow, linewidth=2)
plot(direction < 0 ? supertrend : na, "Up direction", color = color.green, style=plot.style_linebr)
plot(direction > 0 ? supertrend : na, "Down direction", color = color.red, style=plot.style_linebr)
plot(use_vwap? vwap : na, title='VWAP', color=color.purple, linewidth=2)
plot(sma_val, title='SMA', color=color.maroon, linewidth=2)
// Define buy and sell conditions based on selected indicators
var bool buy = false
var bool sell = false
var int buyC = 0
var int sellC = 0
if dayofweek != dayofweek
buyC := 0
sellC := 0
if use_ema_crossover
buy := ( ta.crossover(fast_ema, slow_ema) ) and buyC == 0
sell := ( ta.crossunder(fast_ema, slow_ema) ) and sellC == 0
if use_vwap
buy := ( buy ? buy and ta.crossover(combined_close, vwap) : ta.crossover(combined_close, vwap) ) and buyC == 0
sell := ( sell ? sell and ta.crossunder(combined_close, vwap) : ta.crossunder(combined_close, vwap) ) and sellC == 0
if use_rsi
buy := ( buy ? buy and ta.crossover(rsi_val, rsi_ob_level) : ta.crossover(rsi_val, rsi_ob_level) ) and buyC == 0
sell := ( sell ? sell and ta.crossunder(rsi_val, rsi_os_level) : ta.crossunder(rsi_val, rsi_os_level) ) and sellC == 0
if use_sma
buy := ( buy ? buy and ta.crossover(combined_close, sma_val) : ta.crossover(combined_close, sma_val) ) and buyC == 0
sell := ( sell ? sell and ta.crossunder(combined_close, sma_val) : ta.crossunder(combined_close, sma_val) ) and sellC == 0
if use_supertrend
buy := ( buy ? direction == -1 : direction == -1 and direction == 1 ) and buyC == 0
sell := ( sell ? direction == 1 : direction == 1 and direction == -1 ) and sellC == 0
if buy
buyC := 1
sellC := 0
if sell
sellC := 1
buyC := 0
// Plot buy and sell signals
plotshape(buy, title = "Buy", text = 'Buy', style = shape.labeldown, location = location.top, color= color.green, textcolor = color.white, size = size.small)
plotshape(sell, title = "Sell", text = 'Sell', style = shape.labelup, location = location.bottom, color= color.red, textcolor = color.white, size = size.small)
// Alert conditions
alertcondition(buy, "Buy", "Buy")
alertcondition(sell, "Sell", "Sell")
Midline Rejection Entry with TP/SL at Supply/DemandThis strategy is an unrefined way of trading on the 5 min timeframe to take an entry based on an identified trend's retracement, taking profit or stopping losses at previously identiffied supports or resistances.
DR + Multi Kernel Regression + Signals + MA200 with TP/SL a simple indicator that can probably help you enjoy it
Basit Al-Sat İndikatörü//@version=5
indicator("5 Dakikalık Al-Sat İndikatörü", overlay=true)
// Hareketli Ortalama Ayarları
shortMA = ta.sma(close, 9)
longMA = ta.sma(close, 21)
// RSI Ayarları
rsiLength = 14
rsiOverbought = 70
rsiOversold = 30
rsiValue = ta.rsi(close, rsiLength)
// Al-Sat Sinyalleri
buySignal = ta.crossover(shortMA, longMA) and rsiValue < rsiOversold
sellSignal = ta.crossunder(shortMA, longMA) and rsiValue > rsiOverbought
// Çizimler
plot(shortMA, color=color.blue, title="Kısa MA")
plot(longMA, color=color.orange, title="Uzun MA")
hline(rsiOverbought, "Aşırı Alım", color=color.red)
hline(rsiOversold, "Aşırı Satım", color=color.green)
plot(rsiValue, "RSI", color=color.purple, style=plot.style_line)
// Al-Sat Etiketleri
plotshape(buySignal, title="Al Sinyali", location=location.belowbar, color=color.green, style=shape.triangleup, size=size.small)
plotshape(sellSignal, title="Sat Sinyali", location=location.abovebar, color=color.red, style=shape.triangledown, size=size.small)
RV- Intrinsic Value AnalyzerWhy These Metrics Matter in IVA Pro (Intrinsic Value Analyzer)?
The IVA Pro consolidates key valuation, profitability, and efficiency metrics into a single, easy-to-read table. These indicators provide a comprehensive view of a company’s financial health, helping traders and investors make informed decisions based on growth potential, profitability, and valuation. The color-coded signals (green for strong, orange for moderate, and red for weak values) simplify fundamental analysis and enable quick comparisons across different stocks.
Key Fundamental Parameters in IVA Pro
Market Capitalization (Market Cap): Measures a company's total market value, helping assess size, stability, and growth potential.
Earnings Yield (TTM): Indicates how much profit a company generates relative to its stock price—useful for comparing against bonds and other assets.
Return on Capital Employed (ROCE): Shows how efficiently a company generates profits using its capital—a key profitability metric.
Return on Equity (ROE): Evaluates how well a company uses shareholder funds to generate earnings.
Price-to-Earnings Ratio (PE): Helps determine whether a stock is overvalued or undervalued based on earnings.
Price-to-Book Ratio (PB): Assesses if a stock is trading above or below its net asset value—useful for asset-heavy industries.
Price-to-Sales Ratio (PS): Helps evaluate revenue potential, particularly for growth-stage companies.
PEG Ratio: Enhances PE ratio by factoring in earnings growth—ideal for identifying undervalued growth stocks.
Forward PE Ratio: Provides a future-looking valuation based on projected earnings.
Forward PS Ratio: Helps evaluate future revenue potential and overall stock valuation.
Humble idrees Candles//@version=5
indicator(title="Humble LinReg Candles", shorttitle="41-80-LinReg Candles", format=format.price, precision=4, overlay=true)
signal_length = input.int(title="Signal Smoothing", minval = 1, maxval = 200, defval = 11)
sma_signal = input.bool(title="Simple MA (Signal Line)", defval=true)
lin_reg = input.bool(title="Lin Reg", defval=true)
linreg_length = input.int(title="Linear Regression Length", minval = 1, maxval = 200, defval = 11)
bopen = lin_reg ? ta.linreg(open, linreg_length, 0) : open
bhigh = lin_reg ? ta.linreg(high, linreg_length, 0) : high
blow = lin_reg ? ta.linreg(low, linreg_length, 0) : low
bclose = lin_reg ? ta.linreg(close, linreg_length, 0) : close
r = bopen < bclose
signal = sma_signal ? ta.sma(bclose, signal_length) : ta.ema(bclose, signal_length)
//plotcandle(r ? bopen : na, r ? bhigh : na, r ? blow: na, r ? bclose : na, title="LinReg Candles", color= color.green, wickcolor=color.green, bordercolor=color.green, editable= true)
//plotcandle(r ? na : bopen, r ? na : bhigh, r ? na : blow, r ? na : bclose, title="LinReg Candles", color=color.red, wickcolor=color.red, bordercolor=color.red, editable= true)
plot(signal, color=color.black)
// Inputs
a = input(1, title='Key Vaule. \'This changes the sensitivity\'')
c = input(10, title='ATR Period')
h = input(false, title='Signals from Heikin Ashi Candles')
xATR = ta.atr(c)
nLoss = a * xATR
src = h ? request.security(ticker.heikinashi(syminfo.tickerid), timeframe.period, close, lookahead=barmerge.lookahead_off) : close
xATRTrailingStop = 0.0
iff_1 = src > nz(xATRTrailingStop , 0) ? src - nLoss : src + nLoss
iff_2 = src < nz(xATRTrailingStop , 0) and src < nz(xATRTrailingStop , 0) ? math.min(nz(xATRTrailingStop ), src + nLoss) : iff_1
xATRTrailingStop := src > nz(xATRTrailingStop , 0) and src > nz(xATRTrailingStop , 0) ? math.max(nz(xATRTrailingStop ), src - nLoss) : iff_2
pos = 0
iff_3 = src > nz(xATRTrailingStop , 0) and src < nz(xATRTrailingStop , 0) ? -1 : nz(pos , 0)
pos := src < nz(xATRTrailingStop , 0) and src > nz(xATRTrailingStop , 0) ? 1 : iff_3
xcolor = pos == -1 ? color.red : pos == 1 ? color.green : color.blue
ema = ta.ema(src, 1)
above = ta.crossover(ema, xATRTrailingStop)
below = ta.crossover(xATRTrailingStop, ema)
buy = src > xATRTrailingStop and above
sell = src < xATRTrailingStop and below
barbuy = src > xATRTrailingStop
barsell = src < xATRTrailingStop
plotshape(buy, title='Buy', text='Buy', style=shape.labelup, location=location.belowbar, color=color.new(color.green, 0), textcolor=color.new(color.white, 0), size=size.tiny)
plotshape(sell, title='Sell', text='Sell', style=shape.labeldown, location=location.abovebar, color=color.new(color.red, 0), textcolor=color.new(color.white, 0), size=size.tiny)
barcolor(barbuy ? color.green : na)
barcolor(barsell ? color.red : na)
alertcondition(buy, 'UT Long', 'UT Long')
alertcondition(sell, 'UT Short', 'UT Short')
longCondition = buy
shortCondition = sell
gpA = "PineConnector Settings"
LicenseID = input.string("xxxxxxxx", title = "License ID", group=gpA) // 1. change to your PineConnector License ID (required)
pairName = input.string("XAUUSD", title = "Pair Name to Trade", tooltip = "Confirm exact name from MT5 before entering", group=gpA)
risk_ = input.float(10, "Risk ", group = gpA)
sl_ = input.float(30, "SL ", group = gpA)
tp_ = input.float(30, "TP ", group = gpA, inline = "tp_"), use_tp = input.bool(false, "Enable", group = gpA, inline = "tp_")
entryAlertMessage(side_,risk, sl, tp)=>
LicenseID + ',' + side_ + ',' + pairName + ',risk=' + str.tostring(risk) + ',sl=' + str.tostring(sl, "#.####") + (use_tp ? ',tp=' + str.tostring(tp, "#.####") : "")
closeAlertMessage(side_)=>
LicenseID +',' + side_ + ',' + pairName
if longCondition
alertMessage = entryAlertMessage("buy", risk_, sl_, tp_)
alert(alertMessage, alert.freq_once_per_bar_close)
// label.new(bar_index, high, alertMessage, xloc.bar_index, yloc.price, color.green, label.style_label_down, color.white, size.small, text.align_left, na, font.family_monospace, force_overlay = true)
if shortCondition
alertMessage = entryAlertMessage("sell", risk_, sl_, tp_)
alert(alertMessage, alert.freq_once_per_bar_close)
VWAP (Non-Dynamic) Breakout SignalsNon-Dynamic VWAP that trigger a visual signal on chart to indicate bullish or bearish momentum for intraday sentiment
Signal shows as a yellow arrow above candle price if breaking below VWAP
Signal shows as a yellow arrow below candle price if breaking above VWAP