Placing Buy and Sell Orders Based on RSI of 15-Minute Candlesticks
Explore an Origami Tech example showing how to place automated buy and sell orders based on RSI signals from 15-minute candlestick data.
{
"gap": "0.005",
"min_low": "orderbook().bid[0].price",
"max_high": "orderbook().ask[0].price",
"price_low": "min(rsi_to_price(candles_15m, rsi_expected=40), orderbook().ask[0].price, min_low)",
"price_high": "max(rsi_to_price(candles_15m, rsi_expected=60), orderbook().bid[0].price, max_high)",
"candles_15m": "candles('m15')",
"execute_price": "(price_low if side == 'buy' else price_high) * ( 1 + gap * order_pos)",
"execute_volume": "cached(60, respect='order_pos')(10/execute_price *abs(order_pos))",
"buy_orders_count": "5",
"sell_orders_count": "5",
"sleep_after_seconds": "900"
}PreviousPlacing Orders with a Spread Based on Historical DataNextBuying and Selling When the 15-Minute RSI Exits a Defined Range
Last updated