on Init and on Trade too
-
I want to display the number of trades, etc., for this magic number on the chart. Currently I compute and display it both places, on Init and on Trade so it stays up to date.
Is there a way to call the same code from both places so I only need to update one place when I make changes?Thanks
-
You can find a block called "Run blocks" somewhere. Use it in the Init section to run the first block of the group in the Tick section.