Ichimoku Cloud - Strategy by Metzjosh2

By Metzjosh2

Performance Metrics

Description

Ichimoku Cloud - StrategyThis strategy trades the Ichimoku Cloud with a simple confirmation rule. It's long-only, so it's either fully invested or in cash.How it works- Buy: after 2 consecutive daily closes above the top of the cloud.- Sell to cash: after 2 consecutive closes below the bottom of the cloud.- Inside the cloud: the strategy keeps whatever position it already has.- Fills: orders fill on the close of the second confirming candle, which is the bar with the BUY/SELL label. You can switch this to the next bar's close in the settings.- No repainting: signals only use confirmed closes.Default settings- Ichimoku lengths: Conversion 18, Base 52, Leading Span B 104, Displacement 26. You can set them back to the classic 9/26/52/26 in the settings.- Testing period: Custom, starting Jan 1, 2015. Presets for All, YTD, 1Y, 3Y and 5Y are also available.- Position sizing: 100% of equity, with no commission or slippage.Reference table- State: whether the strategy is LONG or CASH right now.- Prev Signal: the current price's % change from the last BUY or SELL signal's close.- YTD Signal: this calendar year's return from following the signal. It starts long if the strategy ended last year long.- YTD Buy & Hold: this year's return from simply holding.- Cloud Top and Cloud Bottom: how far the price is from each edge of the cloud, in %.Performance table (can be turned on or off)It compares the strategy with buy and hold over the testing period. It shows net return, CAGR, Sharpe, Calmar (CAGR divided by max drawdown) and max drawdown, plus trades, win rate and time in market.Tip: to keep the chart clean, open the script's settings and uncheck "Trades on chart" in the Style tab. The BUY/SELL labels will still show.This is for educational purposes only and isn't financial advice. Past performance doesn't guarantee future results.

Browse all 5,900+ TradingView Pine Script strategies

View on TradingView