fabfive Posted January 7, 2011 Report Posted January 7, 2011 (edited) Hey I have no MQL4 or programming experience except for HTML :) What I need is quite simple. I need the EA "Indo Run" which always opens 2 orders at the same time to delay them by 16 sec. So after opening the first order there must be a delay of 16 seconds until the second order is being opened. The same with trades. If it opens 2 trades at the same time there should be a delay between the opening of 16 seconds. Can anyone do this for me please? It should not be much work. Just inserting a few lines of codes. I appreciate any help! Indo Run can be found here in the forum: http://indo-investasi.com/showthread.php/9951-Indo-Run-%28First-post-will-be-updated-with-new-versions-setfiles-etc.%29 Version 1.5: http://www.multiupload.com/SMEBG30U5T Edited January 7, 2011 by fabfive
fabfive Posted January 10, 2011 Author Report Posted January 10, 2011 Any hint is appreciated. I can insert the code by myself. I just dont know where.
fabfive Posted January 10, 2011 Author Report Posted January 10, 2011 I want to connect the EA with Zulutrade and their rules are that two orders must have at least a delay of 15 seconds between them :/
stovedude Posted January 11, 2011 Report Posted January 11, 2011 Just put this code somewhere before the second OrderSend command: Sleep(16000); fabfive 1
fabfive Posted January 11, 2011 Author Report Posted January 11, 2011 Hey stovedude Thank you for your help. I have inserted the command before the second OrderSend command but it seems like I am doing something wrong. There is no delay of 16 sec. Could you please kindly doublecheck for me? } if (SingleOrderSL == 0) SL = 0; if (SingleOrderTP == 0) TP = 0; while (!IsTradeAllowed()) Sleep(100); Sleep(16000); int ticket = OrderSend(Symbol(), Mode, MarketLot, price, SlippageOrder, SL, TP, EAName, Magic, 0, ColorSet); Print("MarketLot: "+MarketLot); if (ticket == -1) {
stovedude Posted January 12, 2011 Report Posted January 12, 2011 The 16000 is 16000ms, which should be exactly 16 sec. If you also need 16 sec before the pending orders, you will need to put that line in the same place in the PendingOrder function as well. What do you see happening? fabfive 1
fabfive Posted January 12, 2011 Author Report Posted January 12, 2011 Looks like it works. Awesome :) Thank you again. I will have to watch it today but the 16sec between pending open orders was my wish! :)
fabfive Posted January 12, 2011 Author Report Posted January 12, 2011 Ok that worked. Thank you again! Theres just one more issue :/ Is it possible to limit the maximum pending orders & actual orders a day (24h) to 30 ?
stovedude Posted January 13, 2011 Report Posted January 13, 2011 Looks like it has this ability with the OpenOrderThreshold parameter, I believe. You could ask this question in the Indo Run sticky for the EA section.
markjacks Posted March 31, 2015 Report Posted March 31, 2015 Hi guys, quick one please. Is anyone still using this recently? How is the success rate too if I may ask?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now