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?
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.
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue