TradingView
SimpleTradingTechniques
Nov 21, 2015 2:32 PM
STT Short Term Trend Bars
FX:UKOIL
1D
Crude Oil (Brent)
FXCM
Description
⋅
Nov 21, 2015 2:32 PM
Green Candle = buy opportunities
Red Candle = sell opportunities
Forex
Stocks
future
Commodities
ETF
emini
Comments
AB-Trading
⋅
Nov 30, 2015 9:25 PM
Would it be possible to make it "alert-friendly" ?
SimpleTradingTechniques
⋅
Jan 25, 2016 6:03 PM
Look for sell opportunities at the close of the daily candlestick for both WTI and Brent.
Knuckles77
⋅
Sep 30, 2022 10:20 PM
// Green Candle = buy opportunities
// Red Candle = sell opportunities
// By SimpleTrading Techniques
//
@version
= 4
study(title="RSI Chart Bars",overlay = true, shorttitle="STT Short Term Trend Bars")
src = close, len = input(8, minval=1, title="Length")
up = rma(max(change(src), 0), len)
down = rma(-min(change(src), 0), len)
rsi = down == 0 ? 100 : up == 0 ? 0 : 100 - (100 / (1 + up / down))
//coloring method below
src1 = close, len1 = input(50, minval=1, title="UpLevel")
src2 = close, len2 = input(50, minval=1, title="DownLevel")
isup() => rsi > len1
isdown() => rsi < len2
barcolor(isup() ? color.green : isdown() ? color.red : na )
signal = isup() ? "Buy" : isdown() ? "Sell" : "none"
//Alerts
Turn_Green = signal =="Buy" and (signal[1] =="Sell" or signal[1] == "none")
Turn_Red = signal == "Sell" and (signal[1] =="Buy" or signal[1] == "none")
alertcondition(Turn_Green, title="Buy", message="Buy")
alertcondition(Turn_Red, title="Sell", message="Sell")
longCond = up
shortCond = down
CodyMaki
⋅
Apr 11, 2022 11:42 PM
your amazing dude i love what you have created thank you
Knuckles77
⋅
Sep 30, 2022 10:21 PM
I modified the script in order to get signals, Hope that"s ok.
More