Entry counters within the MACD

Forums ProRealTime English forum ProOrder support Entry counters within the MACD

Viewing 4 posts - 1 through 4 (of 4 total)
  • #194607

    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.

    #194753

    There you go:

    #194795

    Thanks, but I meant it as coding for a strategy. Counting condition Long/Counting start is Cross MACDLINE above 0. Counter reset is Cross MACDLINE below 0 and at the same time counting start for Short. The crosses of the MACD itself are counted, each long and short. I want to find out how many MACD crosses can be lucrative within a swing of the MACDLINE.

    #194828

    Bob’s your uncle:

    1 user thanked author for this post.
Viewing 4 posts - 1 through 4 (of 4 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login