- Search Energy EXCH
-
kennyhubbard replied May 17, 2010Sorry, I think I had finger trouble there. Try this
I'm seeking a trailing stop EA that surely must exist, any ideas?
-
kennyhubbard replied May 17, 2010Yeah, this could take a while............ You need to provide more info on how those entries are calculated. Also try placing the print functions right after the orderselect, so you can inspect the all variables under all conditions. It doesn't help ...
OrderModify Error
-
kennyhubbard replied May 17, 2010Hi, I can't see where you have assigned a value to HighPrice & LowPrice. Also, how are you getting the value of position into your function? Does it have global scope like stoploss & takeprofit?
pending order function
-
kennyhubbard replied May 17, 2010Hi Ben, Well spotted, I think I solved the problem and here is the working version. Thanks for the detailed feedback, exactly what is needed for efficient debugging. I normally correct for 5 digit brokers in the init() function but obviously(well ...
I'm seeking a trailing stop EA that surely must exist, any ideas?
-
kennyhubbard replied May 17, 2010Ok, I think I nailed it. Please check it out and report any bugs as usual.
I'm seeking a trailing stop EA that surely must exist, any ideas?
-
kennyhubbard replied May 17, 2010profxtrader, Here you go. There is now a setting where you can select the delay before the email is sent to allow time for setting of stops. It will wait for the selected number of seconds and will then perform another check of the SL & TP and if it ...
EA to email new orders... like a signal EA
-
kennyhubbard replied May 17, 2010Good suggestion, I hadn't thought of that. Give me a day or two and I'll come up with a fix.
EA to email new orders... like a signal EA
-
kennyhubbard replied May 17, 2010Yup, you are making perfect sense. I think I have spotted the bug. Gimme a couple of hours and I have it fixed.
I'm seeking a trailing stop EA that surely must exist, any ideas?
-
kennyhubbard replied May 17, 2010Hi there, Only a pleasure..... Are you using the latest version? I fixed that bug and seems to work ok on my side?
EA to email new orders... like a signal EA
-
kennyhubbard replied May 14, 2010Hi there, Whats the problem with trying to identify the 3 bar pattern in an EA?
Would a script be the best option?
-
kennyhubbard replied May 14, 2010MT4 does not differentiate between signed and unsigned. If it is an int variable you can store a negative number in it. Doesn't automatically mean it will be valid as a parameter though. You can have a negative magic number with no problem.
Dynamic (Magic Number) - Randomizing
-
kennyhubbard replied May 13, 2010Hi Ronald, Here is the gist of the code......obviously it need to be properly incorporated into an EA........ int AutoMagic() { string Cur1 = StringSubstr(Symbol(),0,3), Cur2 = StringSubstr(Symbol(),3,3), magic1 = 0, magic2 = 0; int Period_ID = 0; ...
Dynamic (Magic Number) - Randomizing
-
kennyhubbard replied May 13, 2010Ok, here is v3........ As indicated previously, the only difference is this one will detect when a pending order has been converted to a trade. I also refined the reportiing routine that it will detect mutiple trades even within the same tick, so be ...
EA to email new orders... like a signal EA
-
kennyhubbard replied May 13, 2010I don't think it practical to make random magic numbers. If there is any magic number apart from 0, then the broker will know it is an EA so different magic number will not help. I doubt the broker is sitting there saying "Oh no the dreaded mn ...
Dynamic (Magic Number) - Randomizing
-
kennyhubbard replied May 13, 2010else Print("Error opening BUYSTOP order : ",GetLastError()); return(0); Remove the return(0) after your print message.
Help with EA problem
-
kennyhubbard replied May 13, 2010This code will trade on the open of the bar with the time 08 at your broker. Now you need to figure out what time london opens on you your broker's time. There are probably a dozen way to determine this but the easiest is just to physically look at ...
Writing Code to Operate at London Time
-
kennyhubbard replied May 13, 2010Ok, try this..... The problem wasn't really with the alerts, but more with the way in which the indi gets going. Seems it downloads data and then will update according to that data, which triggeres the alert. I have moved the alerts to the end so ...
Pop up alert for indicator main move change
-
kennyhubbard replied May 13, 2010Ok, see if this is any better.......
Pop up alert for indicator main move change
-
kennyhubbard replied May 13, 2010Hi there, Actually, that one is a little buggy............ Here is v2 which is more advanced and provides far more options. You can customise the level of data you wish to send out, including trade results and balance/equity information. v3 will be ...
EA to email new orders... like a signal EA
-
kennyhubbard replied May 12, 2010Here you go............ I assume you know how to configure you platform to send email. At this stage it will report when a pending order is placed, but it does not report when that order is met and converted to an actual trade. This can be done in ...
EA to email new orders... like a signal EA