// 9 Günlük EMA ve 30 Günlük WMA ema9 = ta.ema(close, 9) wma30 = ta.wma(close, 30)
// Kapanışların 9 EMA ve 30 WMA seviyelerinin üzerinde olup olmadığını kontrol et isCloseAboveEma9 = close > ema9 isCloseAboveWma30 = close > wma30
// Mavi sinyal: 9 EMA'nın altında, fakat 30 WMA'nın üstünde kapanış yapan ilk mum blueSignalCondition = ta.crossover(close, ema9) and close < ema9 and close > wma30
// Yeşil sinyal: Mavi sinyali veren mumun üst seviyesinin üstünde kapanış yapan ilk mum greenSignalCondition = close > ta.highest(blueSignalCondition ? high : na, 1) and blueSignalCondition[1]
// Mavi ve yeşil sinyal çizimleri plotshape(series=blueSignalCondition, color=color.blue, style=shape.labelup, location=location.belowbar, size=size.small, title="Blue Signal") plotshape(series=greenSignalCondition, color=color.green, style=shape.labelup, location=location.belowbar, size=size.small, title="Green Signal")
In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publications is governed by House rules. You can favorite it to use it on a chart.
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.