How To Use ‘Greater/Lower Than Previous Value’ Of Indicator
Last updated November 4, 2024
How To Use ‘Greater/Lower Than Previous Value’ Of Indicator
Coinrule has introduced a new feature 'greater/lower than previous value'. This update allows you to compare the previous value of an indicator to the current value to trigger events and ensures a more accurate signal is used for your strategy.
This feature works with Bollinger Bands (BB), Exponential Moving Average (EMA), Moving Average (MA) and Open High Low Close (OHLC) on Coinrule.
See below for an example on how to incorporate this feature into your strategies:
Example
In the example above, when using ‘EMA (12) greater than previous value of EMA (12)’ the bot compares the value of the most-recent available value of EMA (12) with the previous value of EMA (12).
If your rule features ‘EMA greater than previous value’ condition and specifies a 1-hour timeframe, the rule will use the previous 1 hour EMA close value compared to the current EMA close value as a reference point for the following 1 hour. If at any time, within this timeframe, EMA (12) is greater than the previous value of EMA (12), the rule will execute. This also applies when using “indicator lower than previous value”
Important tip: Coinrule uses only confirmed “closed candles” to trigger events and applies to indicators also. The importance of using closed candles to trigger events is to avoid intra candle volatility and to prevent the rule from triggering false signals.
We hope you enjoy the new feature. Happy trading!