I just want my strategy to start flat every time. Is there a way to do this?
I saw a thread from 13 years ago that said to add the below line to the script but it did not work for me, I get an error stating that the name "Historical" does not exist in the current context
Add this to the top of OnBarUpdate():
Code:
if (Historical) return;
Comment