Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1818
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
Is the answer above unsatisfactory?
You answered the wrong question.
I have answered the question you asked.
Link to documentation.
Good time!
I have a question, but I have not found a solution on traders' web sites. The idea is the following, buttons BUY and SELL, lots, TP, SL, current price on the chart, but when I press them I get "magic" depending on modes:
1) we need one more parameter "step back in pips from ASK/BID" from the current price at the moment of BUY/SELL pressing. That is the price jumps and sometimes jumps a little bit higher and a little bit lower, which is comparable to commission, that is sometimes paid by broker (it is important for scalpers), for example, you set 5-8 points and the price may go to this distance, but not, the request is cancelled in some time, for example, you can set this parameter in seconds.
2)This mode is even more complicated and interesting. For example, minimal/navigational price for the last 1 minute is calculated (or you can set it manually - for 2 minutes, for 30 seconds) and at the moment of pressing BUY or SELL button a pending for this price is made.
All this should be registered in some table on a chart for convenience (of course, not in Expert Advisor's parameters).
Who has found, coded or seen something similar?
?
There is a need to get a ticket of the first open order that is still open.
Thought I could go through the ticket number and time=the oldest one by time, or I could just go through the tickets and choose the one with the lowest value.
Who has done this?
Maybe I'm not thinking correctly and there are good optionsThought I could go through the ticket number and time=the oldest one by time, or I could just go through the tickets and choose the one with the lowest value.
Who has done this?
Maybe I'm not thinking straight at all and there are right optionsGood afternoon!
Who has found, coded or seen anything like this?
Good afternoon all !!!
Help to fix the code.
Here is a command to open first orders in EA's grid:
The code defines time of start and end of the first orders opening, but because of the difference in the Hour() function that takes part in calculation of trade time and Time[] array that takes part in visualization of start and end of trade on the chart
there is a discrepancy between estimated trade time and visualization on a chart.
Thanks for your help!
there is a discrepancy between estimated trade time and visualization on a chart.
Thanks for your help!
Like this?
So we have to try it. Where do you get it? Can you give me a link? And I think you've confused it with the breakeven point.
I'd appreciate it.
So we have to try it. Where do you get it? Can you give me a link? And I think you've confused it with the breakeven point.
I'd appreciate it.
What you want to do is write it yourself.)
If you need my help.