Hi Everyone,
I am looking for some help on programming an EA. I am new to mt4 programming and could use some coding suggestions / examples.
I need to get the high and low prices for a time period for the day, for example, 14:00 - 16:00 GMT. The EA needs to be able to get this info though out the day so I cannot simple tell it to look back X number of bars. Instead it needs to be able to look at the current time and look back to 14:00 - 16:00.
To save on calculation it may be better to get this info once, put it in a file, and have the EA refer to the file though out the day. Then the next day it will update the file with the high and low prices for the day.
I also need to get it to trade only between certain hours, i.e.; 16:00 - 22:00.
Thanks!
I am looking for some help on programming an EA. I am new to mt4 programming and could use some coding suggestions / examples.
I need to get the high and low prices for a time period for the day, for example, 14:00 - 16:00 GMT. The EA needs to be able to get this info though out the day so I cannot simple tell it to look back X number of bars. Instead it needs to be able to look at the current time and look back to 14:00 - 16:00.
To save on calculation it may be better to get this info once, put it in a file, and have the EA refer to the file though out the day. Then the next day it will update the file with the high and low prices for the day.
I also need to get it to trade only between certain hours, i.e.; 16:00 - 22:00.
Thanks!