Questions from Beginners MQL5 MT5 MetaTrader 5 - page 540
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
writes error 'ST' - undeclared identifier test3.mq4 69 13 andpossible loss of data due to type conversion test3.mq4 85 15 help correct
Ladies and gentlemen, I am relying on you!
Please advise conceptually how to handle the bars from 15 to 15.55 for the last 250 trading sessions. I'm a bit confused by the amount of information...
Ladies and gentlemen, I am relying on you!
Please advise me conceptually how to handle the bars from 15 to 15.55 for the last 250 trading sessions. I'm a bit confused by the amount of information...
Aleks,
use an indicator with the function
OnCalculate(const int rates_total,
const int prev_calculated,
const datetime &time[],
const double &open[],
const double &high[],
const double &low[],
const double &close[],
const long &tick_volume[],
const long &volume[],
const int &spread[])
{
to access all history bars?
Guys, where can I read about weekend and holiday filtering?
I only need the trading days of the Asian session.
Guys, where can I read about weekend and holiday filtering?
I only need the trading days of the Asian session.
pako,
const uint SecsPerDay = 60 * 60 * 24; // number of seconds in a day
datetime newtime = TimeCurrent() - SecsPerDay * 6; // calculation
Alert(newtime); // output result
I can find the last date like this. The answer is March 19, Saturday. And I only need weekdays.
pako,
const uint SecsPerDay = 60 * 60 * 24; // number of seconds in a day
datetime newtime = TimeCurrent() - SecsPerDay * 6; // calculation
Alert(newtime); // output result
I can find the last date like this. The answer is March 19, Saturday. And I only need weekdays.
You got me wrong,
There are no Saturdays and Sundays on the D1 chart.
Why look for something that doesn't exist?
https://www.mql5.com/ru/docs/constants/structures/mqldatetime
https://www.mql5.com/ru/code/download/10513/4Sessions.mq4