0

what is "Error on bar 1403:invalid percent value. Expected from (0,100], passed 500.00?

I have this error when I setup percent in strategy.close (50%).

This is the string:

strategy.close("Short1", qty.percent= 50 , comment = "Close for 50%")

I have no problem if I setup 50%, but the algo close more early the position, so I would close it at bigger percent.

I try to setup in this method:

0.1*100

But Tradinview notify me the problem 1403.

0 Answers0