Trades exceed the timeout
Author: mikesblack
Creation Date: 2/7/2016 2:19 PM
profile picture

mikesblack

#1
After some time examining my code, I believe the issue might have been in the line
CODE:
Please log in to see this code.
. Given my suspicion, I commented that line as well as removing one of the 3 trailing curly braces. Now when I run the program, bars held on the trades tab seem more reasonable, e.g. 8 vs 100 plus bars.

Still not entirely sure how this system will run on other data sets. I ran my last trial on the S and P 500 All data, with Position Priority sizer.

I am curious why I was returning Bars Held well in excess of what I was expecting. I would appreciate feedback on this prior to making similar changes to my other systems with Position.Priority.

Thanks very much for help on this topic.

CODE:
Please log in to see this code.
profile picture

Eugene

#2
Re:
CODE:
Please log in to see this code.


Just give it a thought. At the time the exit is evaluated, atrp[bar] is different from its value at the time of entry. So you'll get an exit that never triggers.

Here's your code cleaned up for clarity:

CODE:
Please log in to see this code.
profile picture

mikesblack

#3
Yes. That's exactly what I was thinking was happening. Thank you very much.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).