Oh, hello me laugh
I figured out the answer, but forget this thread.
The problem was with the Entry parameter. It is not so obvious, but it's in the documentation at the description of Entry:
Quote
A positive price level or positive distance constitutes an entry stop, a negative price level or negative distance constitutes an entry limit.

If you want to make a Long pending order, and the entry price is above the current price, you use Entry. If the entry price is below of the current price, you must use -Entry. Because without the minus it fills immediately of course (the price is above the entry level).

Last edited by NorbertSz; 10/21/24 18:13.