Coding Timeframes?

 

Hey guys,

Just wondering how do you code an EA to open at a certain time and close at a certain time?? Hence open in consolidation periods, or news peaks.. etc!

Iv been reviewing a few EA I have got with timeframes having issues with decoding it.

Il try post some of the coding that I have got already which im postive is correct but just needs adjusting.

Thanks

tj