Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 104
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
You can't do it programmatically on pure mql. The window and date should be searched through WinAPI, I think.
It's a pity MQL doesn't have this feature
Are you doing this to speed up testing? If so, just programmatically set a time interval, within which the data is relevant to the EA, and cut off those data which are earlier. The order history in the tester slows down the work greatly - the more positions are closed, the greater is the history, and the longer is the order search cycle.
No, it's not testing, it's for analyzing past trades
Gentlemen programmers, please help me with a difficult question.
The first difficulty is that I have very little programming experience. I have tried some simple things in MQL4. However, I don't have any experience in MQL5. But I need to use 5 now.
The goal is to build the indicator. What it will show, I am only guessing)). Of course, I still don't know if it will be useful. But walk and thee shall reach the right road and therefore it is necessary to begin to do something.
The essence of the indicator is to build a line, the points of which will be calculated by the price of the 1st candle at the moment of opening of the 0th candle. It will be some weighted average value based on the OHLC of the candle. I.e. not for some period in the past, but only a certain value of a certain candle.
The second step is to draw this line at a certain distance from the candlesticks.
The third one is to forbid it to be calculated at certain patterns on the chart, and then to resume the calculation if the pattern is no longer active.
------
Now my main question is if I take an ordinary МАшаша indicator as a base and start sawing it in accordance with what I have imagined? Or would it be better to start from scratch? MA contains the calculation of the line for the period, and I do not need it.
Gentlemen programmers, please help me with a difficult question.
The first difficulty is that I have very little programming experience. I have tried some simple things in MQL4. However, I don't have any experience in MQL5. But I need to use 5 now.
The goal is to build the indicator. What it will show, I am only guessing)). Of course, I still don't know if it will be useful. But walk and thee shall reach the right road and therefore it is necessary to begin to do something.
The essence of the indicator is to build a line, the points of which will be calculated by the price of the 1st candle at the moment of opening of the 0th candle. It will be some weighted average value based on the OHLC of the candle. I.e. not for some period in the past, but only a certain value of a certain candle.
The second step is to draw this line at a certain distance from the candlesticks.
The third one is to forbid it to be calculated at certain patterns on the chart, and then to resume the calculation if the pattern is no longer active.
------
Now my main question is if I take an ordinary МАшаша indicator as a base and start sawing it in accordance with what I have imagined? Or would it be better to start from scratch? MA contains the calculation of the line for the period, and I do not need it.
Is it realistic to redesign the overall colour scheme and interface? Change fonts, put icons and other fun customisation things? If so, links on the subject would be greatly appreciated.
You cannot adjust the appearance of fonts or buttons on the terminal itself. You can only change the position of the individual control blocks by dragging the block with the mouse to a new location.
Gentlemen programmers, please help me with a difficult question.
The first difficulty is that I have very little programming experience. I have tried some simple things in MQL4. However, I don't have any experience in MQL5. But I need to use 5 now.
The goal is to build the indicator. What it will show, I am only guessing)). Of course, I still don't know if it will be useful. But walk and thee shall reach the right road and therefore it is necessary to begin to do something.
The essence of the indicator is to build a line, the points of which will be calculated by the price of the 1st candle at the moment of opening of the 0th candle. It will be some weighted average value based on the OHLC of the candle. I.e. not for some period in the past, but only a certain value of a certain candle.
The second step is to draw this line at a certain distance from the candlesticks.
The third one is to forbid it to be calculated at certain patterns on the chart, and then to resume the calculation if the pattern is no longer active.
------
Now my main question is if I take an ordinary МАшаша indicator as a base and start sawing it in accordance with what I have imagined? Or would it be better to start from scratch? MA contains the calculation of the line for the period, and I do not need it.
Next, also click on this new folder and select New File. An assistant window will open, where you will select the type of program to be created - User Indicator. You will have to go through all the steps of the wizard, add the input parameters, the type of display, etc. You will have to try and figure this out on your own. Once you get to the end, the new indicator template will be created. All you have to do is to fill it with the necessary code, but this is the next step...
Greetings.
Can you tell me how to specify the condition, so that if the current candle has already been opened by the specified conditions and closed manually, it will not open before the new one?