I have one more little job for a coder. There is a code snippet 1 trade per day… is it possible to write a similar function on an indicator? I need this function for the MACD:
Long: MACD crosses over 0, if MACDLINE > 0 Short vice versa
But only for the 1st cross of the MACD, ideally the following crosses can be counted/optimized. The counter is then reset as soon as the MACDLINE generates a new signal/new swing. Is this doable?
Explanation in the picture (sorry smartphone) green bar: counter start,
1-4: possible entries,
5: reset the counter.