Simple MACD crossover strategy

Forums ProRealTime English forum ProOrder support Simple MACD crossover strategy

  • This topic has 2 replies, 2 voices, and was last updated 3 years ago by avatarRich.
Viewing 3 posts - 1 through 3 (of 3 total)
  • #152356

    Hello all, another beginner here looking for help as I try to learn more about PRT – falling at the first hurdle as this is my first dabble with programming!

    I’m trying to make a simple MACD crossover strategy that buys long when the MACD line crosses over the MACD signal line and sells short when the MACD line crosses back under the signal line. Profit target is 200, stop loss 100. I’ve looked at the online guide and other forum posts but can’t get this working – can anyone help me to fix it please?

    Very simple for most of you I’m sure! Thanks 🙂

    #152358

    2nd line

    macline not macsig

    1 user thanked author for this post.
    #152360

    Thanks Monochrome, it worked but then it sold when it should buy and bought when it should sell so switched ‘crosses over’ with ‘crosses under’ and vice versa. Seems strange that way round but does what I expect now.

Viewing 3 posts - 1 through 3 (of 3 total)

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