0% found this document useful (0 votes)
707 views

Trading View Pine Script

The document defines an indicator for identifying buy and sell signals using moving averages and pivots. It calculates a fast and slow exponential moving average (EMA) and volume weighted moving average (VWMA) to identify crossover signals. It also identifies pivot highs and lows. The indicator plots the EMAs, VWMAs, pivots and ATR to visually identify buy/sell signals on the chart. Labels are placed above and below the bars to mark buy and sell signals.

Uploaded by

Akash sumi
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
707 views

Trading View Pine Script

The document defines an indicator for identifying buy and sell signals using moving averages and pivots. It calculates a fast and slow exponential moving average (EMA) and volume weighted moving average (VWMA) to identify crossover signals. It also identifies pivot highs and lows. The indicator plots the EMAs, VWMAs, pivots and ATR to visually identify buy/sell signals on the chart. Labels are placed above and below the bars to mark buy and sell signals.

Uploaded by

Akash sumi
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

//@version=5

indicator(title="Isaac", shorttitle="Isaac", overlay=true)

serieshigh = ((ta.pivothigh (10,0) and (((high-open)/(high-low))>0.1) and


(close<open))) //or (((high-open)/(high-low))>0.6)
serieslow = ta.pivotlow (10,0) and (((close-low)/(high-low))>0.1) and (close>open)

fastema = input.int (10, minval=1, title="Fast EMA")


slowema = input.int (30, minval=1, title="Slow EMA")

fastEMA = ta.ema(close, fastema)


slowEMA = ta.ema(close, slowema)

EMAhigh = ta.crossover(fastEMA, slowEMA)


EMAlow = ta.crossunder(fastEMA, slowEMA)

fastvwma = input.int (5, minval=1, title="Fast VWMA")


slowvwma = input.int (20, minval=1, title="Slow VWMA")

fastVWMA = ta.vwma(close, fastvwma)


slowVWMA = ta.sma(close, slowvwma)

vHigh = ta.crossover(fastVWMA, slowVWMA)


vLow = ta.crossunder(fastVWMA, slowVWMA)

atr50 = ta.atr(50)
atr60 = ta.atr(60)

buy = EMAhigh or vHigh //


sell =EMAlow or vLow //

if (buy)
lbl = label.new(bar_index, low, "buy")
label.set_color(lbl, color.green)
label.set_yloc(lbl, yloc.belowbar)
label.set_style(lbl, label.style_label_up)

if (sell)
lbl = label.new(bar_index,high, "sell")
label.set_color(lbl, color.red)
label.set_yloc(lbl, yloc.abovebar)
label.set_style(lbl, label.style_label_down)

plotshape(serieshigh, style=shape.circle, location=location.abovebar,


color=color.black)
plotshape(serieslow, style=shape.circle, location=location.belowbar,
color=color.black)

plot(fastEMA, "Fast EMA", color=color.blue, linewidth=3)


plot(slowEMA, "Slow EMA", color=color.orange, linewidth=3)

plot(fastVWMA, "Fast EMA", color=color.green, linewidth=3)


plot(slowVWMA, "Slow EMA", color=color.red, linewidth=3)

plot(atr50, "ATR 50", color=color.black, linewidth=3)

You might also like