Strange problem - page 2

 
Fernando Carreiro #:

It seems that what is "wrong" is that you are not identifying your Prints, so you are unable to see which print belongs to what, leading to confusion.

And while your are it, best to print out the value of "minimum_rate" to make sure of its value, just as a debugging precaution.

EDIT: You might want to Print out the Symbol's name as well to help identify the values and make sure they are in agreement with the contract specifications.

I already did that but trimmed down my code for readability.


Edit: I found the problem. I was doing a transformation to the printed value. Sorry, I don't know how I missed this.

 
meta_trader2352345 #:I already did that but trimmed down my code for readability. Edit: I found the problem. I was doing a transformation to the printed value. Sorry, I don't know how I missed this.

That is why I stated that you should show your actual code, but it seems that your second attempt was not your actual code either. 🤦‍♂️