When placing SELL STOP pending orders, I keep getting error 130 - invalid stops. But a BUY STOP order with the same parameters is placed without any problems. Here is a fragment of code
This is a call of a user-defined function, and below is the body of the user-defined function. What is interesting, even if 0 is explicitly put in the OrderSend call instead of a variable, the error is still shown! What may be the problem?
When placing SELL STOP pending orders, I keep getting error 130 - invalid stops. But a BUY STOP order with the same parameters is placed without any problems. Here is a fragment of code
This is a call of a user-defined function, and below is the body of the user-defined function. What is interesting, even if 0 is explicitly put in the OrderSend call instead of a variable, the error is still shown! What may be the problem?
Changed the order to Sell (naturally changing the order price to the current price, but not touching the stoploss) - opens normally. Trying Sell Limit - same song - wrong stops!
I did, I know about the freezing distances, etc., but I don't understand how a zero stop loss relates to all of these limitations! If you see a mistake - tell me. I read the manuals carefully before writing here. I wouldn't write them if I didn't have to.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
But how to insert it into MQL4. It is not included in the standard set of built-in indicators, is it?
so you're on the minutes.
1000 first bars (17 hours converted) is not enough to refer to the previous day.
Where does the figure of 1,000 bars come from? I don't get it.
Where did the figure of 1,000 bars come from? I don't get it.
How many bars do you have in the tester when you start?
h ttps://docs.mql4.com/ru/indicators/iCustom
and how many bars do you have in the tester when you start?
That is, the tester contains an incomplete history when it starts?
Now, by the way, the Expert Advisor is working correctly.
Hello!
When placing SELL STOP pending orders, I keep getting error 130 - invalid stops. But a BUY STOP order with the same parameters is placed without any problems. Here is a fragment of code
This is a call of a user-defined function, and below is the body of the user-defined function. What is interesting, even if 0 is explicitly put in the OrderSend call instead of a variable, the error is still shown! What may be the problem?
Hello!
When placing SELL STOP pending orders, I keep getting error 130 - invalid stops. But a BUY STOP order with the same parameters is placed without any problems. Here is a fragment of code
This is a call of a user-defined function, and below is the body of the user-defined function. What is interesting, even if 0 is explicitly put in the OrderSend call instead of a variable, the error is still shown! What may be the problem?
Find the error yourself by reading the Tutorial, and in this case specifically the Characteristics of Orders and Rules of Trading.
How can I set it to download only some timeframes (not all of them): minutes, 1 hour and days?
Thus: string sTimeFrame = {"M1", "H1", "D1"}; // The string that lists the scanned TF.
On minutes it downloads no more than 2000 bars and my EA needs more than 7000. After pumping with this script, my EA will pump more.
Is it designed this way, not all bars are downloaded?