Placing Buy and Sell Orders Based on RSI of 15-Minute Candlesticks
Orders are placed at levels corresponding to an RSI of 40 for buy orders and an RSI of 60 for sell orders, or at the best bid or ask price if the RSI moves outside the specified range.
In this example, 15-minute candlestick data is used to estimate the price levels that would correspond to an RSI of 40 and 60 in the next period.
rsi_to_price
(candles_15m, rsi_expected=40)
rsi_to_price
(candles_15m, rsi_expected=60)
Bids are placed at RSI 40, and asks are placed at RSI 60 with a price increment of 0.5%, which is defined in the parameter "gap".
Buy orders are placed at the RSI 40 level. Sell orders are placed at the RSI 60 level. A price increment is 0.5%, as specified by the gap parameter.
The volume for each order is calculated as the equivalent of 10 counter tokens multiplied by the order's sequence number.
10/
execute_price
*
abs
(
order_pos
)
The order grid is updated every 15 minutes.
"
sleep_after_seconds
": "900"
Last updated