RUN BLOCK not at the start of the function tree
-

Hi there,
Is it correct if I would have a Run Block in another tree to the block as mentioned in the attached picture, that the block will start at the entry block 548592 or must the entry block be the first one in the tree?
Second where do you put such "remote" functions (tick, timer,...) if they have only be used for remote calls in order that they will be only executed, if there is a call by a Run Block function?
Thanks in advance!
-
You're partially right. As soon as the 'RUN BLOCK' is executed, the action will be moved to the destination block. In your example it will be 584592, regardless of its position in the block tree. Then the action will continue from there as per your current structure below it until the last one (block 318077). I assume this example above in in the 'on tick' tab. This means the next block tree will be executed accordingly and, potentially, the same 'RUN BLOCK' will be executed again, so you need to be careful not to create an infinite loop that way. I hope this will also be useful for your second question.
-
@l-andorrà
Thanks a lot, now its clear
-
just to be clear: the run block will be only called just before opening an position to calculate the lot size. So I think there will be no infinity loop in this case. So I can set the once per second block to something like 1000 or put the tree in the timer tab in order to avoid unneccesary proccesiing.
-
I cannot guarantee that is what will happen without watching the full project. There can always be unexpected side effects when playing with loops.

-
I think in this case not, because just before opening a position I will call the block . I want to avoid processing time for unnessary calculation of lots if no position will be opened. - jist to go sure I have add lot-msg to see when the calc will happens, and it works as expected
thanks -
To put this simply, if true it will follow the orange dot, if false the yellow. the numbers only come into effect in unconnected trees.