- Search Energy EXCH
-
CodeMeister replied May 11, 2010Try This — RR's idea should work and I think the existing code allows for it if you turn off Stealth Mode and set Use_SL_and_TP.
Gem of an EA needs a slight change
-
CodeMeister replied May 11, 2010Misunderstanding — I took a look at the code and it is attempting to close all orders as quickly as possible once the proper conditions are met. An order can't be closed until the server responds and this may be why you think the program is ...
Gem of an EA needs a slight change
-
CodeMeister replied May 11, 2010How Many Pips — How many pips are considered a winner - 1? 10? Because I can see many cases where the spread is barely covered and then price reverses.
I need a programmer
-
CodeMeister replied May 11, 2010Try This — You are probably printing zeros because MQL4 is treating the array variable as an integer. Try this: Print (DoubleToStr(BarMa[bar], Digits));
Just starting ea programming - help with code
-
CodeMeister replied May 11, 2010Try This — There is lots of help in MT4 and on the MT4.com website. Lots to learn.
Need some clarification
-
CodeMeister replied May 10, 2010Been Playing — I wrote an EA and have been playing these gaps for the past 2 months. I had a losing trade once, but it is remarkably profitable. Somebody claimed he had 70%+ success in 2009, I think it was on a BabyPips forum. Yesterday, the ...
Sundays EST Open
-
CodeMeister replied May 9, 2010Thanks for Sharing — I didn't realize that was the situation with Forex. I thought TP and SLs were handled similarly during times of high volatility and big gaps. I suspected that they were fiddling with the price levels to their advantage but ...
Need help, all opinions matter
-
CodeMeister replied May 7, 2010Try This — It sounds like you are in a nasty situation. You could look at restructuring your code so that iCustom is not called for every tick. If that is not possible, then you need to incorporate the indicator's code into the EA.
How to close a function within the EA
-
CodeMeister replied May 7, 2010Errors? — What errors are in the Journal? This would help a lot in resolving your problem.
Slippage
-
CodeMeister replied May 7, 2010Try This — Your eyes are the best way to accomplish this. With respect to an indicator, HMA Angle is the best I had seen, but it prone to lagging as any MA is. Search for it on the Programming Discussion thread and you should good versions.
A VERY simple question :)
-
CodeMeister replied May 6, 2010Hotmail Doesn't Work — There are numerous threads on proper email setups - search for SMTP. If you want the techie explanation, go to MQL4.com. Hotmail has encryption which is imcompatible with MT4, you need to use GMX mail.
Email settings in MT4 plattform
-
CodeMeister replied May 6, 2010Try This — Its not simple, so before trying consider that you might fail. The best way to go about this is to modularize your code. That means that every thing is a separate function. So the Init() code would be in a separate function and all ...
How to completely re-start EA within code
-
CodeMeister replied May 5, 2010No Problemo — I have done things like this myself. It seems we can get so focused that we can't see the obvious. Anyway, the solution is here in case somebody runs into something similar.
Email Error
-
CodeMeister replied May 5, 2010Try This — If this is a one time occurrence, then it is nothing to get excited about. What you should do is log off MT4, then start it up and try the same thing again and see if the error recurs.
Email Error
-
CodeMeister replied May 5, 2010Try This — You say that the order never opens, but have you checked the error status in the journal window on the MT4 platform? Other than that, you need to insert Print() statements throughout your code to ensure the logic flow is as expected.
Probability Trader EA help
-
CodeMeister replied May 5, 2010Try This — Right click on the chart and select "Indicators List" from the popup. This will tell you which indicators are on the chart. Then you don't have to post a question.
Help: which indicator?
-
CodeMeister replied May 4, 2010Pipsmark — I wrote an indicator several months ago called Pipsmark that does something like this. It takes a threshold pip value and will send an alert when the price hits that value above or below the specified MA. Do a search for "Pipsmark" ...
Indicator for a candle crossing a MA?
-
CodeMeister replied May 4, 2010Code Samples — There are lots of code samples using iMAOnArray() in indicators. Just examine a few and compare them with your code.
Cant take this any more!! (iMaOnArray)
-
CodeMeister replied May 4, 2010Not in MT4 — That feature is not in MT4. I think I read about it in MT5 - you can check out the website - MT5.com
Program Buy/Sell button with MT4