I tried with your suggestions and now the first part, until “Condictions to exit long positions” seems to be fine. But I get a missing character warning first line of “conditions to exit long positions (line 17).
The conditions for exiting the positions I want is: at 4R, close 50% of position and trail the rest either by lows of the day or 5% (the code I put is with 5%). I’m not completely suremy code is fine for this conditions, but I think it is.
Help would be appreciated!
Will the “Myestimatedvol” condition I added work? Is basically the same the “estimatedvolume” one does?
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.