Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 819
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
Read the documentation already :-) Period() returns just the id of the current period - why are you multiplying by it?
instead of PERIOD_M1 (which is given as an example), pass it to PeriodSeconds( Period() ) - then get how many seconds in 1 bar of the current period.
Anyway, the M15 chart puts the arrow on the bar that opened at 20:00 but the time specified is inside the bar that opened at 19:45. What is it?
Still on the M15 chart puts the arrow on the bar that opened at 20:00 but the specified time is in the bar opened at 19:45. What is it?
the code has become more compact and at least you already see what you want to see :-)
but if you make a "player" of deals, it is only for the history part ;-)
otherwise arrows will appear "from the future" - at the moment when the bar opens, and you will cheat yourself
...
there should be another branch of algorithm, that works with ticks and TimeCurrent()
Otherwise arrows will appear "from the future" - at the moment of bar opening
Yes, it will open on H1 at the start of the hour even if the time is 01:59:00
Maybe there is a way to check if the opening of the bar on M1 is equal to 01:59:00 or any other time ?
Which function can check whether there is a connection with the server or not, I want to write a condition in the format that if there is no connection with the server of the office, then wh
Good afternoon everyone, can you tell me whether the chart tabs can be changed programmatically? What is the best way to do this. Thank you in advance!
Can the function
Called before the entire program is initialised, so that it is executed before the rest of the code is read, you mean before the OnInit function? If yes, can you tell me how? In fact, this function is useless without receipt of ticks.
Is it possible to
Call before initialising the whole program, so that it is executed before the rest of the code is read? If so, can you tell me how? Basically, without ticks coming in, this function is useless.
You can do it without the ticks.
hello! please help how to put in RSI alert, push notifications tried it myself it does not work gives out error
LOCKED CODE DELETED