The "Ichimoku_SenkouSpanCross" strategy is a trading strategy that uses the Ichimoku cloud indicator to generate buy and sell signals. Here's a breakdown of how the strategy works:
It defines a minimal return on investment (ROI) target, which is set to 1000%. It sets a stop loss level at -0.99, meaning that if the price drops by 99% from the entry point, the position will be closed.
The ticker interval is set to 4 hours, indicating that the strategy operates on 4-hour candlestick data.
The strategy enables a trailing stop feature, which means that if the price moves favorably, the stop loss level will be adjusted to lock in profits.
The trailing stop is set to trigger when the price increases by 45% from the highest recorded value. The trailing stop offset is set at 50%, which means that the stop loss level will be 50% of the trailing stop value. The strategy specifies that all orders (buy, sell, stop loss) should be executed as market orders. The order time in force is set to "gtc" (good 'til canceled), indicating that orders remain active until explicitly canceled. The strategy does not specify any informative pairs. It defines a function called "populate_indicators" that calculates various indicators using the Ichimoku cloud and RSI (Relative Strength Index). The "populate_buy_trend" function generates a buy signal when the following conditions are met:
The Senkou Span A line crosses above the Senkou Span B line. The closing price is above both the Senkou Span A and Senkou Span B lines. The cloud color is green. The "populate_sell_trend" function generates a sell signal when the following conditions are met:
The Senkou Span B line crosses above the Senkou Span A line. The closing price is below both the Senkou Span A and Senkou Span B lines. The cloud color is red. This strategy aims to capture trends and reversals indicated by the Ichimoku cloud indicator, combined with the RSI for additional confirmation. It uses these signals to enter and exit positions in the market.