Download MetaTrader 5

MQL4 and MetaTrader 4 - page 169

To post a new topic, please log in or register
Hi, After update terminal to build 950 (on windows 10) dll's calls from MT4 stops working for me. I got Cannot load some.dll [126] . I was with def file, stdcall, without stdcall etc. nothing want to work. Path to dlls folder i got from: Print( TerminalInfoString(TERMINAL_DATA_PATH) ); Any ideas ?
Hi I was build a Custom Indicator which set buy and sell arrows on the chart with alerts and it was works fine, but when I tried to upgrade the code to MQL4 new build stile with OnCalculate() function the indicator set the arrows to previous bars only in start but not for new bars after it works...
Hi, Is there any linear Regression forecast indicator available on MT4 platform. I tried using this,  ViniI_LRMA_color.mq4 But it didn't plot correct curving after 270 period of LR. I have two screen shot taken from LRF indicator & LRF indicator. Both are completely different after 270 periods, it...
Hi, I want to create an actual metatrader as portable version.  When I download the mt4 installer from metaquotes or fxcm and start it, than I can change the folder, where the mql4 folder is saved. But it isn't possible anymore to remove the check mark so that the metatrader doesn't start...
Hello. I use heikin ashi candles for trading. I just want to put heikin ashi candles on my mobile version of mt4. Can anybody help me out?
EDIT : Look at my most recent reply to this topic... I discovered that there are actually bars MISSING from 12:00 until 12:20!!! Today I open MT4 and I see this HUGE gap between 2 bars, which is almost 200 pts. in price!!! I compared this with another broker (also via MT4 platform), and it was...
how do i find out who is subscribed to my signal?
New article Graphical Interfaces I: Testing Library in Programs of Different Types and in the MetaTrader 4 Terminal (Chapter 5) has been published on mql5.com: This article is the continuation of the first part of the series about graphical interfaces. The first article Graphical Interfaces I:...
In  a bull market, if a pending order is placed with an OP_BUYLIMIT specified, the price is expected to retrace down to the fill level, then rise. Is the order filled if the price drops like a rock and goes past both the fill Price and past the stop loss? Does it also encounter a loss?
hi guys i'm working with the indi https://www.mql5.com/en/code/10351# and i now wonder about the details/behavior of iMAOnArray() and iRSIOnArray().i found some problems in the calculation of indicators that use xxxOnArray() :- i often see that indicator buffers for the calculation are used in this...
Hello everybody, I made this simple indicator couple of months before and it working fine from the very first time, until yesterday that i recompile it. For some reason the signal  array  seems that calculates only the first time and then keeps the same numbers for all others loops. Like the...
Hello forum, Is it possible at all to change the format of arrows (blue, red) and lines (dotted red) used for marking orders on the charts - same for stop-related markings and other objects drawn by default? I was wondering where/what folder/what file the script is and if it is accessible by users....
class Base{};class Derived : public Base{public:    void MyFunc(const Base & obj)    {        // how to type cast obj to Derived?    }}; As the code above, the obj passed to MyFunc is indeed Derived. So how can I type cast it to Derived? Also, seems reference '&' can only be used as function...
Hey guys, I wanna ask how do you set Stop Loss to be at the MODE_UPPER or MODE_LOWER of the Bollinger Band? Thank you in advance.
Good afternoon everyone,With the help of EA-Builder I created the code below and afterwords I adjusted the code to my preferences. I'm possibly the newest of newbies to mql4.It's an indicator that places a symbol on the chart when volume exeeds the set value in the specified period, I'm using it for...
I have this code &  i am trying to get the High for the next higher timeframe. If it is M1 then M15 ; if M15 then M30 etc.    however this is not working. please help  int timeFrame[] = {1,5,15,30,60,240,360,1440,10080,43200},nextTF;int init(){for(int...
Hi everyone, I have created an expert which has 2 CButton which is Buy and Sell. If you click on "Buy" it will enter a trade on buy same as if you click "Sell" button, the problem arises when after the trade has been executed, it will close the newly opened trade. I thought that the code that i use...
Hi, I'm making an EA which can work with a set of given configurations independently. As of now, I have been testing with two differents configurations, A and B. With configuration A alone, for a given time period, a total of 113 operations are made. With configuration B alone, for the same time...
How to close multi currency? So I manage to get a multi-currency script working. However when I close, it only closes the pair of chart it is attached to. How do I close multi currency when ea is attached to only a single chart?
Hi there, I've had a poke around and not found what I'm looking for. I'm trying to create an indicator that draws a line along the prevailing HOD level during the trading session. In the code below I've limited the indicator to work only since the most recent trading day of posting for testing. I...
Hello everyone, I am looking for anyone that could help me to install the Metatrader 4 on my Apple iMac. I have installed the PlayOnMac in my computer, and I have also installed the MT5 without any problems, but when it comes to installing the MT4 I just can't, to say that several months ago I did...
Hello, right now I am checking all objects on each tick and if the object is a horizontal line starting with the keyword 'alert' and it is touched by the current price, it sends an alert to my smartphone. Works perfect so far. Now I sent it to a friend and he has a lot of charts open and uses a lot...
Good morning I'm a newbie in mql4 and i still don't  understand how put value of moving averange in array. I get always some errors (like array out of range)  I just need and alert when the value of moving averange in the previous candle is more high then actual candle in OnCalculate process. Can...
Hi, I want to reset an indicator loaded in my EA. Because this indicator has a small repaint issue, once a signal set, the indicator didnt revert back the signal to empty by it self. today my only option is to change the currency where my EA is set or recompile my EA or eit the EA properties and...
hi i m Marco from Italy and sorry if my English is not good ok? I have one problem, i have the indicator RSI Blackfeet, is very nice indicator but i want insert sound alarm when the condition is true, this indicator have RSI and MA i want insert alert when RSI cross MA. Please help me tanks bye
Heey people! I'm trying to set TrallingStop the next candle. But has no results.  Thank you. Sorry English error.  static datetime new_time = 0;           if(OrdersTotal()>0)      {         for(int i=0; i<=OrdersTotal(); i++)         {            if(OrderSelect(i,SELECT_BY_POS...
Hi everyone, I'm Max. I am a neophyte in the MQL4 programming and speak little English, so excuse me. I have a problem I can not solve. I have an indicator / alert built on CCI Histogram. I inserted the conditions that work. I would like that the last bar of the histogram, was read at the opening...
Hello, I have compiled a script without any errors for a graphical object (see attached file 'research grafobjects.txt'). But the graphical object is not visible on the graph I load it on. My journal displays messages that 1) it loaded successfully the script on graph, and 2) it was removed (the...
How to setup 2 or correlated pair in chart m t4
Closing by order sequence. How to create a loop to check? if i.e. order 1 + order 2 has profited - close order 3 + order 4 has profited - close 5 + 6 7 + 8 9 + 10 and so on ... Order 1 being having the smallest order number and was opened at the earliest time.