At the moment, I have some code that currently works fine within an MRO* essentially as follows:
MRO(delegate {return MACD(4, 8, 4).Avg[0] > 0 && MACD(6, 12, 6).Avg[0] > 0 && MACD(8, 16, 8).Avg[0] > 0 && MACD(10, 20, 10).Avg[0] > 0; }, 1, 30);
Is there any way I can introduce a loop into the MRO to automate this process, so that instead of having just these four MACD tests, all I would have to do is change one variable so I can have an arbitrary number of them, something like:
for (int i = 2; i <= TopMACD; i++) { MACD(2*i, 4*i, 2*i).Avg[0] > 0 }
This may not be possible, of course, but any advice on this will be much appreciated.
(* For readers new to Ninja: MRO = Most Recent Occurrence: this is a very powerful method)
Comment