I would like to use the MAX() and MRO(() functions to find the max high since a crossover condition
I have come up with
XOverBarsAgo = MRO(() => CrossAbove(Close, EMA(Close, 20), 100), 1, 50);
After this is working correctly I would like to pass the output of the MRO function to the MAX function to find the MAX(high) since the crossover occured.
I have come up with
MAX(High, XOverBarsAgo < 1 ? 1 : XOverBarsAgo)[0];
Thanks
Comment