MQL4 and MetaTrader 4 - page 468

Please kindly explain Is the back test spread in pips or point? For instance if the spread is 0.5 pips. What value should I input in the Backtest? Is it 5 or 50? Thank you
Hello All. I'm trying to source a Bollinger Band indicator that simply allows me to fill the space between BBtop and BBbottom with one user defined color. Can anyone point me to such an indicator?
Hi ,   I have some ea that opens  a csv after dowloading with a second ea . With the  tags  FILE_CSV | FILE_ANSI | FILE_READ   ,  the txt string that is with Print () is not in english ,   an example of the csv :  eurusd   1.1216  gpbjpy   146.79 audjpy   0.8951 with  the string displays , it gets...
I'd like to identify a trend line when clicked. The chart would then display additional info & lines related to it, so that the chart isn't too clustered in the normal state. I know how to do the rest, but Is there a way to get the object's name or any info when it is selected? Thank you for the...
Hello!Is there any symbols who ticking at Saturdays and Sundays? You already know, need to try EA, but the store is closed. And nothing happens, nothing happens at all. Thank you!
Hi all, I have a script that changes the template on ALL open charts.  It has an input parameter to determine which template [0,1,2,etc].  Is there some code I could add to this which applies different templates to different markets? For example: if(market=GBP/USD) { apply template 1 }...
Hello Hi Everyone,I Just Started Using Mobile MetaTrader 4 Platform To trade Forex Online. So i would Like To Tell You That I can Only enter Into The Market Using Only Market Execution Price Means I can Sell Or Buy Only At The Current Market Price. But What If I have To put Buy stop for future...
Hi guys, please help. i am getting OrderSend Error 138 on strategy tester, what can be the reason, and how can i fix this. I do call the Refreshrates() function before any Ordersend() and i have a wide enough slippage of about 100 pips, but still get error 138 when testing, what can possibly be...
I think EA stops control just after getting an error, If it's the case please tell me how to let the control passes in advance after the last error regardless what the error is.       {            while (TicketSell2 == -1)      Sleep(100);      RefreshRates();      TicketSell2 = OrderSend(Symbol(),...
  Advise on MQL4 vs MQL5  (20   1 2)
Hi all I've read the new here: https://forum.mql4.com/59622 Question is: Quit a while ago I started learning MQL4 to about an intermediate noob level. Now that time as gone by I wondered should I continue to write code in MQL4 or just start learning over again and go right to MQL5 Are most forex...
Well, the question is, when i have EA and set to trade only trade at the time and then have another script running in other pair or whatever with the same thing, just one trade at a time (done by OrderSelect MODE_HISTORY) doest that mean that when the first EA is in a trade, the second wont trade...
why sometime delay 2 or 3 minutes to pop up alert message? Code at below, which line of code causing the pop up alert message delay?  #property copyright "Copyright 2017, MetaQuotes Software Corp."#property link      "https://www.mql5.com"#property version   "1.00"#property strict#property...
My EA connects to a mysql database.   But when I run strategy tester, I see a huge number of error messages stating "errorn 1040 too many connections" Since I control the db I took a look at it to see if I could detect the prob.  There were 65 connections which is way too high.   I rebooted the db,...
#property indicator_separate_window #property  indicator_buffers 1 #property  indicator_color1  Silver //--- input_1 parameters extern bool      Export=false; //--- buffers double ExtMapBuffer1[]; int iHandle = -1; int iErrorCode; // begin Encog main config                         string...
Dear all I have this issue -I open the platforms Mt-4 -I open the charts -I attach the EA's to the charts (autotrading activated) -I close the platforms Mt-4 -I open again the platforms Mt-4 -The platforms loads the charts but DON'T ATTACH ANY EA to the charts Could you suggest me something to check
Hi all. I'm making a custom indicator in MT4 and MT5 using the SymbolIsSynchronized(). The indicator uses the data of multiple Indexes. But this function does not work with MT4. Is there a substitute MT4 variant for this function?
Hi Guys, I'm testing my EA and I'm getting always the error 138 each time I run OrderSend function. I edited the EA in order to just call OrderSend on each onTick event: RefreshRates();       int test=OrderSend(_CROSS,OP_BUY,0.01,Ask,5,0,0,"",0,0,clrGreen);    return; In the code I only declare...
Hi everybody, i have tried to fix this problem during the last days, but i really can't find where the mistake is. i just want my EA to close an order when a specific condition is true, but it is triggered right after i open it. i have read and tried several proposal from this forum, but none i have...
[Deleted]
To dear MT4 related department and all readers to this post, Can I add or have any extra indicator in my MT4 mobile? (Android) For example the named indicator which is inside desktop platform of MT4 always... Thanks for your kind and great help, Zeno
[Deleted]
  Get Open Price  (11   1 2)
I am trying to get the open price of the H1 6:00GMT bar. I can't for the life of me figure it out. Please advise. TimeFreedom
Hi all, I've been working on an EA that determines trend highs/lows according to a set of conditions. What I'd now like to do is confirm the cumulative buying or selling pressure on the current timeframe and be able to detect the same on the higher timeframe(s) (using iCustom) to get some...
Hi there, I have an EA that determines trend and at certain points, it draws a row of dots above (short) or below (long) pullbacks in the trend. At the close of each bar, if the trend is maintained, another dot is added to the end of the row of dots at the last price level. If there is a subsequent
  Historical data  (52   1 2 3 4 5 6)
Hi. I downloaded historical data from histdata.com. I used a script to convert m1 to all ohters timeframe. I realized that sometimes difference of levels price goes aroung to 15 points or more if I compare with others brokers. Is there a way to get hitorical data with more precision? I´m looking for...
Hi all - Happy New Year! I'm wondering what the best practice would be when adding the following content to an indicator for an email alert.  My concern is related to processing speed as I will have about 20 charts running, each loaded with multiple indicators that will be sending email alerts. Is...
Hi I have a question. Can mt4 terminal connects to two different broker quotes at the same time? If it is possible does anyone knows how to do it? Is there is a mql4 function I can use in expert adviser to connect to different broker quotes? Thx in advance
Hi, in my EA, in the tester all works perfectly, but in the real mode, the EA buys and sell regularly, but when it has to modify a SL or TP, that is in many of my functions...it says "error #4109 trades is not allowed in the expert properties". I have checked also in Tools -> Options -> Experts...
Hi guys, I have to calculate the final target price (and stop loss) using the pips. I mean:  Suppose to be in EURUSD, and the price is: 1.223 , I have to add 25 pips. I also have to implement this formula for all the possible crosses so I think I have to manage some digits checks... Can you help me...
Hello, I just set up a VPS through MT4 (https://www.metatrader4.com/en/trading-platform/vps) and synced it with an Oanda practice account. The MT4 platform Market Watch time and the VPS Details (CPU, Memory, Disk and Journal entries) times are different by one hour. Which time should I care about if...
Hi Guys, I have an EA that works properly on EURUSD ... Now I want it to work on others 10 different cross... What is the best practice in this case ? Should I have to implement a loop on each cross ? Thanks to support
void OnStart () { int TrailingStop= 50 ; //--- modifies Stop Loss price for buy order №12345 if (TrailingStop> 0 ) { OrderSelect ( 12345 , SELECT_BY_TICKET ); if ( Bid - OrderOpenPrice ()> Point *TrailingStop) { if ( OrderStopLoss ()< Bid - Point *TrailingStop)