MQL4 and MetaTrader 4 - page 516

Hi, im fairly new to MQL so ive decided to build a trade indicator which displays an arrow for a buy and sell based on the conditions of two EMA's and an RSI. So far i have added the EMA's, im a little stuck on how to continue with the RSI as i want to say that if the 50 EMA is above the 200 EMA and...
int OnTick () { if (Bid > Close [+1]) { (Bid value saved forverer) } // How can i save Bid value that specific time? Thanks 
Hello Anyone else had this?  I've attached an Alert from this code: void afxSetAllChartsToPeriod(int _period) {         long chid=ChartFirst();         Alert("First chart is ",chid, "sym ",ChartSymbol(chid));                  chid=ChartNext(chid);         Alert("Second chart is ",chid, "sym "...
Hi everyone, I wrote an if statement to recognize left price labels, but for some reason, it doesn't recognize that the object is a Left Price Label. if (ObjectType(ObjectName(x)) == OBJ_ARROW_LEFT_PRICE){ } I have that if statement working with OBJ_HLINE, OBJ_CHANNEL, and OBJ_TRENDLINE, but can't...
Hi all, I'm having problem on the equation which will be one of the condition to my code. As you can see on my code below. I was trying to used counter "n" as a condition to my code. "n" can be n=n+3, n=n+2 and n=n-1 depend on the condition as below. But this equation seem not work at all. Please...
Hi Wondering if anyone can point me in the right direction with  what is probably a really simple problem. I have created a simple MA crossover script which is the same as presented by jimdandy1958 on YouTube - https://www.youtube.com/watch?v=ny6qFnPyauo&t=35s The only difference I can see is that...
I created an investor password yet it's still giving me an account authorisation error. Any tips on ways to fix this? 
Hello to all, I have this HFT that I firstly made it to trade candle stickpull backs market momentum within micro seconds or seconds after a range filterhas been achieved. Slippage was the challenge that I got when it came to liverather it did perform well on demo. I moved to second step of making...
MT4 version: 4.00 Build 1045 (3 Feb 2017)  Experiencing a failure when using function ChartNavigate, could someone help to look at this or have the same issue?  Here is the code, please also see the same in attachement:   //+------------------------------------------------------------------+...
Hi, It happened twice after MT4 updates when MT4 get restart EA removed from chart, what I can do in this situation? Thanks for help
hi my firends how do close only remaing order after closeBy Buy and sell orders I want code it in mql4  
Hello, Please help me to correct the error. EA doesn't create variables called: GV_xAPI_Long_          GlobalVariableSet("GV_xAPI_Long_"+name,StringToDouble(longps)); It prints Outlook has been refresh!... but I don't see them. Also it prints: Function is not confirmed. What function? I don't know....
hello I try to make my first EA in MQL4 but i got many error and warning that i couldn't pass those. this is my first simple code Thanks for anyone who can help me //+------------------------------------------------------------------+ //|                                                         test...
  Custom indicator input name  (17   1 2)
I tired to put input ENUM_TIMEFRAMES  TF          = PERIOD_W1;      // Time Frame  But when I load the indi, the inputs windows still show TF instead of Time Frame #property copyright "doshur" #property link      "https://www.mql5.com" #property version   "1.10" input ENUM_TIMEFRAMES  TF          =...
  Range  (5)
Looking for indicator which displaying range for specified number of bars. In the manner of ATR, but showing range of MAX price minus MIN price for prescribed number of bars. Please kindly advise, Thank you 
I'm trying to programatically go through multiple MT4 installation folders and print a summary of the EA settings for each.  Which file in the the MT4 folder contains information about the attached EAs and their settings?
I presume all the standard indicators like iMA ,iWPR etc are all based on "Bid" value, in that case please clarify on how to create own custom indicator using "Ask" value.   Is it possible to do so on mql4 (or) is it a limitation. please advise. My 2 cents. 
Hello In "OnInit ()" I house the static part of the display of an EA to avoid refreshing it with each tick. To accelerate the optimization I use "IsOptimization ()" to display nothing. I do not notice any difference of time between with and without. Is OnInit () executed at each optimization cycle...
Hi,   I would like to compile my EA and share the .ex4 file. Will someone be able to decompile the file?   Much help greatly appreciated 
[Deleted]
Hello all, Firstly i want to say that i m very new in MQL.I want to buy orders at pivot point at the start of day and place of pending orders.I have no idea of MQL startup and whether i don't know also how much this program is critical.I read about pivot point and pending orders. How will i start to...
Hi, I have an Expert Advsor. It uses two MAs to open a position. Forexample; if MA22>MA55 than open a buy position, if MA22<MA55 than open a sell position., simply. I want to add a condition in this expert. If MA22>MA55 and the price >MA100 than open a buy position if MA22<MA55 and the price <MA100...
hi everyone, I have an issue with my partial close code The calculated LotSizeBuy = 0.04875487 and OrderLots() = 0.04  when i try to Normalize LotSizeBuy it gives 0.05 which isn't equal to 0.04  is there any suggestion so the condition ( OrderLots() == LotSizeBuy ) can be true ?   void...
Hi, I need Bill William Fractal Indicator with Sound/pop up/Push Notification alert for MT4. thanks for ur great help. Mari
hello A few days ago when I used strategy tester was working properly, at high speed !, but now when i use it has a very low speed and does paint on visual chart and i think this is reason of low speed ! How can i solve this problem ? Thanks
  Formula Problem  (4)
Hi Guys, Need help on my EA code, currently I'm trying to define the condition using counter formula, so each time the counter increase or decrease would be my extra condition to perform. But somehow this counter not work.  Can someone please help me to solve this problem. Thanks....
Hi, I'm working on my first complete EA and when compiling I get the following warning: implicit conversion from 'number' to 'string'   The line it refers to is: ADXmain = iADX(0,0,14,PRICE_CLOSE,MODE_MAIN,1); where ADXMain is declared as a double. According to the help file iADX is type double so...
Hi, how do I get the current Price, 2 seconds before the current candle closes? I am using the M1 Charts  I want to do the following: I have an open CALL on the current candle and if the Price 2 secconds before the candle is closed, is lower than the price was when the position was opened, then I...
Hi Guys/Girls,   I read on here that the Ontimer functions only work for expert advisors. Im having some trouble with running my EA/Indicator combo where things are over calculating for instance I have an automatic Fib indicator. source below. This needs to be dynamic incase bars drop off outside...
Does anyone know if there is a version of ZUP by Eugeni Neumoin (nen) that is compatible with build 610+? I've heard v146 ex4 might work but I haven't been able to find it. The mq4 is preferable because I need to alter the code for other purposes.
My indicator draws up/ down arrows when MACD histogram change direction. I would like it to stay displayed on one timeframe and then be able to switch through timeframes without it changing arrows placement. E.g. arrows for 1hr remain in place on 5min 15min etc... I tried changing 'NULL' of MACD