Buying and Selling When the 15-Minute RSI Exits a Defined Range
Explore an Origami Tech grid example using RSI-based triggers to automate buy and sell orders when indicators exit defined thresholds.
{
"max_bid": "mean([candle.close for candle in candles_m15])",
"min_ask": "mean([candle.close for candle in candles_m15])",
"rsi_m15": "rsi(candles('m15', 'base-counter'), period=14, column='close')[0]",
"candles_m15": "candles('m15', 'base-counter')",
"execute_price": "min(orderbook().ask[0].price,max_bid) if side == 'buy' else max(orderbook().bid[0].price,min_ask)",
"execute_volume": "10 / ticker()",
"buy_orders_count": "1 if rsi_m15 < 30 else 0",
"sell_orders_count": "1 if rsi_m15 > 70 else 0",
"sleep_after_seconds": "300"
}Last updated