Hello, after testing a lot of systems on a daily timeframe, I finally came up with this one. Looks pretty good to me. Seems to work best with futures. Any comments are welcome.
My only comment would be….. where’s the strategy?
Sorry, my fault, I modified the topic.
I haven’t looked at the code (because my platform is not open) but my first thoughts when I saw that equity curve were that tick by tick was not on or the stop level is very close and you would not be allowed to trade in real life with a stop level that close.
Plus how is the equity curve increasing when it shows on the positions chart that you have no positions open?
Thanks for sharing, but I also think that you have used an instruction like SET STOP PTRAILING?
Thank you for your comments.
Yes I have used “SET STOP PTRAILING” in the code. I thought it is using a trailing stop. Isn’t it?
Unfortunately SET STOP PTRAILING does not use tick by tick data and so gives false results.
You should use a hard coded trailing stop that works as expected such as can be found here:
https://www.prorealcode.com/blog/trading/complete-trailing-stop-code-function/
Thanks. I will look into this.
I had the feeling that it is too good to be true anyway 🙂
Thanks for sharing your code anyway, it is always greatly appreciated!