Many times traders would like to take buy/sell decisions only if some event happens for m times in n successive candle periods. For this use case, we have an advanced parameter called 'Persistence'.

Persistence is available in the advanced parameter 'Advanced Parameter' section in

  • Price block
  • Indicator block
  • Compare Block
  • Volume Block
  • Logic Blocks

Note: Persistence is not available when uses use the 'Cross up' and 'Cross down' operators.

For example, let us assume a user has the below strategy:

  • Buy when the price was below 5%, for 2 of the last 5 successive candles
  • Sell when the price is above 5%


For this, the buy price block is set up as:

The corresponding strategy would be set up as follow:

Seamlessly create and invest in trading strategies at Mudrex. Start today!

Was this article helpful?
4 out of 6 found this helpful