- Search Energy EXCH
-
kennyhubbard replied Jul 27, 2010Hi there, You appear to be diplaying the wrong buffer...... Try changing this line :- #property indicator_color1 IndianRed to this :- #property indicator_color2 IndianRed
RSS error - iRSIOnArray code outs -0.005 to 0.005 not 0 to 100
-
kennyhubbard replied Jul 26, 2010Being able to foresee problems like this is what I meant by knack. Good spot. I wouldn't sweat it though......there come a time when you have to choose between perfection and practicality. In this case the worst case is a cycle that closes with a ...
Help with Logic
-
kennyhubbard replied Jul 26, 2010Hi Gil, Looks good. You seem to have a knack for this. There is probably a small error somewhere.....I would suggest looking at the CalculatePreviousLosses routine and use the Print command to write the variables to the Experts tab for inspection. ...
Help with Logic
-
kennyhubbard replied Jul 26, 2010While you at it, here is the latest version. This one includes trade sizes in the email and I also fixed a small bug which involved the profit/loss using the commission & the swap. I find it usefull for keeping tabs on account activity from my ...
EA to email new orders... like a signal EA
-
kennyhubbard replied Jul 26, 2010Gil, Yup, that looks like you are on the right track. You may find it easier to get the formula right in something like MS Excel first. Once you have the correct formula, implementation should be easy enough. I wouldn't sweat too much about the ...
Help with Logic
-
kennyhubbard replied Jul 26, 2010Hi Gil, I am sure you will discover that there is no right way to do these things....if one of the ways you have come up with works you must run with it. You can always revisit a routine later and you will often find ways to improve but my first ...
Help with Logic
-
kennyhubbard replied Jul 25, 2010Hi Gil, Not sure if this helps but try it out. A couple of points that you may be aware of :- Be careful of using OrdersTotal() directly in a loop that involves changing the number of orders as this will cause chaos in your life at some stage down ...
Help with Logic
-
kennyhubbard replied Jul 22, 2010Latency is simply the time it take for signals to travel from 1 computer to another. There are several factors that affect it but the single biggest on is the distance of your trading terminal to your broker. To me latency is important. How often ...
Low Latency Computing?
-
kennyhubbard replied Jul 21, 2010Here's something you can toy with. Should give you a few ideas. I still think you need to find a way to deal with the hanging orders. Unfortunately, I'm not much one for comments in my code, so ask if there is anything you don't follow.
Need help w/ programming logic
-
kennyhubbard replied Jul 21, 2010bluemele, One thing to look at. The reason you are having problems with getting an accurate lastorderopenprice is because you are not selecting the order. You are selecting the previous order and then making a trade. Logic dictates that when you ...
Need help w/ programming logic
-
kennyhubbard replied Jul 21, 2010Let me think about it a bit. I can probably throw some ideas your way. What happens to the order that doesn't activate the TS such a long when the price reverses and picks up the short stop? Does it have a SL?
Need help w/ programming logic
-
kennyhubbard replied Jul 21, 2010Move it all into the start function.
Need help w/ programming logic
-
kennyhubbard replied Jul 21, 2010Manipulate and then display it......... double pipval = MarketInfo(Symbol(),MODE_TICKVALUE) * 10; string My_String_pipval = DoubletoStr(pipval,2);
Need help w/ programming logic
-
kennyhubbard replied Jul 20, 2010NormaliseDouble will round the number off to 2 digits for you(in your example 3 digits). There is absolutely no difference to the internal calculations if you have 1.23 or 1.230000 If you want to display the number for humans to see then you should ...
Need help w/ programming logic
-
kennyhubbard replied Jul 20, 2010Here you go....... //For existing trades int TotalOrders = OrdersTotal(); if (OrdersTotal()==2){ for (int x = 0; x < TotalOrders; x++){ if (OrderSelect(x,SELECT_BY_POS,MODE_TRADES)){ if ((OrderSymbol()==Symbol() && OrderMagicNumber() == ...
Need help w/ programming logic
-
kennyhubbard replied Jun 16, 2010Justin, Once again, I am out of pocket, thanks to MB Trading. I was going to write a long grumble about the lastest fiasco but I have decided to save my energy. I will simply re-iterate my point that your MT4 product is unreliable and downright ...
MB Trading Futures - Introduction
-
kennyhubbard replied Jun 6, 2010Hi, Yeah just change this line :- if (OrderMagicNumber() == MagicNumber)Can_Trade == false; to read :- if (OrderMagicNumber() == MagicNumber)Can_Trade = false;
Stop EA from reentering
-
kennyhubbard replied Jun 2, 2010Hi Robert, Thanks for that and nicely spotted. Its been bugging me for a while. K.
I'm seeking a trailing stop EA that surely must exist, any ideas?
-
kennyhubbard replied Jun 1, 2010Hi Robert, Yeah, I get that sometimes too. Not sure why it happens. Try downloading it from the paperclip next to the thread page numbering.
I'm seeking a trailing stop EA that surely must exist, any ideas?