josemiguel1812:
If a position is kept open by weekend or holiday involved, how to measure the net time, real-time market that is open?
If we use the following function we obtain the natural time but not the actual open market ...
Someone proposed method to obtain the net or real-time market?
Something like this :
datetime minutes[]; datetime openTime = (datetime)PositionGetInteger(POSITION_TIME); int countMinutes=CopyTime(_Symbol,PERIOD_M1,openTime,TimeCurrent(),minutes);
Not perfectly accurate as you can have missing M1 bar. But you get the idea.
angevoyageur:
Thank you very much
Something like this :
Not perfectly accurate as you can have missing M1 bar. But you get the idea.

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
If we use the following function we obtain the natural time but not the actual open market ...
Someone proposed method to obtain the net or real-time market?