TradingView
nicks1008
18 Ağu 2020 13:14

Intraday Long & Short 5Min 

Açıklama

Rules for using this indicator

1. Time Frame - 5 Min (Recommended) or 15 Min

2. Long Entry - when High of signal candle breaks by any Green candle' close.

3. Short Entry - when Low of signal candle breaks by any Red candle' close.

4. Price might reverse after you take entry till Red line or Green Line and as this indicator is based on Higher High and Lower Low Support and Resistance method. Most of time it will reverse after touching the line. You can confirm the Price action from that point. else Exit.

5. Entry in 5 Min timeframe and holding for swingtrade until overbought and oversold indication appears will give extra profits.

6. DYOR

Like,Comment and add this to favorite if you find it useful.
Consider Donating coins only if this indicator turns profitable for you.


Thank you!


Sürüm Notları

Now you can customize Input Controls and timeframe to get better signals based on respective scrips/index.
Yorumlar
nicks1008
//Source_Code

study(title="Intraday Long & Short 5Min", shorttitle="5 Min Entry", overlay=true, precision=1)

var isLong = false
var isShort = false

rsi=rsi(close,7)
ema=ema(close,1)

T_High = security(syminfo.tickerid, '30', highest(high,3))
T_Low = security(syminfo.tickerid, '30', lowest(low,3))

buycall= crossover(ema,T_High) and high[1] < close [0] and not isLong
sellcall = crossunder(ema,T_Low) and close[1]> low[0] and not isShort

if buycall
isLong := true
isShort := false

if sellcall
isLong := false
isShort := true

plot( timeframe.isintraday ? T_Low : na, title="LowerLine", color=color.red,linewidth=2,transp=80)
plot( timeframe.isintraday ? T_High : na, title="UpperLine", color=color.aqua,linewidth=2,transp=80)

plotshape(buycall,title="Reversal_UP",style=shape.triangleup,location=location.belowbar,color=color.aqua,size=size.small,transp=20)
plotshape(sellcall,title="Reversal_Down",style=shape.triangledown,location=location.abovebar,color=color.orange,size=size.small,transp=20)
alertcondition(buycall or sellcall, title="Signal -Long/Short",message="Alert - 5Min Entry lookout")
RcInvestimentos
@nicks1008, Hi Nicks

The script is showing below error, could you please help me out with this.

Add to Chart operation failed, reason: Script could not be translated from: |B|var isLong = false|E|
|B|
orangkayabaru
@nicks1008, great script nick, but can edit in 1 day ?
nicks1008
@orangkayabaru, signals will be less in that case. try Swing trading indicator for 1D TF.
mfdramesh
@nicks1008, unable to get this code added in my chart.. error message coming
Add to Chart operation failed, reason: Script could not be translated from: |B|var isLong = false|E|
|EMPTY_V1|
Do help
nicks1008
@mfdramesh, Are you adding it from the Indicator tab directly or pasting the code manually into Pine editor and adding it to the chart ?
Ersanwar
@nicks1008, Hello Sir, I am using this indicator from last 6 months, it gives good results. Now i customize this indicator into strategy for automation but sir this is not giving alerts. I think there may be repainting issue. Sir may you please assist me in this, it will be helpful for me. I will be thankful.
MrStrategy
updated code to V5
```
var isLong = false
var isShort = false

rsi=ta.rsi(close,7)
ema=ta.ema(close,1)

T_High = request.security(syminfo.tickerid, '30', ta.highest(high,3))
T_Low = request.security(syminfo.tickerid, '30', ta.lowest(low,3))

buycall= ta.crossover(ema,T_High) and high < close and not isLong
sellcall = ta.crossunder(ema,T_Low) and close> low and not isShort

if buycall
isLong := true
isShort := false

if sellcall
isLong := false
isShort := true

plot( timeframe.isintraday ? T_Low : na, title="LowerLine", color=color.new(color.red, 80),linewidth=2)
plot( timeframe.isintraday ? T_High : na, title="UpperLine", color=color.new(color.aqua, 80),linewidth=2)

plotshape(buycall,title="Reversal_UP",style=shape.triangleup,location=location.belowbar,color=color.new(color.aqua, 20),size=size.small)
plotshape(sellcall,title="Reversal_Down",style=shape.triangledown,location=location.abovebar,color=color.new(color.orange, 20),size=size.small)
alertcondition(buycall or sellcall, title="Signal -Long/Short",message="Alert - 5Min Entry lookout")
```
Daha Fazla