Trading_Nerd

Ichimoku Cloud [Trading Nerd]

Backtesting Script that compares different way to trade the Ichimoku Cloud. With this script you can test 2*2 different Ichimoku Cloud Entry conditions, more on that down below. This script is useful to figure out what conditions work best for the applied market (so not only parameters of the Ichimoku Cloud are changeable).

Strategy foundation
This conditions need to be always satisfied for a valid entry:
Longs:
  • The close price must be above the (displaced) cloud: close > max(leadingspanA, leadingspanB)
  • The most recent cloud must be green: leadingspanA > leadingspanB

Shorts:
  • The close price must be below the (displaced) cloud: close < min(leadingspanA, leadingspanB)
  • The most recent cloud must be red: leadingspanA < leadingspanB

Options for Conversion-/Base Line
Cross: Conversion-Line cross-over Base-Line (Long), Conversion Line cross-under Base-Line (Short)
Over/Under: Conversion-Line > Base-Line (Long), Conversion-Line < Base-Line (Short)

Options for Lagging Span
Above/Below Price: Lagging-Span > Close Price (Long), Lagging-Span < Close Price (Short)
Above/Below Cloud: Lagging-Span > Ichimoku Cloud (Long), Lagging-Span < Ichimoku Cloud (Short)

Exit Conditions
An optional Stoploss is available. 2 different Types:
ATR: Takes a multiple (set by 'ATR multiplier for SL') of the ATR and subtract it (Long) or adds it (Short) to the close price of the previous candel (before entry candle)
HH/LL: Takes the highest high/lowest low of the last X candles (set by 'Lookback Range for HH/LL SL') and sets a SL at this price
none: There is no SL.

The position is at latest exited at the next cross of the Conversion-Line and Base-Line!
Longs: Conversion-Line cross-under Base-Line.
Shorts: Conversion-Line cross-over Base-Line.
The position is closed if the cross is confirmed (candle has closed).

Risk Management
You can set the risk percent per trade:
Risk only X% of current capital (initial capital + net Profit). This requires a Stoploss-Strategy (not none).
IMPORTANT: For low Timeframes and Markets with tight SL (like Forex) it requires a lower Margin Percent than default. Go to Settings->Properties and lower the required Long/Short Margin. Otherwise Trades might not be considered because of too less capital/marign. Margins can e.g. set to: 2% (Forex), 10% (Stocks), 20% (Crypto).

보호된 스크립트입니다
이 스크립트는 클로즈 소스로 게시되며 자유롭게 사용할 수 있습니다. 당신은 스크립트를 차트에 사용하기 위해 그것을 즐겨찾기 할 수 있습니다. 소스 코드는 보거나 수정할 수 없습니다.
면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

차트에 이 스크립트를 사용하시겠습니까?