Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1340
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Good day to all. I have an EA which signals on crossing a trend line and a horizontal line of a certain colour. I decided to re-do it so it signals when the trend line and horizontal line cross a certain style. It worked. But I need it to signal when a trend line crosses only the beam to the right. I understand that I have to add
OBJPROP_RAY_RIGHT
Hi all J. I keep sawing the Grail machine. And encountered such a not pleasant thing as error 130 when setting pending orders. But what's interesting is that when opening with market orders everything is fine. There are no wrong stops appearing.
I will mention the fact that there are two ways to calculate the stop. You can use either a fixed stop in points or atp.
If we set a fixed stop or atp, we get error 130 when opening a pending Sell Stop order, but pending Buy Stop seems to open normally, although I am not 100% sure. Although I check it and see that the pending buy stop orders are opened with the error 130 as well. I get the stop loss value this way
Everything is normal when opening using market orders. I open pending orders like this
Please, tell me what I am doing wrong and how should I fix it?
Hi all J. I keep sawing the Grail machine. And encountered such a not pleasant thing as error 130 when setting pending orders. But what's interesting is that when opening with market orders everything is fine. There are no wrong stops appearing.
I will mention the fact that there are two ways to calculate the stop. You can use either a fixed stop in points or atp.
If we set a fixed stop or atp, we get error 130 when opening a pending Sell Stop order, but pending Buy Stop seems to open normally, although I am not 100% sure. Although I check it and see that the pending buy stop orders are opened with the error 130 as well. I get the stop loss value this way
Everything is normal when opening using market orders. I open pending orders like this
Please, tell me what I am doing wrong and how should I fix it?
no price normalization
no stop loss accounting
DanilaMactep: Получаю значение стоп лосса во таким макаром
Makar, please don't touch it.)
Can you tell me what I'm doing wrong and how to fix it?
Try increasing the fixed stop and if the error for a fixed stop disappears, the problem is in MODE_STOPLEVEL
TakeProfit should also be checked
Hi all J. I keep sawing the Grail machine. And encountered such a not pleasant thing as error 130 when setting pending orders. But what's interesting is that when opening with market orders everything is fine. There are no wrong stops appearing.
I will mention the fact that there are two ways to calculate the stop. You can use either a fixed stop in points or atp.
If we set a fixed stop or atp, we get error 130 when opening a pending Sell Stop order, but pending Buy Stop seems to open normally, although I am not 100% sure. Although I check it and see that the pending buy stop orders are opened with the error 130 as well. I get the stop loss value this way
Everything is normal when opening using market orders. I open pending orders like this
Please, please, tell me what I am doing wrong and how should I fix it?
Error 130 occurs not only when a stop or take order is placed, but also when the pending order is placed too close to the current price. Not the stop or take of that order, but the opening/setting price of the order.
What does the dot mean?
What does the dot mean?
What does a dot mean?
Access to members of the structure
Error 130 occurs not only when a stop or take is set, but also when a pending order is set too close to the current price. Not the stop or take of this order, but the opening/setting price of the order.
WHEN SETTING A PENDING ORDER, I CALCULATE THE PRICE AS FOLLOWS (I DON'T INTERFERE WITH YOU, YOU ARE AT LEAST NOT MY TYPE TO INTERFERE;-))
HOW DO I CHECK IF THE OBTAINED VALUE FALLS WITHIN THE ALLOWED RANGE? I DON'T UNDERSTAND WHAT I SHOULD DO, AND HOW DO I MAKE SURE THAT IF THE CALCULATED VALUE IS LESS THAN THE ALLOWED ONE, THE ORDER WOULD BE OPENED AT THE MINIMUM POSSIBLE DISTANCE ANYWAY?