Beginner needs some help with EMA cross strategy

Forums ProRealTime English forum ProOrder support Beginner needs some help with EMA cross strategy

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

    Hi all,

    I’ve been trading a system manually for the two years and I’m delighted to say it’s made a profit. What I’ve been trying to do since discovering PRT is to code my manual system, but everything I’m trying isn’t replicating the manual process.

    I’ve attached an image in the hope it’ll make my system a bit clearer, but I’ll explain below.

    The manual system uses three EMA’s – 8, 200, 400 EMA.

    • When the 8ema crosses over the 400ema we go long and when the 8 ema crosses back over the 200ema the long is exited.
    • Once the 8 ema and price enters a “channel” between the 200-400ema no trade is taken – treat it like a no mans land.
    • If price then pops back across the 200ema we go long again, hoping the trend will continue.

    The opposite happens for a short position.

    • If the 8ema moves out of the no trade zone and cross over the 400ema I go short
    • If the 8ema then re enters the no trade zone and crosses back over either the 400ema or the 200ema the trade is exited.

    Obviously the 200 and 400 switch around as the trend develops with the 200 eventually being the second closest ema as the trend in either direction establishes itself.

    You can probably see why I’m struggling to code this now….

    Any help coding this would be awesome as I’m pulling my hair out here 🙁

    #25353

    I suppose you were looking for something like this:

     

     

    2 users thanked author for this post.
    #26346
    NDT

    Hi all,

    Thank you so much for you help! I really appreciate it. 🙂

    Unfortunately I’m still struggling with this code :(. The code very kindly created above isn’t quiet right.

    The system needs to re-enter a long or short position, if the 8ema moves back over the 200ema for a long or under again for a short. I’ve attached some examples to this thread which I hope may help me explain it a bit better.

    Is it at possible to use pro real time to create an area between two moving average or a channel and create a  “no trade area”?

     

    #26375

     

    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