| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| A Coding Dilemma https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=312 |
Page 1 of 1 |
| Author: | odysseus11 [ Mon Jan 30, 2012 1:03 pm ] |
| Post subject: | A Coding Dilemma |
Hi there all coders, I have an Empty4 coding issue and am in search of a solution. Any advice is appreciated, and please PM me if any coder here has specific proposals, I am of course willing to compensate at current rates. What I am looking to do is restrict/allow my commercial EA's from opening new orders during given day/time filter windows. For example, only let XYZ EA open new orders between 4 and 9 gmt on tuesday and thursday. Initially I was just going to write a macro to go into the EA properties tab and uncheck "allow live trading" when a filtered day/time began (and then reverse it when it ended). But then I realized that this will probably cause any already open existing orders to also not be managed and they will become uncontrolled, which of course is unacceptable. So can any coder here recommend a method to do what I am trying to accomplish? Remember these are commercial EA's, so I dont have access to the mq4, just an .ex4. And although I could probably try and decompile them, I dont know that I would be able to successfully navigate their code to add a snippet of my own to handle this, but then again as I am *not* myself a coder, Im not sure. Feedback? Opinions? Proposals? Solutions? Flames? Thanks again. Odysseus |
|
| Author: | gaheitman [ Mon Jan 30, 2012 2:03 pm ] |
| Post subject: | Re: A Coding Dilemma |
If you still need the EA to manage the trades it already has open, then I don't think there is any way to keep it from trading. In order to do any trading activity (modifying/closing orders) it needs to be able to trade without restriction. If I were you I would go back to the individuals who wrote them and ask them to add the functionality. It's not terribly difficult functionality to add and if you could demonstrate that trading only on certain times/days makes the EAs more profitable I would think they'd be interested in making the changes. George |
|
| All times are UTC | Page 1 of 1 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|