- Search Energy EXCH
-
kennyhubbard replied Jan 6, 2011You need to declare the variable globally)ie before the start() function, or you must make it a static int. Each time you run a function, it starts the variable from new, unless they are brought in from outside the function, either globally, or via ...
Quick MQL4 problem: ordernumbers
-
kennyhubbard replied Jan 6, 2011Hi, Save the ticket number to a variable(use an array if multiple orders) when you make the stop order. On each tick check if the OrderType()<=1 for that ticket number. Remove the ticket # from the variable when OrderType()<=1 is true.
Quick beginner MQL4 question: Pending vs Placed trades
-
kennyhubbard replied Dec 26, 2010I haven't tested this but the code should produce only 1 alert per bar - except I don't see where you have declared the lastSignalTime? Try this :- if (isBuy(i)) { static datetime lastSignalTime; Up_Arrow_Buffer[i] = Low[i] - (ArrowDistance * Point ...
Making the alert() function work
-
kennyhubbard replied Dec 26, 2010I don't think it possible for Volume[0] to ever be <1 since the first tick that arrives to do the start function call will = 1(assuming you catch the very first tick, else it will be even greater).
Trade context management associated bugs
-
kennyhubbard replied Dec 26, 2010mfurlend, You can really try and use Volume if you like, but I believe you are barking up the wrong tree. What if you miss the second tick.....well you could use the third tick, or the forth, etc, using Volume[0]<5, for example, but then what if you ...
Trade context management associated bugs
-
kennyhubbard replied Dec 25, 2010mfurlend, To only make 1 trade per bar, use a static time variable to record the time of your trade. So in your buy function you would have :- static datetime One_Trade_Only;//default intialises to 0 Then the last line just before your OrderSend, ...
Trade context management associated bugs
-
kennyhubbard replied Nov 29, 2010Irathi, I have made some changes and this dashboard now works with brokers that have a suffix attached to their currency pairs. It was not working before.
Bollinger Band trade tools - Trade Manager & Dashboard
-
kennyhubbard replied Nov 24, 2010Irathi, The arrow direction does not indicate an overbought or oversold condition, only the fact that it has color mean overbought or oversold. The direction of the arrow is determined by the dominant trend which is determined by 2 moving ...
Bollinger Band trade tools - Trade Manager & Dashboard
-
kennyhubbard replied Oct 18, 2010Hi there, Not a bother. I will study it and see if I can incorporate it.
Bollinger Band trade tools - Trade Manager & Dashboard
-
kennyhubbard replied Oct 16, 2010Hi E2u, I imagine, it would work simarlarly to the current dashboard but obviously I will tailor it. Hi astral, thank for your kind words. Please tell me quick, the current dashboard uses 2 moving averages as a very basic trend determination, does ...
Bollinger Band trade tools - Trade Manager & Dashboard
-
kennyhubbard replied Oct 16, 2010Ok, thanks. I think I got the idea. Gimme a few days.
Bollinger Band trade tools - Trade Manager & Dashboard
-
kennyhubbard replied Oct 16, 2010Hi E2u, It is easier for me if you just spell out the rules here.....I have been through that post and it is not totally clear to me. He talks about daily RSI but the screenshot contain stochastics.
Bollinger Band trade tools - Trade Manager & Dashboard
-
kennyhubbard replied Oct 16, 2010Hi there, Yup, the starc band are pretty easy to put in place. They are actually nothing more than an ATR indicator superimposed on the price action rather than as a separate indicator. What are the other rules you look at? The dashboard currently ...
Bollinger Band trade tools - Trade Manager & Dashboard
-
kennyhubbard replied Oct 12, 2010h, you're just evil, feeding my addiction like this.......so much more to go ponder now. Nice work BTW. So tuesdays for DB_Anonymous......
Bollinger Band trade tools - Trade Manager & Dashboard
-
kennyhubbard replied Oct 11, 2010Hi h, Yeah, isn't that the truth.....and I got it bad. But it was a really good exercise in learning how to code. The dashboad is still very much a work in progress. I will add an alarm to it and I am also pondering extending the indication that ...
Bollinger Band trade tools - Trade Manager & Dashboard
-
kennyhubbard replied Oct 11, 2010Ya, the comment is unreliable because you cannot be certain what a different broker will do with your comments. Some brokers change comments in the normal course of trading, like MB trading when they cannot fill your full order, they sometimes split ...
Two questions about MQL if any one can answer?
-
kennyhubbard replied Oct 11, 2010Dashboard screenshot — image
Bollinger Band trade tools - Trade Manager & Dashboard
-
Bollinger Band trade tools - Trade Manager & Dashboard
Started Oct 11, 2010|Platform Tech|32 replies
Hi guys, I have been developing some tools at the indo forum. This was started in response to ...
-
kennyhubbard replied Oct 11, 2010The init function runs again when you open MT4, not only the first time you load the EA. There are a couple of ways to get the EA to remember whether it has closed half the trade or not. Presumably you would use an EA issued market order for the ...
Two questions about MQL if any one can answer?
-
kennyhubbard replied Oct 10, 2010Scooby, I would use GlobalVariableCheck rather than Get. Also important to remember to delete the Global Variable on deinit. I am working on an EA at the indo forum that does this. It checks for the EA's existence on the same pair/TF and removes ...
EA Running