Download MetaTrader 5

MQL4 and MetaTrader 4 - page 168

To post a new topic, please log in or register
please i need to on how to protect his an indicator by adding security like password or licence .
i use: #property indicator_label1  "Myline1" SetIndexStyle(0,DRAW_LINE,STYLE_SOLID,1,clrMagenta); .................. i see such connections with lines: how to make them like this  (without the connecting lines) ?? :
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...
Most traders either fall into the technical analysis camp or the fundamental analysis camp when describing their trading strategies. However, both technical and fundamentals play pivotal roles in driving the fx market. Incorporating both types of analysis into an EA can be difficult due to the...
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?!
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...
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.
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
Seyed AmirBabak Teymourian
how to code a combo box for input parameters? for example, I want to add Time Frames, to be selective...(M1-M5-...MN1)
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?   
Hello all, I'm new to coding and I'm really not finding a way to get what I'm looking for. Maybe one cool/savior programmer out there can help. I'm trying to find out the high/low for a certain period. The period is fixed. Let me explain a bit better. I'm trying to find out the highest high and the...
  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...
How do I convert Mq4 files into Ex4 files so I can run the Ex4 file as an EA?
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 ?...