見出し画像

3 Line Strike

ケメコが見つけたとっておきのインジケーターをご紹介👀🍀

3 Line Strike
Engulfing
2つのローソク足の形状をお知らせ💌

21と50と200 SMMA(Smoothed Moving Average)が
PO(ぽー)してるときにSMMAの押し/戻りのタイミングで
サインが出たらエントリー、がルール💨

Stochastic RSIがダイバージェンスしいることが条件らしい👇

トレードはロンドンかニューヨークの時間にいたしてね🕓

ぐんまちゃんとの相性もよさげ💕

//@version=4
study("OGT GMMA Indicator", overlay = true)

ema3 = ema(close,3)
ema5 = ema(close,5)
ema8 = ema(close,8)
ema10 = ema(close,10)
ema12 = ema(close,12)
ema15 = ema(close,15)

ema30 = ema(close,30)
ema35 = ema(close,35)
ema40 = ema(close,40)
ema45 = ema(close,45)
ema50 = ema(close,50)
ema60 = ema(close,60)

shigh = max(ema3,ema5,ema8,ema10,ema12,ema15)
slow = min(ema3,ema5,ema8,ema10,ema12,ema15)

fhigh = max(ema30,ema35,ema40,ema45,ema50,ema60)
flow = min(ema30,ema35,ema40,ema45,ema50,ema60)

sbull = ema3>ema5 and ema5>ema8 and ema8>ema10 and ema10>ema12 and ema12>ema15
sbear = ema3<ema5 and ema5<ema8 and ema8<ema10 and ema10<ema12 and ema12<ema15
scolor = sbull ? color.green : sbear ? color.red : color.orange

fbull = ema30>ema35 and ema35>ema40 and ema40>ema45 and ema45>ema50 and ema50>ema60
fbear = ema30<ema35 and ema35<ema40 and ema40<ema45 and ema45<ema50 and ema50<ema60
fcolor = fbull ? color.green : fbear ? color.red : color.blue

midcolor = shigh>slow and slow>fhigh and slow>flow ? color.green : color.red
sh = plot(shigh, color = color.new(color.black,100),title = "Slow high", linewidth =4)
sl = plot(slow, color = color.new(color.black,100),title = "Slow low", linewidth =4)
fh = plot(fhigh, color = color.new(color.black,100),title = "Fast high", linewidth =4)
fl = plot(flow, color = color.new(color.black,100),title = "Fast low", linewidth =4)

fill(sh,sl,color = color.new(scolor,70), title = "Slow fill", editable = true)
fill(fh,fl,color = color.new(fcolor,40), title = "Fast fill", editable = true)
a = plot(midcolor == color.green? slow : shigh,transp=100)
b = plot(midcolor == color.green ? fhigh : flow,transp = 100)

fill(a, b, color = color.black)

bullalert = scolor == color.green and fcolor == color.green and midcolor == color.green
bearalert = scolor == color.red and fcolor == color.red and midcolor == color.red

alertcondition(bullalert and not bullalert[1],"1. Green Alert", "Bullish")
alertcondition(bearalert and not bearalert[1],"2. Red Alert", "Bearish")
alertcondition((bullalert and not bullalert[1])or(bearalert and not bearalert[1]), "3. Green/Red Alert", "Change in trend")
// plotshape(bullalert and not bullalert[1], text = "Buy", textcolor=color.white, size = size.auto, style=shape.labelup, location=location.belowbar, color=color.green)
// plotshape(bearalert and not bearalert[1], text = "Sell", textcolor=color.white,size = size.auto, style=shape.labeldown, location=location.abovebar, color=color.red)