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.
Size:
Color:
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.
Size:
Color:
Yes. That's exactly what I was thinking was happening. Thank you very much.
Size:
Color: