Download MetaTrader 5

MQL4 and MetaTrader 4 - page 97

To post a new topic, please log in or register
Hello,  Is there any difference between   double dev = double  iStdDevOnArray(0, 0, MODE_SMA, 0, MA_LENGTH, i);  AND    double dev = double  iStdDevOnArray(0, MA_LENGTH, MODE_SMA, 0, MA_LENGTH, i); I don't see the point in calculating the standard deviation on the whole array if I can calculate it...
How I can write a code for a candlestick pattern indicator ?
Hi,   I developed an expert. As far as I know, the expert starts running when the price change. However, if the price change again, and my expert does not get to finish, the expert do not continues and another expert run starts. This happens when the market is under strong variations. So, under...
Hi, I'm using Strategy Tester and OrderSend is returning error (148 - The amount of opened and pending orders has reached the limit set by a broker.). My code is ok, I have variable controlling maximum number of open positions and getting errors when I set it grater than 500. How to override limit...
This is just some information, rather than a question, but I thought I'd share it since I've been wondering how to do this for some time. The standard BITMAP and BITMAP_LABEL objects allow us to load bitmap images on to the chart, but do not support 32-bit images (with alpha channel). This means if...
Since latest mt4 update, when I compile my EA I am getting the 'i' - undeclared identifier error but cannot see which part of this code is causing it: void CloseOrderSell(){    if ((Ask-Bid) <= MaxSpread*PipValue*Point){    int orderstotal = OrdersTotal();    int orders = 0;    int...
Hey Guys, I can imagine that here in the forum are a lot of threads like these. But my problem this time isn't that I don't know how the iCustom Methode works rather that it doesn't work... The parameters for the  iCustom Methode are:  double  iCustom(symbol, timeframe, name,...
Can someone tell me why I am getting this compilation error. declaration of 'tail1' hides global declaration at line 105 Gold Sep2016.mq4 28631 33 declaration of 'bar1' hides global declaration at line 104 Gold Sep2016.mq4 28673 11 internal error #-2  0 0 1 error(s), 6159 warning(s)  2 101
Hi.... I am running on 5 digits account and my EA not close the orders.... Could somebody help me ? This is my code: void CloseAllSell() {    int total = OrdersTotal();    for (int i = total-1 ; i >=0 ; i--)  {    OrderSelect(i, SELECT_BY_POS);    if (OrderType() == OP_SELL) {         OrderClose(...
New article The Easy Way to Evaluate a Signal: Trading Activity, Drawdown/Load and MFE/MAE Distribution Charts has been published: Subscribers often search for an appropriate signal by analyzing the total growth on the signal provider's account, which is not a bad idea. However, it is also important...
Hi,  my ea occur warings. 'check operator precedence for possible error; use parentheses to clarify precedence' how to fix?  <Decompiled code removed>
Hi EveryBody ,, i have a a problem with my simple expert advisor which gives Alert with some conditions as shown in code below ,, but the Alert works when every tick ,, how can i stop it ?? Thanks in advance //+------------------------------------------------------------------+//| Expert...
Hi Everyone I have two related questions: Question 1. I have tried a number of different ways to limit my EA from running on every tick for certain void functions, but have not had any success.  Some of my void functions only need to get executed when the new candle/bar forms, so it's not necessary...
Trying to get a buffer to start from 0, as opposed to the calculated amount.  Below is a simplistic example where the initial value (1000) will reflect the close of the current symbol.  I'm trying to get it to start from 0 and show the movement from that point on.  Any help would be appreciated....
//+-------- if the series meets profit targets... close the series--------------------------------------------------------+            if(((profit > target_profit)) )   {                 for(cnt=0;cnt<total;cnt++)...
Anyone can help me to modify RSI indicator like this? or give me some code to edit in metaeditor? It usefull with double RSI The indicator is here https://www.mql5.com/en/code/7898 I need your help guys :)
I have this code before my ordersend, but yet orders are opened immediately. Shouldn't this loop be locking the EA up for 5 seconds? int seconds = (int)TimeCurrent();while((int)TimeCurrent()-5 < seconds){Sleep(1000);RefreshRates();}
Ok so I grabbed this code from another post on this forum, which works great for closing multiple open trades based on FIFO rules. However when there is just 1 open trade to close, it's not closing. What do I need to change to fix this but not break the FIFO capability? void CloseOrders(int slippage...
Hello I'm missing something which I cannot see easily on google.  Maybe I'm missing the point of header use. I'm getting 'RefreshRates' - function not defined when I compile a .mqh file. The same applies for loads of other functions I'm trying to use in a header file. How can I fix this?
Hey  On the desktop MQL4 App I set the message ID under notifications and test, this sends a message successfully to my MQL4 App. I add my EA to the chart, see alerts being triggered on the desktop, but nothing is sent to my phone. Also tried sending to MQL5 mobile app, same result. Please help....
Is there a way to calculate the Average number of Pips per tick? I am new to coding in MQL4. I would like to check in my code if there is a sudden fast movement against my trade and close it out if true.  Thanks for any assistance. Paul
EA automated test can find valid data from June 2004 to begin testing in September to 16 years, the average annual income is 1.5 times more stable funding. I tested the 10,000 fixed investment funds, the number of annual fixed starting hand, have tested a total of 12 and a half years after the total...
Hi, Since yahoo and google have updated their security I am unable to send price alerts to my email address ? has any one else had this issue or can any help me with this problem. Thank you Martin .P   
Hello fellow coders! I was wondering if anyone could point me in the right direction. I am looking for an indicator using Moving Averages to evaluate a currency pairs trending/ranging conditions. It uses 7 currency pairs - USD/JPY, USD/CAD, USD/CHF, EUR/USD, GBP/USD, NZD/USD, AUD/USD. Evaluates...
Hello Everyone,  This could be a really silly question but I really couldn't find the way to do it. I am trying to create an EA. after analyzing some bars, it decides to open and order or not. Let's say it opens an order. somehow if my EA stops or metatrader shuts down, when I reopened it, I want to...
Hi guys, I have a couple of running trades on one instrument. Now I move the stoploss of one order closer to the current price by dragging the stoploss line in the chart. An EA should notice that and change all other stoplosses to the same stoploss price. Because there is no event for modifying an...
First post here, so sorry if this has been covered.    I am attempting to use the EA optimizer with mixed results. It constantly just hangs, sometimes produces 2-3 results, or none at all.  I have a relatively powerful computer, but still nothing. I'm doing a trade that occurs once a week at a set...
Hi Guys, sorry to bother you with so "simple" question, but I can't find [for good time already] any way to move one [or more] indicator windows, up or down below main chart window without closing it and re-opening in desire order. By closing one indicator window and re-opening it I have to...
Hi there, I am looking for a MEGA GOOD MT4 Programmer. Interested parties can contact me over at - <email removed> i assure you that you will not be disappointed.   Thank you and regards
Hi,  I installed MT4 on my PC and my problem is that the custom indicator folder is missing from the navigator window. In all the tutorials that I saw it always exists in the navigator window next to the Indicator folder.   I tried to install MT4 from different places on different computers but...