-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Troubleshooting - Step size doesn't work correctly #24
Comments
Thanks for raising the issue @Avyyys , Could you please share the sample publicly available TradingView Strategy with the exact 'start' 'end' parameters that you are running? So that I can reproduce the issue on my side. Once you share it here, I will share the details regarding the issue. |
This is not the same code as in the picture, but with this strategy I have had the same problem. Often, Optipie also calculates quite a lot of extra values for some reason and sometimes it has finished earlier than it should and also made an incomplete report. In this code, I have had 2 parameters open, the values of the first parameter are 5 - 30 - 2 and the values of the second parameter are 50 - 250 - 10. Once I tried to add two more parameters, both of which had values of 1 - 6 - 1, but then it went completely messed and kept calculating extra values. //@Version=5 // Input for the lengths of two MAs // Function to calculate different types of MAs // Input for the types of two MAs // Calculation of two MAs // Plotting two MAs // Conditions for entry and exit signals // Using strategy.entry and strategy.close for signals // Closing positions |
Hey @Avyyys I have just checked that out and problem is that your I have set 'step size' values explicitly for the first 2 inputs like this:
To match the step sizes which you set for OptiPie. You can find the sample optimization report for this strategy, for Please let me know if you have further questions. |
Apparently that is a quite common issue that has been raised here multiple times so that to mitigate this problem I will add this solution to FAQs |
I have had problems with step size. When I have more than one parameter, for some reason I can only get the step size of the first parameter to work, but not the step size of the second parameter. Even in the first parameter it only works if I add number like "2.0", but without ".0" it doesn't work at all. However, this solution no longer applies to the second parameter, I've tried everything, but I can't get it to work in another parameter at all. It always counts every number that is between the "start" and "end". I have also tried with another browser, but it had no effect.
The text was updated successfully, but these errors were encountered: