ProRealCode Library Strategy Compilation

Forums ProRealTime English forum ProOrder support ProRealCode Library Strategy Compilation

Viewing 7 posts - 1 through 7 (of 7 total)
  • #152359

    This strategy is a sort of tribute to this forum. I’ve gratefully been using stuff from here for some time, and wanted to see if I could create something entirely with tools from this website.

    So: based on one of @Nicolas many great inputs to this website, the TopBottom Indicator, this strategy uses the TopBottom indicator to generate buy-signals, Moving Averages to confirm market direction, and RSI to make sure it’s not already overbought (though I’m unsure how much the RSI indicator helps here).

    The code for the dynamic SL also comes from this forum, but unfortunately I can’t find who wrote it. If it was you, or if you know who it was, please give that person credit!

    The strategy only goes long, almost exclusively works on 5M charts, and in demo I’ve found it to also be quite efficient on stocks that rise quickly from time to time. It is quite good at catching the rapid rises. The backtest in the picture is what you would get from running one contract of Nasdaq, and the basecode in the file is meant for that. However, below I’ve listed some other examples for charts to use it on, and suggestions for values to be used. Please note that it has not in any way been optimized, nor is the strategy statistically ensured to be working, but rather these values are meant as a foundation for discussion!
    Please let me know if you have any suggestions or questions:-)

    Powercell: 500 contracts, SL: 500, Trailstart 80.
    Bitcoin: 1 contract, SL: 200, Trailstart 60.
    Tesla: 6 contracts, SL: 4000, TrailStart 1000.

    4 users thanked author for this post.
    #152598

    Thanks for sharing 🙂 I made your post a forum topic, I think people will enjoy taking part into extended development based on your idea, we’ll see!

    1 user thanked author for this post.
    #152599

    Thank you for sharing Edward.

    Did you try the shorts side? I note that you have ExitShort conditions in the code.

    I’ll have a go at Shorts myself later.

    I’ve set it going on Demo Forward Test on DJI 2 min, spread = 2 (better at 5, but I’d done the screen shots).

    #152602

    Thanks for sharing the results from DJI GraHal! Hadn’t tried that so interesting to see it working there.

    I did try the short side, but on the Nasdaq for example the drawdown was too big in October for my liking. It is already on the limit for what I may tolerate as far as drawdown go.

    On stocks that have a long term trend upwards it just seems to give bad entry signals for shorts.

    I have not yet tried it on currency though, so might work there!

    Left the exit short code in if anyone finds something where SellShorts work.

    #152608

    Left the exit short code in if anyone finds something where SellShorts work.

    Good idea – glad you did!

    Apologies, I just noted from the better font on the Forums front page that it is Edvard (not Edward as I had used).

    Cheers

    #152633

    Haha!
    Didn’t even think about it – the Swedish spelling of the name is a weird one:-)

    Cheers

    1 user thanked author for this post.
    #152790

    Thank you @Grahal for the heads up on it’s capabilities on DJI!
    This backtest is with a SL value of 225, and trailstart value of 40. It’s also tested with a 5 point spread. Pretty promising results, so this one is going into the live demo testing phase:-)

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

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