Questions from Beginners MQL5 MT5 MetaTrader 5 - page 174
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
The MQL5 indicator now calculates correctly and economically.
Hurrah!!! It worked! Thank you! How can I change "price[i]" variable to maximum? If I understand it correctly, it requests the current price.
I need something similar to "iHigh" from MQL4 to see the extreme outliers over the line.
Please advise how to bind trading signals robot to a real trading account on the platformuTrader TP, the problem is that when you sign up in the login window pops up a comment that the username of the trading account can only be digital. and I login is the name of my mailbox. how in this case, bind the robot to your real trading account?
I don't.
Hooray!!! It worked! Thank you! How can I replace the variable "price[i]" with the maximum? If I understand it correctly, it requests the current price.
I need something similar to "iHigh" from MQL4 to see the extreme outliers over the line.
When attaching the indicator to the chart, click on tabs - there you will find a drop-down list with different price variants on which the indicator will be calculated (Open, Close....)
In the calculate function put in place of the previous one:
and replaced price[i] by high[i]. It seems to work. It works.In the function calculate put in place of the old one:
and replaced price[i] with high[i]. It seems to work. It works!In that case you will be hardwired to High in the indicator code. It's the right thing to do though. Good luck!
Need to get the time or index of a bar obtained using the ArrayMaximum function.
I managed to get the maximum, the total number of bars. And then it's not clear.
Need to get the time or index of a bar obtained using the ArrayMaximum function.
I managed to get the maximum, the total number of bars. But further on, it is not clear.
Read theArrayMaximum help at https://www.mql5.com/ru/docs/array/arraymaximum.
You have already got the index of the bar.
Read the help aboutArrayMaximum https://www.mql5.com/ru/docs/array/arraymaximum
You already got the bar index.
Thank you! The index has been extracted. Now I can't get its correct time. I use the function CopyTime for this.
Maybe there are some other ways to get the time of got index element?
Thank you! The index has been extracted. Now I can't get his correct time.