Hi,
I have managed to create a variable for Daily profit, Weekly profit and monthly profit, but can't find the PERIOD_?? for Yearly.
I have searched everywhere, but can't find the code for PERIOD_YR
Yearly , same as above, I just need to change monthly to yearly and the Period_MN1 to whatever the Yearly variable code is...
Any help would be greatly appreciated.
All available timeframes are shown in: Chart Timeframes
- www.mql5.com
Do you know how to calculate the Yearly Balance from (Opening Account Balance 1/1/2021)?
Do you know how to calculate the Yearly Balance from (Opening Account Balance 1/1/2021)?
Request a trade history for the desired period of time. Sum up the trading result of all deals
Request a trade history for the desired period of time. Sum up the trading result of all deals
do you have the code to do this?
Hi,
I have managed to create a variable for Daily profit, Weekly profit and monthly profit, but can't find the PERIOD_?? for Yearly.
I have searched everywhere, but can't find the code for PERIOD_YR
Yearly , same as above, I just need to change monthly to yearly and the Period_MN1 to whatever the Yearly variable code is...
Any help would be greatly appreciated.
This?
MqlDateTime YEAR_BEGIN;
YEAR_BEGIN.year=Year();
YEAR_BEGIN.mon=01;
YEAR_BEGIN.day=01;
YEAR_BEGIN.hour=00;
YEAR_BEGIN.min=00;
YEAR_BEGIN.sec=00;
YEAR_BEGIN = StructToTime(YEAR_BEGIN);
- www.mql5.com
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi,
I have managed to create a variable for Daily profit, Weekly profit and monthly profit, but can't find the PERIOD_?? for Yearly.
I have searched everywhere, but can't find the code for PERIOD_YR
Yearly , same as above, I just need to change monthly to yearly and the Period_MN1 to whatever the Yearly variable code is...
Any help would be greatly appreciated.