ProRealCode Library Strategy Compilation
Forums › ProRealTime English forum › ProOrder support › ProRealCode Library Strategy Compilation
- This topic has 6 replies, 3 voices, and was last updated 5 years ago by
Edvard.
-
-
12/04/2020 at 12:56 PM #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.
12/04/2020 at 1:39 PM #15259812/04/2020 at 1:42 PM #152599Thank 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).
12/04/2020 at 1:58 PM #152602Thanks 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.
12/04/2020 at 2:42 PM #152608Left 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
12/04/2020 at 6:28 PM #15263312/07/2020 at 2:14 AM #152790Thank 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.
-
AuthorPosts
Find exclusive trading pro-tools on 