AlphaStrategy1_trail
Forums › ProRealTime English forum › ProOrder support › AlphaStrategy1_trail
- This topic has 8 replies, 3 voices, and was last updated 5 years ago by
Nicolas.
-
-
04/28/2020 at 8:19 AM #128274
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.
04/28/2020 at 8:27 AM #12854104/28/2020 at 9:33 AM #12856004/28/2020 at 9:59 AM #128572I 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?
04/28/2020 at 10:01 AM #12857304/28/2020 at 10:34 AM #128582Thank 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?
04/28/2020 at 10:49 AM #128585Unfortunately 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/
04/28/2020 at 10:57 AM #128587Thanks. I will look into this.
I had the feeling that it is too good to be true anyway 🙂
04/28/2020 at 11:44 AM #128594 -
AuthorPosts
