All Collections
Frequently Asked Questions
Technical FAQ
‘Within’, Closed Candles and Price
‘Within’, Closed Candles and Price

'Within x time period' calculation and closed candles

Reni Asumah avatar
Written by Reni Asumah
Updated over a week ago

Understanding: ‘Within’, Closed Candles and Price

For the above condition to trigger, the price increase by 5% 'WITHIN 15 minutes' would have to happen within one 15 minute candle.

Example 1

  • Rule starts at 10.03pm, price for 1 ETH is 1,000 USD

  • The last Close Price of the last closed 15 minutes candle (9.45pm) is 995 USD

  • The condition is not met. The condition looks for a 5% increase over the 995 USD of the previous closed 15 minute candle

  • Let's assume at 10.13pm the price of 1 ETH reaches 1,045 USD (straight from 995 USD).

  • The condition of a 5% increase is met and the rule immediately triggers

Example 2

  • Rule starts at 10.03pm, price for 1 ETH is 1,000 USD

  • The last Close Price of the last closed 15 minutes candle (9.45pm) is 995 USD

  • The condition is not met. The condition looks for a 5% increase over the 995 USD of the previous closed 15 minute candle

  • Let's assume it is 10.37pm, the price of 1 ETH is 1,020, the 10.15pm Close Price of the 15 minute Candle was 1,010 USD. The condition now looks for a 5% price increase against the 1,010 USD.

  • The rule would trigger if the price were to reach 1,060.5 USD.

Did this answer your question?