MQL4 and MetaTrader 4 - page 587

[Deleted]
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?
[Deleted]
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...
[Deleted]
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?
[Deleted]
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...
[Deleted]
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...
[Deleted]
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...
[Deleted]
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...
[Deleted]
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
[Deleted]
A couple of years ago I had this working and got side tracked and in that process somewhere lost the old code.  Trying to get this to work again but not having any luck and I don't know this language well enough to sort it out. Also not really finding much in the way of working examples. I know I...
Hello everyone, I need your help :) When I introduce indicators that I bought on graphs, the graph is erased and I have the following error message: UNINIT reason ... 4 (see the attached photo) Is anyone have an idea of the problem ?  Thanks you very much,   Stéphane 
I've been having some issues with custom indicator coding that I didn't have before. I write the code and it compiles normally, but when I try to attach the indicator to the chart the indicator doesn't appear on the security window...  Here's an example of code that I copied from the MT4 book that...
Hi guys, I started experimenting with a new piece of code that closes orders if the macd reaches the max of its values since 20bars(for example-if the order is buy) and reaches the min for a sell order. It is a function I wrote it looks like: this is the array i use:double macdarray[20];and int...
may we use global variables pass infomation between MT4 and MT5 terminal ? if we can ,if it will cause mistakes ? thanks .