The "ichi" strategy is a trading strategy that uses the Ichimoku Cloud and SSL Channels indicators to generate buy and sell signals. Here's a breakdown of what the strategy does:
Timeframe: The strategy is optimized for a 1-hour timeframe. Startup Candle Count: The strategy requires at least 120 candles of historical data to start.
Process Only New Candles: The strategy processes only new candles when updating the data.
Minimal ROI: The strategy aims to achieve the following minimum return on investment (ROI) percentages within specific time intervals: 0.05 within 0 days, 0.04 within 30 days, 0.03 within 60 days, and 0.025 within 90 days.
Stoploss: The strategy sets a stop loss at -0.04 (4% loss). Trailing Stop: The strategy uses a trailing stop to protect profits. It activates when the price reaches a positive offset of 0.002 and trails with a positive offset of 0.015. Trailing Only Offset Is Reached: The trailing stop is only activated when the offset is reached; it does not trigger when the price reverts. Use Sell Signal: The strategy utilizes a sell signal for exiting trades. Sell Profit Only: The strategy considers all sell signals, not just those that result in a profit. Ignore ROI if Buy Signal: The strategy ignores the minimum ROI requirements if a new buy signal occurs. The strategy uses the following indicators:
Ichimoku Cloud: The strategy calculates the Ichimoku Cloud indicator using the ftt.ichimoku function. It adds various components of the indicator to the dataframe, such as conversion line (tenkan_sen), base line (kijun_sen), cloud colors (cloud_green and cloud_red), and displacement-related indicators (future_green and chikou_high). SSL Channels: The strategy calculates the SSL Channels indicator using the SSLChannels function. It adds the upper and lower SSL Channels values (sslUp and sslDown) to the dataframe. The strategy determines buy and sell signals based on the following conditions:
Buy Signal: A buy signal is generated when the following conditions are met:
The go_long value crosses above 0. The SSL Channels upper band (sslUp) is greater than the lower band (sslDown). Sell Signal: A sell signal is generated when the following conditions are met:
The SSL Channels lower band (sslDown) is greater than the upper band (sslUp). Either the tenkan_sen or the close crosses below the kijun_sen. Please note that this is a simplified explanation, and there may be additional nuances or details in the implementation.