[Deleted]
Hey guys.. I have an EA that wanna change it to what i want, but there are some issues that i can't solve them... 1. Another problem in my ea is that it does not see my condition for starting an order (line 66 and 72) and it open trade on open[0], beside when for ex, it open a buy position and after...
Hi, I try to use 'ChartSetSymbolPeriod' for my indicator, but this indicator slow down my MT4 platform when I try to use it with another Expert Advisors. //+------------------------------------------------------------------+//| ChangeSymbol Indicator.mq4...
Hi gurus, Recently I often find that many demo accounts can be identified as a live account (IsDemo() gives false on demo accounts). Can you tell me something about this? Why is it, and is it possible to avoid it? Thanks
[Deleted]
Hey there! So I've been trying for the past few days to get a custom indicator working within an EA. Its the PZ Lopez Trend. I'm also using a web based coding environment called FxDreema to actually create the code. I'm noticing though that when I have set the EA on a chart, it makes maybe two...
Hi All, i created a simple script, which cover closing unrealized pending orders when new candle started, but it doesn´t work. Can you please help me with this? I need to solve this problem. Thanks for any help :-) int Objem1 = Volume[0];...
I have written a simple code to calculate the average of the past ten days, weeks, and months and placed it in OnInit(), however, when run, it loops indefinitely. Can someone please tell me what I did wrong... Here's the code: int OnInit() { double Avg=0.0; printf("I'm going to find...
Hi Guys, I wanted to check with you guys if you can help me with a function that I can call to check if previous 10 candles is not touching my SMA(18) as I want to use it as another filter for the EA that I am working on something like below:
Hello to the experts, I tried to use the shortname function with a custom indicator, but nothing seems to appear in the chart window. Then I tried the for example MACD default codes, implemented in the INIT() area: IndicatorShortName("MACD("+IntegerToString(InpFastEMA)+"...
Hello, is there a simple way for an empty default value on arrays (of objectpointers) ? signature: void funcsname(...., clsName* &ArrayOfObjectPointers[] = ???) {} // *NULL[] no surprise, this is not working. But is there a usefull "ZeroPointer" ? Thanks
Hello, I would like to write some code for Indicator "Candle CountDown" but I need some help. I know Period() - Returns timeframe of the current chart. But I would like to use "Period()" like "PERIOD_M15" in the M1 TimeFrame Chart. CandleCountDown = ( Period() * 60 ) - ( TimeCurrent() - Time[0] );...
Anyone else having trouble? I have a demo account and I can't seem to get a connection. Any help is appreciated. Thanks!
Hi all, I need your help with the following First of all, I want to know if the calculations made in the language can be so accurate that results get to work with all these decimals. Now I explain what I try. I need to make a division for a number containing many decimals, 106 to be exact. the...
extern double lots = 0.01;extern int takeprofit = 30;extern int magic1 = 302;extern int slippage = 3;extern double lotfactor = 0.50;extern int totalORders = 8;extern int EnterHour = (4);//+------------------------------------------------------------------+//| Expert initialization...
[Deleted]
Hi guys, I wrote this function(below) and when I call it in star() the values remain the same and are not updated bool checkMyTrend() { double Maa1 = iMA(Symbol(),0,periodM1,0,MODE_SMA, PRICE_CLOSE,shiftM1); double Maa2 = iMA(Symbol(),0,periodM2,0,MODE_SMA, PRICE_CLOSE...
[Deleted]
how can i find datetime and price of this point,
I have been testing an EA using "Daily" period for July 2016. My EA needs the current market price in order to make buy/sell decisions and it works that price out by signing Bid to a variable after using RefreshRates(). In addition, my EA takes the high and low of the last hourly bar (after working...
Hi all. Plz explain to me if this code should work. I want to use ZigZag to manage SL. In order that i look for 3 last value>0 of the indicator. Than I want to use this 3 values in further conditions. Will this 3 val change in every thick? (I copied essential part of code, because whole thing has...
Hi, The values from the lines are in buffers. How can I calulate and draw an average line from each line?
[Deleted]
Hi everyone, I'd like to add a MA 9 on a MACD indicator . What kind of code line should I add in the indicator ? Thanx a lot. Euphorya
Hi, I'm trying to do an if condition but it doesn't work. It always results in condition as candle1=1 even if for each timer I change this variable. Where I'm going wrong? Thanks in advance Regards int candle1=0;int OnInit() {EventSetTimer(Timer);//--- return(INIT_SUCCEEDED); }void OnTimer()...
[Deleted]
Hi all dear , please help me kindly !! I see that some person add his robot image at his EA. I want also add image to my EA. I have MQL4 file. How to add this ?
Hi Guys I'm running a demo account that is matching my live brokers account but my history is missing a lot of trades and the balances are completely wrong. Is this a common problem and if so any easy fix ??? Thank You in advance
Hi, I would like to have comments when opening trade (backtesting). It will be indicators values like below. string comment= (" ATRd "+ATRd+"\n" " MomentumD1down "+MomentumD1down+"\n" " MomentumD1up "+MomentumD1up );string comment= (" ATRd "+ATRd);input int...
[Deleted]
Hi, With the following code, I am getting Open_DG , Symbol(), Date all correctly but in case of OPEN,HIGH,LOW,CLOSE, BAR all are writing same value all the time. I mean so OPEN= HIGH = LOW = CLOSE all showing same value for a day. The loop value printing is also wrong with e_P I am back testing this...
for sharing and improving double Oldest_Open_Price_Order(int Magic){ double open_price = 0; int TotalOrders = OrdersTotal(); for (int x=0;x<TotalOrders;x++){ OrderSelect(x,SELECT_BY_POS,MODE_TRADES); if (OrderMagicNumber() == Magic &&...
It happens a strange behavior on my terminal where I have opened several charts and sometimes two or three on the same symbol (but different EA): when I remove Expert from one chart in the other charts of the same symbol a "Waiting for update" label appears, an error "Cannot refresh history [4073]"
Hi, how can I get the first price of every YEAR out of my D1-Quotes? I tried something like that, but it isn't working datetime tm = StringToTime(StringConcatenate("D'",TimeYear(iTime(NULL,PERIOD_M1,i_mn1)),".01.01 00:00'"));iLastClose = iBarShift(NULL,PERIOD_D1,tm);
I'd like to actually put the name of the indicator in there. Is it possible?
Hello. I have recently started to have a problem with my scripts. I am currently running a script that lets you open several trades at once on multiple currency pairs. I have enabled autotrading everywhere and when I try to run the script no trades open. I get no error in the journal tab...
Hi, I wish someone can help me on this. I have come across a free 'Pattern Recognition' Indicator in the MT4 market, which draws a rectangle around the candle pattern. However this rectangle is not filled and its outline didn't overwrite the candle's shadow lines. Like in following diagram. I...

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.