I have a question. Is it possible to update an EA internally before the next tick or, possibly from some other source?
I'm asking because I've created an EA to monitor more than one chart and, based upon the overall profit and the target I set, it will close all orders at that point.
The problem is I have to select a chart to put it on, specific to a certain pair, that is, which is only updated (erratically) by tick for that pair. While all other pairs are updated at different times according to their tick. So, there is nothing synchronous about it and it's not very accurate.
The EA still works but, at the very least (if possible), I would like to have it refresh on a consistent basis. And, if that's possible, dare I ask, I would like to know if it's possible to close and/or delete orders before the next tick? It's easy enough to do manually, I was just wondering if it could be done from the EA itself.
Thanks in advance!
ETA: #1 Have attached copy of EA for anyone who is interested. I give details on how to use it in post 9.
ETA: #2 Added most current version that includes "auto-refresh." Requires both files. I give details of the "script" version in post 43.
I'm asking because I've created an EA to monitor more than one chart and, based upon the overall profit and the target I set, it will close all orders at that point.
The problem is I have to select a chart to put it on, specific to a certain pair, that is, which is only updated (erratically) by tick for that pair. While all other pairs are updated at different times according to their tick. So, there is nothing synchronous about it and it's not very accurate.
The EA still works but, at the very least (if possible), I would like to have it refresh on a consistent basis. And, if that's possible, dare I ask, I would like to know if it's possible to close and/or delete orders before the next tick? It's easy enough to do manually, I was just wondering if it could be done from the EA itself.
Thanks in advance!
ETA: #1 Have attached copy of EA for anyone who is interested. I give details on how to use it in post 9.
ETA: #2 Added most current version that includes "auto-refresh." Requires both files. I give details of the "script" version in post 43.
Attached File(s)
Profit_Monitor_V1.1T.mq4
5 KB
|
255 downloads
|
Uploaded Mar 19, 2010 2:02am
PM_Script_V1.1T.mq4
5 KB
|
275 downloads
|
Uploaded Mar 19, 2010 2:02am