MQL4 and MetaTrader 4 - page 535

Hi guys, I am looking for a way/function in MQL4 to return the name of each EA running on each chart, if any. For indicators, coder can navigate among charts and identify the indicators running on each chart. I wasn't able to find a similar function for experts. Is there any one? To better...
Hey,   sometimes when backtesting the Ask-line disappears at some point for a certain amount of time while the Bid-price is still moving up and down. How could that be possible? What does it mean? Every seller needs a buyer. It can be possible that the the Bid prices rise and Ask prices don't but...
Hi, I wrote an intraday ea for M1 timeframe based on Open so the start function begins like this:   int start()                                   {      static int lastBars;   bool status = false;   if( lastBars != Bars )     {         status = true;         lastBars = Bars;     }    if (status...
Has anyone had any experience with finding the highest high and lowest low, between two points in time.  I'm trying to draw a line at the highest high and lowest low from 3:00 p.m. to 5:00 p.m. est.  ( 19:00 - 0:00 )  I can draw a line between these two points of time, but only at the high and low...
Hi,   I am a retail forex trader for several years and would like to develop my own personalised EA that is based on technical indicators for trade signal and execution.   Kindly help me on how to start as I have never created an EA before but understand trading quite well.   Thanks and regards 
Hi Guys, Could anyone assist me with why I get an array out of range error with this code and how to fix it?  I am very new to MT4 coding.  Thanks in advance!  extern int MagicNumber=10001; extern double Lots =0.1; extern double StopLoss=100; extern double TakeProfit=30; extern int TrailingStop=0;...
Hi at all, in MQL4 It's possibile use command "Print" or "printf" with color in Expert form of MT4 ??? How?  Or What's command ?   Or for print with color i must use only chart window with ObjectCreate?  Thanks for your help! 
[Deleted]
I find way how get count open chart window in platform MT4 and how get their handle. I need control if open new chart window . I use for open window this code and sometimes it happens that the command PostMessageA(hTerminal, WM_COMMAND, 33160, 0); don´t open new chart window. I need catch this...
Below is a short piece of code as I try IF statement for the first time MQL4 - It takes the difference between he high and low of the range to determine the stop loss value in points.  Currently, this is only running for specified pairs (but I will amend it to run on any pair at some point and work...
Hello, I'm newbie with mql4 but I have some experience programming in other languages...  This is not my first EA or code... but I don't understand where I fail, so please I need help.  In the array  ticketoperacioneslong  I memorize the ticket of the orders i placed. I want to be advised , informed...
Hello !   I'm very angry at MT4 as I bought a few indi, I had 5 activation at first.   I use 1 as normal, than I HAD to use another when windows update to 10 (I heard some people got their activation back). Today I need to update an indi I bought on the market and I'm still ask for an activation. !...
Hey guys. I am desperate of getting more history on some trading instrument charts. Looking for Palladium, Platinum and Copper history. Can anyone advice on if and how this can be done? Tools/History Center doesn't help. Thanks in advance!
Hello everyone I stated this symbol:       SetIndexBuffer(6, InIndicator);    SetIndexArrow(6, 83);    SetIndexLabel(6, "InIndicator");  how do I draw it on the chart just insert the indicator?
Hi All, Looking to write my own EA with some complex trading logic. I used to code C# many moons ago. Rather than spending the next weeks relearning, I am interested in saving time by acquiring a pre-written framework with integrated position management including stops to break even, trailing stops...
Hi all, I'm writing a simple code to open a position BUY and SELL...just to learn, but it doesn't work. Anyone can tell me why? I have declared all variables (SL, TP and lots) and the code has been compiled succesfully...but it doesn't open positions... Thanks in advance int OnInit()   { //---...
Hello everyone, I'm trying to add two buffer in the indicator camarilla. I would like to add two lines with Buffer, the H3 and L3 values but I can not properly close the code. A little help, please? #property version   "1.00" #property description "" #include <stdlib.mqh> #include <stderror.mqh>...
[Deleted]
I have the following error in my own log file. My_error: 5002 wrong file name My_FileRead_Handle =0, fname = C:\Users\user\AppData\Roaming\MetaQuotes\Terminal\9ACB2E2CE0389240C909714389C79575\logs\20161108.log The file appears to be where I think it should be and the error occurs when I use the...
Could someone please explain how i actually save a custom indicator in Metaquote editor and then actually put it onto my chart??
Hi All, I'm currently generating a EA which makes use of multiple time frames, however, the tester on MT4 seems to only allow me to back test by attaching my EA to a single time frame. By doing so, my EA is unable to get any data from another timeframe. i'm using MT 4. Is there any way to get around...
Hi all, I am AnbuRajan. I just a starter of MQL4 coding , i have learned coding with C  programming during my college  but have zero experience . Now i started with simple EA and backtesting , during this time have arising lot of doubts. But couldn't get solution by myself and looking for a mentor...
I have not written anything in a long time and noticed no ea folder anymore. I read about a roaming folder so I'm assuming it's something I have to learn about. Just wondering how and where to copy ea's that I wrote in the past so I can make them work again. Please advise Thanks
[Deleted]
I've eliminate all of the compile errors in my EA mq4 source code except this one: '\End-of-program - unexpected square bracket'. I don't see any square brackets at the end of the program or anywhere else in the file. Can anyone suggest what to look for to remove this error. Thanks for any comments
Hello All,  I would like to use the Strategy Tester Optimiser (MT4) to do random (use random combinations of my variables) passes, rather than the Genetic Algorithm optimise these variables for a particular factor (Profit etc).  If anybody knows such a way to achieve this, I would be very grateful...
  Using "Print"  (9)
I do some printing with the "Print" command.  MT4 The charset used is not with fixed width for different characters and that messes things up. Is it possible to chose a charset with fixed width for all characters and symbols?
H have problem with installing metatader4  when I am trying to install metatader  4 it is installing metatader5... what's wrong?  
Dear all,   Hope anybody can answer the following questions relating to the use of arrays in indicators: Is it correct that an global array is re-declared once the change of the timeframe of the chart causes the indicator to go through the DeInit and Init functions?   I see the size of a particular...
Hello everyone, I am a beginner MQL4 Programmer. I want to know that how to protect my EA to use specify trading account and how to time limit to my ea.  Please Help me. Thank... Everybody...  
I'm baffled by this problem, and after trying everything I can think of I realise I need some help! Basically my EA will happily open buy orders but refuses to open sell orders, i can't work out why.. Here's the SC    int StopLossPriceB = StopLossPips1; int TakeProfitPriceB = TakeProfitPips; double...
Hello all, I have been trading forex for a while, but would like to get into using robots and building my own. My broker is forex.com and they dont use mt5 yet I think. Anyway, how can I begin to start learning how to code automated robots? Where to start? Any suggestions or help would be...
Hi, I'm in the UK and I have an EA that will trade the Australian 200 Index. This means that the Index opens 23:00 and closes 05:00, which is confusing my EA, because if I open the MT4 platform at say 22:00, it thinks the trading day has already been and gone (finished at 05:00 that morning rather...