Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1341
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
I HAVE CALCULATED A PRICE FOR SETTING A BREAKAWAY LIKE THIS (MAKAR, YOU ARE AT LEAST NOT MY TYPE TO BE TOUCHED;-))
HOW DO YOU CHECK IF THE OBTAINED VALUE FALLS WITHIN ALLOWED RANGES? THAT'S WHAT I DON'T UNDERSTAND, AND HOW DO YOU MAKE SURE THAT IF THE CALCULATED VALUE IS LESS THAN ALLOWED, THE ORDER WOULD BE OPENED AT MINIMUM POSSIBLE DISTANCE ANYWAY?
Try this,
I think you'll figure it out.
Try this,
I think you'll get the hang of it.
Alexey, thank you very much for this piece of code. But unfortunately I can't read other people's code due to the consequences of a stroke. May I ask you for an instruction on how to use this code and a recommendation on what to attach it to and how to do it?
Here is what has come to my mind. I was looking for a minimum price for x-bars like this
but this is not correct, because I assign min price aihai, not low. corrected for low and the error is less, but still occur(((
So if it is not difficult, send instructions on how to use a piece of discounted code...
Hi all againJ tried to apply the advice you wrote to my last post, but it didn't help. I'm still getting error 130L, but it's probably not the stop loss itself, but the open price. The open price for a buy stop and a sell stop is obtained by determining the maximum/minimum price for an x number of candles, in this way.
The problem is not with the stop because I use the same exact stop and atp and fixed, market orders open without errors. It means the problem is in the calculation of price for setting a pending order. I open orders themselves like this
P/S and I forgot to mention that I want to use pending orders to simulate some kind of price filter for opening a position, i.e. if the price goes in the right direction, a pending order will trigger, but if not, it will be cancelled and I am out of the market. Please, what am I doing wrong in determining the opening price? And maybe there is an easier solution on price filter for deal?
p/s very kindly, if you write a code that can be applied, write a detailed instruction for it as I'm having serious trouble reading the code. A detailed instruction I mean, what this code is for and how it can be applied (to attach it to a variable and do something with it or something else, and please write your comments to the code in a more understandable way). Thanks in advance ;-) P / S who has knowledge and has experience do not go by, help a brotherly - do not screw around ;-) have to finish the Grail OP ;-).
Hi all againJ tried to apply the advice you wrote to my last post, but it didn't help. I'm still getting error 130L, but it's probably not the stop loss itself, but the open price. The open price for a buy stop and a sell stop is obtained by determining the maximum/minimum price for an x number of candles, in this way.
The problem is not with the stop because I use the same exact stop and atp and fixed, market orders open without errors. It means the problem is in the calculation of price for setting a pending order. I open orders themselves like this
P/S and I forgot to tell you that I want to use pending orders to simulate some kind of price filter for opening a position, i.e. if the price goes in the right direction, a pending order will trigger, but if it doesn't, it will cancel and I am out of market. What am I doing wrong in determining the opening price? And maybe there is an easier solution on price filter for deal?
p/s very kindly, if you write a code that can be applied, write a detailed instruction for it as I'm having serious trouble reading the code. A detailed instruction I mean, what this code is for and how it can be applied (to attach it to a variable and do something with it or something else, and please write your comments to the code in a more understandable way). Thanks in advance ;-) P / S who has knowledge and has experience do not go by, help a brotherly - do not screw around ;-) I have to finish the Grail O_o ;-)
In the iLowest function, instead of MODE_HIGH, insert MODE_LOW.
Can you give me a hint? I have drawn a line segment on a graph. I need to know the start and end prices of the segment. Can it be done?
Can you give me a hint? I have drawn a line segment on a graph. I need to know the start and end prices of the segment. Can it be done?
Can you give me a hint? I have drawn a line segment on a graph. I need to know the start and end prices of the segment. Can it be done?
It is desirable that this segment has an original name
In the iLowest function, instead of MODE_HIGH, insert MODE_LOW.
Colleagues!
Someone help me?