Priority of blocks in the Kryll strategy editor

Whether you are a creator of your own strategies or a publisher in the marketplace, many people in the community want to understand the value of prioritizing condition blocks after the OR block. This article can help you understand this and give you tips to better understand this notion and potentially optimize your strategies in the Kryll strategy editor.

General rule of priority of blocks

With Kryll, when several condition blocks connected to an OR are validated simultaneously, the platform will execute the first block connected to the OR block.

Thus, if two or more conditions (RSI, MACD...etc) are validated, the blocks connected first to the OR block have priority over those connected later.

Practical cases to better understand

Here we take the simplest simultaneous condition: the time with a timer block that is validated here every day on the graph, but which way to go?

  • Case 1 of the prioritized timer block (circled in red) on the other
Video showing the left timer in priority to the right one, the left block is not linked to any buy/sell block, so nothing happens (no trades) after Backtest
  • Case 2 of the prioritized timer block (circled in red) compared to the previous case
Video showing the timer on the right in priority to the one on the left, the block on the right being linked to a daily purchase block; we therefore only have purchases after Backtest

The two cases presented show that the way to connect blocks to an OR can lead to a completely different trading path when the conditions are validated simultaneously.

Conclusion
It was necessary to clarify the logic of block priority to help beginners in the creation of Kryll strategies. It is also a good excuse to remind the Publishers of the strategies on the marketplace of these fundamentals in order to give them ideas for optimizations.

Happy Trading!

Website : https://kryll.io
Twitter : @Kryll.io
Telegram EN : https://t.me/kryll_io
Telegram FR: https://t.me/kryll_fr
Facebook : https://www.facebook.com/kryll.io
Support : support@kryll.io