Hey! I want some help with an entry code. It should go long if the last 5 bars have dropped x number of points.
I have searched here on the forum but can not find anything.
Entries are perfect, you can append this line to your code to easily spot signals in the variable windows that is opened by ProBackTest:
1
graphDiff>=X
your IF at line 7 is a bit weird, as it is mot closed until the end (with the very last ENDIF), thus leaving your Trailing Stop idle most of the time. I suggest that you move the very last ENDIF to line 12, unless this behaviour is intentional.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.