MQL4 and MetaTrader 4 - page 612

Hey everyone, we wrote a short post on how to improve your position sizing. This uses R but is easily applicable to your MT4 strategy or EA. Position sizing is an important , often overlooked aspect of trading. Many traders look at position sizing as a way to decrease downside risk without seeing it
Hi, I triying to read data from metatrader 4 with my app (on vb.net) I catch data with DDE but it is only bid/ask/high/low. I want to read realtime data for finished candles (M5 and M15 etc) How can i read from metatrader 4   Thanks in advice.  
New article Evaluation and selection of variables for machine learning models has been published on mql5.com: This article focuses on specifics of choice, preconditioning and evaluation of the input variables for use in machine learning models. Multiple methods of normalization and their features...
Hello,   I've got a question more about MT4 itself then on mql4 language. I'm wondering how the folder management works. I tried to change the name of the installation folder of a terminal, and when I started it, it had candelled everything, it was like a new terminal just started for the first time...
I want to be able to have tooltips appear when hovering over graphic objects (created using a canvas object). This facility is available for buttons but not for custom graphics. I was just wondering if anyone has implemented this feature.
Hello Forum, I would be curious to have a look at the actual code behind the MT4 Strategy Tester, so that I could get a first-hand understanding of how the numbers are computed. I'm looking at analysis of gains vs. losses now (average, %'s, totals, etc.) but there are some other grey areas too.. Is...
Hello, I have an Indicator, which use the Functions High, Low and Close. Now I want to change it. I want to add the parameter "Timeframe", so that I can put the indicator on the H1 chart and see the indicator for the M30 oder D1 Timeframe. Is this possible? How can I do it?!
[Deleted]
Hi,  In metatrader i have an error Please turn the robot in server - ozhs when i want to insert a robot in the plateform Can you help me 
Hello, i´ve been trying to make my ea read the price of an horizontal line to work as a trigger. I can type the price manually and it´ll work the way I want, but if i could "type" it graphically would be great. I´m not an expert coder... :) I used ObjectGet. Note that I also place a horizontal line...
[Deleted]
Does iCustom work with ex4 files? ...or is the mq4 file needed also? Thanks for any help.
Hi there all... Just wondering, does anyone know if you can partially close an open order manually on the MetaTrader platform. I've got orders under EA control that I want to manually close partial... thx, t
[Deleted]
Hi,   Is it any way to clear the Alert pop-up window in a way that the old messages are deleted and only the new ones are showed each time?   Thanks. 
Hello all. can any body help me how to make a combo box in my custom indicator for choose parameters? like moving average in this pic: thanks
[Deleted]
how to code a combo box for input parameters? for example, I want to add Time Frames, to be selective...(M1-M5-...MN1)
[Deleted]
Hi Guys If I trade myself on MT4 platform and I'm using broker 1 and I want to make use of Broker 2 and Broker 3 on the same platform window. Is that possible?   
[Deleted]
  iOpen and iClose  (11   1 2)
Hi I am a newbee in this and have a simple question... I'm trying to write a simple EA witch should calc the current bar. Using it on a 15 min chart. To get both openprice closeprice on the current 15 min bar chart I use "Everytick" in the model for backtesting. But it seems to me that...
  do while loop  (1)
I must be going blind.... why does this code cause my MT4 platform to hang? I'm assuming an infinite loop.... but the code looks good to me.... please help....THanks! #property indicator_chart_window //+------------------------------------------------------------------+ //| Custom indicator...
Hi everyone in the house, Please I encountered this problem for the first time and I don't know how to solve it: Stack overflow in 'C:\Program Files\MetaTrader 4\MQL4\Experts\FxCashEarner Vs.1.0.ex4' Anytime I compile my ea, that is the message it gives to me. Thanks in advance
Hi All, I am trying to minimize the number of loss trades of my EA. Is it possible to do this with MT4 strategy Tester? I thought this would be simple to include as a feature in the tester. Presently only money value figures, such as Profit , DD etc, are being displayed on results table, not...
Hello Forum, I've read countless articles on indicators, but am struggling to understand how smoothing or weighting works with respect to moving averages. Before I try and code what I want, I would like to understand the maths. Could anyone point me to a good article or description of smoothing etc?...
am unable to use this indicator . please help me and many errors came while i compile it
Hi How can I change the Excel DDE link output code.? for example; = MT4 | BID! EURUSD in MT4 program, how can I change this code.? or (MetaQuotes language editor on Is it possible? i want change code = Mt4onebroker2 | BID! EURUSD thanks.
Just a quick question regarding non-specific brokers. How do the prices of 1 broker correspond to the prices of a second? If both brokers are left to their own devices the prices would inevitably diverge? Therefor is there some concurrent communication between brokers to keep prices approximately...
Hello my dear friends as am new here in forum i need a help and hope to be helped by you all expert over here.   As i want to know that how can i change the name of the custom indicator   for example if the name of the indicator is MACD and i want to change its name to NONAME how can i do this ?...
Hi all. I have a custom arrow indicator and need to put calculate the arrow position based on the buffer width (indicator_width1,, indicator_width2, etc).... How can i get the width of a specific buffer or other properties of the custom indicator?  
Hi,   I have a fully functioning EA, however I want to add a time of day trading filter so that the EA only trades within certain times of the day. I would also like to optimise this time function for best results. Can some one on this forum please direct me to the section of code base that provides...
have tried to print the arrows but all to no avail . please help out . these are codes belo. #property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 Green #property indicator_color2 Red extern bool Alerts = TRUE;...
I recently saw an issue in an EA during testing on a 1H chart.  The EA issues a stop buy order at a 1.53824 on GBPUSD.  The high never reaches this level before it back down according to the history center.  However, the stop buy order was triggered and filled.  Any reason why the order is triggered...
[Deleted]
when i use the HeiKen Ashi indicator will be normal in the default windows. like the following.     But Heiken Ashi won't map the k-bar width because the indicator width is fixed to 3. as following.   because the code is    SetIndexStyle(0,DRAW_HISTOGRAM,0,1,ExtColor1);    SetIndexBuffer(0...