Matket is closed function

 

Hi

there is a function that give me a outpot if the matket is open or closed ? (my broker is pepperstone)

thank you 

 
Why do you need it? Wait for OnTick to be called — the market is open.
 

i tried to send order and i get error 132 ( matket is closed ) 

im using mql4

 
nati2009:

im using mql4

I will move your topic to the MQL4 and Metatrader 4 section.