Attached strategy of 5 regression lines and buy/sell. When I run Optimisation the Days parameter works but the Score parameter does not work.
Also could you please check the Buy and Sell script as I am not sure if it is 'peeking or not' Thanks Ian
Also could you please check the Buy and Sell script as I am not sure if it is 'peeking or not' Thanks Ian
Rename
You declared double scoreThreshold in 2 places.
CODE:
//IS: double scoreThreshold = Parameters[1].AsDouble; //SHOULD BE: scoreThreshold = Parameters[1].AsDouble;
Thanks Cone - works perfectly. Any comment on the Buy/Sell script? Regards Ian
Just reviewing the code I don’t see anything that screams “peeking”.
Your Response
Post
Edit Post
Login is required