I am new to mql4, and I would like to see the algorithm of how the seconds are modeled in MQL4 back testing, Thanks.
- 10k TO 10.8MIL 10 MONTHS 20 DAYS
- Great EA in backtest!
- Control Points backtesting model
fxscout:
I am new to mql4, and I would like to see the algorithm of how the seconds are modeled in MQL4 back testing, Thanks.
Seconds are not modeled as such, ticks are.I am new to mql4, and I would like to see the algorithm of how the seconds are modeled in MQL4 back testing, Thanks.
I can only guess that the seconds are calculated by dividing the time-frame seconds by the tick volume for use with TimeCurrent()
I do not know if I understand it wrong, but in this link talks about modeling seconds https://docs.mql4.com/dateandtime/seconds Note At the testing, the last known server time is modelled.

fxscout:
Note At the testing, the last known server time is modelled.
TimeCurrent() is modeled in the tester and has been for a long time, not sure about Seconds()
Note At the testing, the last known server time is modelled.
How to get the value of Close in MQL4 double CL = Close[0] What is the equivalent in MQL5
fxscout: How to get the value of Close in MQL4 "double CL = Close[0]" What is the equivalent in MQL5
Please read the article, Migrating from MQL4 to MQL5, specifically section 3. Predefined Variables for "Close[]", and I quote:
3. Predefined Variables
MQL4 | MQL5 | Description |
---|---|---|
double Close[] | double Close[]; int count; // number of elements to copy ArraySetAsSeries(Close,true); CopyClose(_Symbol,_Period,0,count,Close); | Close Series array that contains close prices for each bar of the current chart. CopyClose, ArraySetAsSeries |

Close - Predefined Variables - MQL4 Reference
- docs.mql4.com
Close - Predefined Variables - MQL4 Reference

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