- Search Energy EXCH
-
kennyhubbard replied Jul 31, 2010Actually, try this rather :- Print("Error opening BUY order : ", GetLastError()); InTrade = false; buyFlag = false; return(0); } I would need to study the code more, but I suspect the tickmode is a way the EA controls whether to trade on a new bar ...
Coding EA to check opening price - How do I handle this problem?
-
kennyhubbard replied Jul 31, 2010I neglected to answer your question....... Yes, the code does give the order open price but it only does so if the order opening is successful.
Coding EA to check opening price - How do I handle this problem?
-
kennyhubbard replied Jul 31, 2010Try inserting this line extra :- Print("Error opening BUY order : ", GetLastError()); InTrade = false; buyFlag = false; BarCount = Bars -1; } This is assuming that EachTickMode is set to false in your settings when you start the EA. This Off quotes' ...
Coding EA to check opening price - How do I handle this problem?
-
kennyhubbard replied Jul 31, 2010smartman, It would appear that your ECN/STP NFA regulated broker is taking you for a ride. Have a look at your order type window.....it says instant execution.....this is incompatible with ECN/STP. If it says Market Execution then you are dealing ...
MB Trading Futures - Introduction
-
kennyhubbard replied Jul 31, 2010Hi there, I did look at your other EA, but I haven't really been able to figure out the problem......I must also admit, I am not very fond of the EA's created by those websites. That said, this particular problem is specific to the broker....it is ...
Coding EA to check opening price - How do I handle this problem?
-
kennyhubbard replied Jul 31, 2010Hi powercouple, This appears fairly straightforward to do. I'll have a beta version EA for you next week sometime after the markets open so I can do some testing. It will require you to run an additonal MT4 platform connected to another broker. ...
How to tell if MT4 loses its connection
-
kennyhubbard replied Jul 30, 2010Good luck finding a coder mate. Seems to me you are here looking for a coder to help you for free but you are not prepared to share anything.....in fact your assertion that you will only provide the best settings after coding is downright insulting. ...
Easy system for coder
-
kennyhubbard replied Jul 30, 2010zoogle, Interesting problem.....I had to go run some tests to believe it. It appears that if you multiply a double by an integer, the output will be a double. However, if you divide an integer by an integer, if the output does not equal an integer ...
MQ4 is picky about brackets - Know any other quirks?
-
kennyhubbard replied Jul 30, 2010Yes, it uses a a market order to close. Server side stops are incompatible with partial closing of orders. IMHO, the concept of hidden stops is way over-rated. I have never seen any evidence that they are effective. The fact is that stoplosses are ...
Trade Management EA - Need some advice
-
kennyhubbard replied Jul 29, 2010You are welcome.....
The initialisation protection will give you a warning for the most common cases of accidental running and EA such as terminal closure or timeframe changes, etc. If you choose cancel, on the message box, it will remove the EA ...Trade Management EA - Need some advice
-
kennyhubbard replied Jul 29, 2010Ok, here is the EA with unintended initialisation protection. The StopProfit variable appears to be a variable that is used to calculate the various profit levels as the ea does a partial close. Apart from displaying the info it does not actually ...
Trade Management EA - Need some advice
-
kennyhubbard replied Jul 29, 2010Yeah, insert the line that you see in red in your code. Do the same in the exact same place in the sell signal part. InTrade is a flag that the EA sets to ensure that it only trades one trade at a time. It sets this flag when it gets the trade ...
How to deal with Off Quotes Error?
-
kennyhubbard replied Jul 28, 2010Just to clarify, you are concerned that you have one routine that tells you that you need an order and then when it gets to the order routine, another routine say no? Is that correct? I knew you had a knack for this......in a way you are correct and ...
Help with Logic
-
kennyhubbard replied Jul 28, 2010Hi Gil, This formula works nicely for the MM :- Lots = AccountEquity() * lRisk/10000/100; This way 1% risk = 0.01 lots and 5% risk = 0.05 lots. I understand why you don't want to take more orders when you already have orders at a level. I am trying ...
Help with Logic
-
kennyhubbard replied Jul 28, 2010LOL, Hi Gil, One can really get tied up in knots with this thing. The main problem that I can see is that your function Check_Min_Distance() changes the Auto_Grid. This is, in turn, causing trouble when it comes around to do a new round of initial ...
Help with Logic
-
kennyhubbard replied Jul 28, 2010I am not sure.............a price feed is a product that the brokers "purchase". I suspect that when the broker buys a licence for MT4 server, they have 2 price feeds. Normally they use one for demo and one for live. I also assume they can purchase ...
EA needs code adjusted to IBFX new policy
-
kennyhubbard replied Jul 28, 2010Howdy, Slippage is a parameter that is used by instant execution brokers to determine whether they may slip you or re-quote you. In an ECN environment, the slippage parameter is ignored totally, in fact, you will never ever see a requote at a market ...
EA needs code adjusted to IBFX new policy
-
kennyhubbard replied Jul 28, 2010Hi ecTrade, I know it does appear strange at first, but if you read in the broker section on the MB Trading thread, one chap got slipped 100 pips on his market order, it becomes apparent why it is not practical to enter a stop before you know what ...
EA needs code adjusted to IBFX new policy
-
kennyhubbard replied Jul 27, 2010I stand corrected, but I think for a limit order you can enter a SL or TP but a stop order still needs a SL/TP entered after the fill. Either will still work in the tester as it cannot differentiate a market execution broker from an instant ...
EA needs code adjusted to IBFX new policy
-
kennyhubbard replied Jul 27, 2010Howdy, Didn't test this but see if this works.....
Trade Management EA - Need some advice