Hello all,
In programing (adjusting) my latest EA I came across an idea that I'd like to program to make my EA variable to the chart its placed on. Part of its function is to use the chart underneath it for an entry signal...meaning that if the chart is currently on the 4 hr chart that it would look at the hourly close to confirm an entry signal. Likewise if the EA was on the hourly chart it would look at the 15 min chart for its confirmation.
So here is the question...How can I tell the EA to define which chart it is on and similarly how can I tell it to look at the next lowest (or next defined lowest) time frame to take its entry signals...
I'm sure its something to do with the init section but I'm not sure how the mq4 language defines which chart it is currently placed on.
Anyone out there know?
In programing (adjusting) my latest EA I came across an idea that I'd like to program to make my EA variable to the chart its placed on. Part of its function is to use the chart underneath it for an entry signal...meaning that if the chart is currently on the 4 hr chart that it would look at the hourly close to confirm an entry signal. Likewise if the EA was on the hourly chart it would look at the 15 min chart for its confirmation.
So here is the question...How can I tell the EA to define which chart it is on and similarly how can I tell it to look at the next lowest (or next defined lowest) time frame to take its entry signals...
I'm sure its something to do with the init section but I'm not sure how the mq4 language defines which chart it is currently placed on.
Anyone out there know?