I would like to set aside a block of code to reuse numerous times in a strategy. I guess a subroutine.
As an example, I would like to call on this code in different places within my strategy.
ToTime(Time[0]) >= ToTime(6, 45, 0)
&& ToTime(Time[0]) < ToTime(12, 30, 0)
&& MACD(12, 26, 9).Diff[1] > 0
&& Open[0] == 0.005
&& Close[1] < 3
My questions are:
1) Where do I place this code in the strategy structure
2) How is it named/referenced for multiple usages?
Thanks!
Comment