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
- Case 2 of the prioritized timer block (circled in red) compared to the previous case
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.
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.