
This strategy is based on the Leading Span B line of the Ichimoku Cloud indicator. It generates trading signals when the price breaks through the Leading Span B line. A buy signal is generated when the price breaks above the Leading Span B line, and a sell signal is generated when the price breaks below the Leading Span B line. The strategy leverages the predictive power of the Leading Span B line in the Ichimoku Cloud indicator for future price trends, aiming to capture good trading opportunities by timely detecting the price breakout of the Leading Span B line.
The Ichimoku Leading Span B Breakout Strategy is a trading strategy based on the Leading Span B line of the Ichimoku Cloud indicator. By capturing the timing of price breakouts of the Leading Span B line, it aims to obtain trending trading opportunities. The strategy’s advantages are its simple logic, easy implementation, and ability to comprehensively consider price information from multiple time dimensions. However, it also faces potential risks such as single indicator failure, frequent trading, and lack of risk control. Therefore, in practical application, it is necessary to optimize the strategy by combining other indicators, optimizing parameter settings, introducing risk control measures, etc., to improve the strategy’s robustness and profitability.
/*backtest
start: 2023-04-23 00:00:00
end: 2024-04-28 00:00:00
period: 1d
basePeriod: 1h
exchanges: [{"eid":"Futures_Binance","currency":"BTC_USDT"}]
*/
//@version=5
strategy("Ichimoku Leading Span B Alım/Satım Stratejisi", overlay=true)
// Ichimoku göstergesi parametreleri
conversionPeriods = input(9, title="Dönüşüm Periyodu")
basePeriods = input(26, title="Taban Periyodu")
laggingSpan2Periods = input(52, title="Gecikme Span 2 Periyodu")
displacement = input(26, title="Kaydırma")
// Ichimoku hesaplama
tenkanSen = (ta.highest(high, conversionPeriods) + ta.lowest(low, conversionPeriods)) / 2
kijunSen = (ta.highest(high, basePeriods) + ta.lowest(low, basePeriods)) / 2
senkouSpanA = (tenkanSen + kijunSen) / 2
senkouSpanB = (ta.highest(high, laggingSpan2Periods) + ta.lowest(low, laggingSpan2Periods)) / 2
// Leading Span B'nin grafiğe çizilmesi
plot(senkouSpanB, color=color.red, title="Leading Span B", offset=displacement)
// Alım sinyali: Fiyat Leading Span B'yi yukarı keserse
buy_signal = ta.crossover(close, senkouSpanB[displacement])
if (buy_signal)
strategy.entry("Alım", strategy.long)
// Satım sinyali: Fiyat Leading Span B'yi aşağı keserse
sell_signal = ta.crossunder(close, senkouSpanB[displacement])
if (sell_signal)
strategy.close("Alım")
// Sinyalleri grafik üzerinde gösterme
plotshape(series=buy_signal, title="Alım Sinyali", location=location.belowbar, color=color.green, style=shape.triangleup, size=size.small)
plotshape(series=sell_signal, title="Satım Sinyali", location=location.abovebar, color=color.red, style=shape.triangledown, size=size.small)