TradingView
SimpleTradingTechniques
2015年11月21日午後2時32分

STT Short Term Trend Bars 

Crude Oil (Brent)FXCM

詳細

Green Candle = buy opportunities

Red Candle = sell opportunities
コメント
AB-Trading
Would it be possible to make it "alert-friendly" ?
SimpleTradingTechniques
Look for sell opportunities at the close of the daily candlestick for both WTI and Brent.
Knuckles77
// 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
your amazing dude i love what you have created thank you
Knuckles77
I modified the script in order to get signals, Hope that"s ok.
詳細