Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1202
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 afternoon!
I am struggling with one question. Could you please tell me how to solve it?
The idea is the following: I draw a line at the previous maximum of the candle. I want the line to be shifted depending on the previous maximum.
Who prevents me from changing the line price on ticks when I need it?
There are 2 options
Hi namesake!)
Considered option 1, something close. But not correct somehow happens. At first stages according to plan, then in a tailspin.
And who prevents you from simply changing the line price on the ticks when you need to?
Well, sort of, yes. If you add conditions just a little bit, there's a problem. It draws one line. What it needs is: if there is no new high/low, it is saved.
Well, sort of, yes. If you add conditions just a little bit, there's a problem. It draws one line. What it needs is: if there is no new high/low, it is saved.
I don't know, who's stopping you from adding another line for Low...?
You can add a whole array of lines or other objects and mark every Low and High with it. What's the problem...?
Please, advise how to get the price and time of the first deal when opening a position and the price and time of the first deal to close this position from the history. My purpose is to get an array of entry points from the history, because I sometimes equity when trading manually, so I want to know if it is effective or not. I don't know anything about trading operations, I use a class, where these functions have not been implemented :(
HistorySelectByPosition will help you
Then there are several options:
I don't know, who's stopping you from adding another line for Low...?
You can add a whole array of lines or other objects and mark every Low and High with them. What's the problem...?
Yes! It's working properly! Thanks Mihail!
And if you have pierced the bottom line and need to delete it after the piercing, like:
Right?
Yes! It works like it should! Thanks Mihail!
And if the bottom line is punched and you have to delete on the fact of punching, like:
Right?
The program only uses two lines to highlight levels. Why delete and then create it again if you can just set it to 0...?
The line will not be visible on the chart... And then you can show it again:
lLine.Price(0, PRL);
The programme only uses two lines to highlight the levels. Why delete and then recreate when you can just set it to 0...?
The line will not be visible on the chart... And then you can show it again:
Like this? Or is it necessary to declare something else in OnInit?