TradingView
mikeram1971
Mar 22, 2020 12:18 AM

My VWAP Reversal + Pivot Points Standard 

SPDR S&P 500 ETF TRUSTArca

描述

This indicator, with the addition of a standard VWAP indicator to the 5m chart, helps the operator when using a closing candle Price to initiate a VWAP Reversal strategy.

The strategy involves Price gapping up, look for a Close below the 1st 5m candle Low; else look for a Close above the 1st 5m candle High. On a break of VWAP, take the trade in the opposite direction of the gap, hence the VWAP Reversal. Not my own strat, credit to T3 Newsbeat, publicly posted on YouTube.

The Pivot Points Standard in the Pine 4 user manual, was the base source code, and leaving it here will allow me to remove the PP indicator I was using.
评论
nilanjan62
can u add a buy sell indiactor to this pls?
jjwacky
So does this tell u when it breaks up or below VWAP or and above a R1 R2 and same below S1 S2. ??
jlee462
Can you send a link to the strategy? I cannot find it. Thnk you!!!!
DharminderMohan
Sorry I am new learner , how can I put all the indicators on spy on my charts. Very simple probably
Bullish911Bear
EXCELLENT CAN YOU ADD AUTO HIGHER TIMEFRAM OPTION LIKE BELOW SUPERTREND SCRIPT.

//auto higher time frame HTFAuto = timeframe.period == '1' ? '5' : timeframe.period == '3' ? '15' : timeframe.period == '5' ? '15' : timeframe.period == '15' ? '60' : timeframe.period == '30' ? '60' : timeframe.period == '45' ? '60' : timeframe.period == '60' ? '240' : timeframe.period == '120' ? '240' : timeframe.period == '180' ? '240' : timeframe.period == '240' ? 'D' : timeframe.period == 'D' ? 'W' : '5W' HTFSelection = input(title='Select HTF Automatically for Additional Supertrend', defval=true) HTFUserSel1 = input.timeframe(title='Higher Timeframe for Default Supertrend', defval='') Mult1 = input.float(title='Multiplier for Default Supertrend', defval=3.0, minval=0, maxval=10) Period1 = input.int(title='Period for Default Supertrend', defval=10, minval=1, maxval=100) Mult2 = input.float(title='Multiplier for Additional Supertrend', defval=1.0, minval=0, maxval=10) Period2 = input.int(title='Period for Additional Supertrend', defval=14, minval=1, maxval=100) HTFSelection = input(title='Select HTF Automatically for Additional Supertrend', defval=true) HTFUserSel2 = input.timeframe(title='Higher Timeframe for Additional Supertrend', defval='') HTF2 = HTFSelection ? HTFAuto : HTFUserSel2 f_Security(_symbol, _res, _src) => request.security(_symbol, _res, _src[1], lookahead=barmerge.lookahead_on) nonVectorSupertrend(Mult, Period) => [Trail_, Trend_] = ta.supertrend(Mult, Period) Trail_ * Trend_ //Default Supertrend [Trailings1, Trend1] = ta.supertrend(Mult1, Period1) if HTFUserSel1 != timeframe.period and HTFUserSel1 != '' CompositeTrail1 = f_Security(syminfo.tickerid, HTFUserSel1, nonVectorSupertrend(Mult1, Period1)) Trailings1 := math.abs(CompositeTrail1) Trend1 := CompositeTrail1 > 0 ? 1 : -1 Trend1 linecolor1 = Trend1 == -1 and Trend1[1] == -1 ? #00ffff : Trend1 == 1 and Trend1[1] == 1 ? #ffff00 : color.new(color.white, 100) plot(Trailings1, color=linecolor1, linewidth=1, style = plot.style_stepline, title='SuperTrend') //Additional Supertrend [Trailings2, Trend2] = ta.supertrend(Mult2, Period2) if HTF2 != timeframe.period and HTF2 != '' CompositeTrail2 = f_Security(syminfo.tickerid, HTF2, nonVectorSupertrend(Mult2, Period2)) Trailings2 := math.abs(CompositeTrail2) Trend2 := CompositeTrail2 > 0 ? 1 : -1 Trend2 linecolor2 = Trend2 == -1 and Trend2[1] == -1 ? #00ff00 : Trend2 == 1 and Trend2[1] == 1 ? #ff0000 : color.new(color.white, 100) plot(Trailings2, color=linecolor2, linewidth=1, style = plot.style_stepline, title='Supertrend Higher Time Frame') TradeState = Trend1 == -1 and Trend2 == -1 ? 1 : Trend1 == 1 and Trend2 == 1 ? -1 : 0 BuySignal = TradeState == 1 and TradeState[1] != 1 SellSignal = TradeState == -1 and TradeState[1] != -1 ExitBuySignal = TradeState == 0 and TradeState[1] == 1 ExitSellSignal = TradeState == 0 and TradeState[1] == -1
jaipalnair
As you mentioned " take the trade in the opposite direction of the gap", on the chart there is green box and redbox, Please explain on which direction to take the trade accordingly. - thanks in advace
Safmajd76
great i use it it's wonderful
raja74sekhar
Good indicator thank you
更多