MQL4 and MetaTrader 4 - page 1109

I have tried to make a Stochastic indicator (form the standard Stoch) where it would be possible to change currency pair parameter. Does anybody know how to do this? I want to make an overlay of a few stochastic indicators with various pairs. (EURUSD,GBPUSD, USDJPY, USDCHF...)
Hi everyone, I am wondering because my stop loss loop simply looks at the last order of a particular symbol() and if the symbol matches then it checks for the stop loss and then if the stop loss exists it allows another event, yet for some reason it works most of the time but once in awhile it will...
[Deleted]
Thank you : )
Hi, I am back-testing an EA and its trading only Sell, for some reason its not trading any Buy. Can someone help plzzzzzz and its NOT throwing any error messages also, so don't know what is wrong...also download the History for all instruments I am testing this EA on but same thing only Sell's no...
  I need help with import dll  (24   1 2 3)
Hi, I have compiled my matlab function into dll. In the EA, I put in the following code: #import "MLfun01.dll" double GetArrayItemValue(double ML_Signal[]); ML_Signal[8] = MLfun01(string CP, string dataCL,double arr[8],string OTM); #import the output of the Matlab function is a 1x8 vector, so...
I've wrote a DLL using Visual C++ 2003 based on a standard DLLSample project. My new function is GetCrossings. But when I try to use the function from a script I get an error: cannot call function 'GetCrossings' from dll 'crossings.dll' (error 127) When I press F1 the help isn't related to the...
[Deleted]
This brief discussion assumes that you have read “BeIn-Phase” ((https://www.mql5.com/go?link=https://championship.mql4.com/2008/news/366)and “On the Long Way to Be aSuccessful Trader” (https://www.mql5.com/en/articles/1571. The gist of "Be In-Phase" is… 1. There is a zero return curve that...
Hi, does anyone have any idea how I can better write the condition for OrderSend()? If the main line from RVI indicator falls down of zero line. Go short. If the line goes up thrue the zero line. Go long. i have this: extern string  RVIsettings="------------Relative Vigor I. Settings";extern...
[Deleted]
hi it should basically open a new trade if the previous trade (no matter if its a sell or a buy order) has reached 10 pips. it should not be a take profit thing, so from the point on where the first trade hits 10 pips there will be two trades open. if second trade reaches 10 pips aswell another...
I have a zero divide coming up in my experts journal. Any obvious errors in the code below? //+------------------------------------------------------------------+//|                Copyright © 2009, SanMiguel, ForexFactory Forums. |//|                                        http://www.sidekicker.net...
Hi all, I want to create an automatic expiration datetime instead of my usual method of counters and checks. My question is: given datetime CurrTime = blahblah, how do I create datetime ExpTime = CurrTime + x minutes? I looked at the doc to try and figure out how to create a datetime, but it only...
[Deleted]
Hi all i wonder to know if there are other special character like \n ( = line feed ) that we can use in string or comment. any documentation ? Thks
[Deleted]
This is more of a DLL specific question for all of you programming experts out there. In my DLL, I have a few dialogs and want to make the platform the parent window. Obviously, I can use the user32.dll function to get the int value for the hwnd of the platform, but in my DLL, how can I turn the...
[Deleted]
hi there, anyone can help me ? for build or make forex hedge robot, i have ebook that contain hedge system or mehod, the following future needed in robot, 1. robot can calculate spreads and make trade 2 orders(one lot for buy and one lot for same in one currency pairt at same time,)  with...
[Deleted]
I do not know if someone can help me to make an indicator to be sendlng me an e mail when the signal occuer. I have built the indicator but i do not know how to make it to be seding email.Am using mobile pc but customise indicator is not possible on so I want to run it on vps so when the signal...
[Deleted]
I have been using WindowsScreenShot() in strategic spots in my code to assist in debugging one of my EAs. This EA makes iCustom() calls to several indicators which I would like to see on the screen shots. Forward testing is no problem, as I already have the indicators on the charts. Backtesting...
  TD Sequential 2010  (40   1 2 3 4)
Best regards
Help! I have the Optimzation results of a partial run 'stuck' taking up the entire MT4 window/page. I can minimize and show it again when I use Ctrl-T. When it is minimized I can show the journals, market watch and navigator and the open charts. Even with all of these open and showing, when I bring...
Is it possible to export indicators from MT4 into Excel? I have the DDE server exporting the Bid Ask High Low Time. I would like to export a few indicators, Would it be possible for more experienced MQL programmers to get me in the right direction? Very Thankful Randy
[Deleted]
Hi I've got a strange problem with my MT4. I was running single instance of terminal.exe with 20 EAs working (of two kinds) - everything was running smoothly without any crashes. I added another 3 EAs (still the same version of the one previously utilized) and since then I started to experience...
[Deleted]
Hi Pros, When I test my trailing stop program, the " error occured 0" appears many times in the journal. Could anybody tell me how to avoid it? Thanks a lot
What does this mean? Make a minimum of 5 non-demo trades in the first 8 months of testing (2010.01.01 - 2010.09.01) and in the 3 months of the contest
  init() function  (3)
Is init() function used only one time when the expert advisor is initalized or init() function is used more times by the expert ? I ask because I don't know where is better set default values for defined variables : on init() function or as an extern value.
Can anyone point me to an article or sample of code that loops through all open orders checks for loss of -10.00 Dollars or -xx.xx and the closes only that order? I searched but can't find anything ... I'm having a mental moment coding this... Just want to close the order when loss is -10.00 or...
[Deleted]
Hello, I could not find a way to dynamically display MA line on EA chart in test mode. It only displays at stop test time. I tried to include Custom Indicator code in EA, but I get error "SetIndexBuffer function must be called from custom indicator". ObjectCreate might do the trick. Any other method...
Is it possible to use the DDE in MT4 to Export the RSI into Excel on any desired time frame? Thank You for any comments. R
Hi there, I am battling with a part of my EA related to Ordersend... Sometimes my EA opens a second order milliseconds after the first one. The part of my EA that deals with the opening of a long order is below... if(ticketlong==-1) // If I'm not already long... {//...
  simple code  (2)
some one could help me to implement a code for do this. buy and sell simultaneously after close a profit position, and close the next profit position and then buy and sell again .... The code have to close a position negatif at 1.0 for exemple. thank you
New article Functions for Money Management in an Expert Advisor is published at mql5.com: The development of trading strategies primarily focuses on searching for patterns for entering and exiting the market, as well as maintaining positions. If we are able to formalize some patterns into rules for...