MQL4 and MetaTrader 4 - page 429

I followed the instructions on how to download mta4/5 to mac laptop and it does not work. this instruction seems are outdated. Anyone know how to install mta 4/5 to mac laptop? I need some help. It is so complicated.
I should do a backtest with absolutely reliable data. What do you recommend me  I have tried with the historical data of Metarader of TickStory and Tick Downloader but I have always obtained very different results and different from the real ones of the last month. Thank you Maurizio
i wrote this code & its work but just one problem: some time it send 2 or 3 or more order like order closed. i want just send 1 thanks for helping void openorderagain()  {    for(int d = OrdersHistoryTotal() - 1; d >= 0; d--)      {        OrderSelect(d,SELECT_BY_POS...
How can I program triggering a key press/event? For the following use case: Normally one can zoom with the "+" and "-" keys, but I would like to zoom with "q" and "r" and my idea is when "q" is pressed to trigger pressing the "+" key. Or are there better ideas how to create this use case?
Dear Everyone! i wrote a little script (only to test if EA would've worked or not in the past) which SHOULD do the following: on HOURLY frame (any chart is okay but i tested it mainly on EURUSD ) the script calculate from 522 candles and at every candle opens a long trade which has a tp and sl same
[Deleted]
I want to start the calculation of ShiftTime from spesific datetime in the future for BeginTime and skip calculation in current time before BeginTime (return nothing). datetime BeginTime = D'2018.09.01 00:00'; datetime ShiftTime = iTime(NULL, PERIOD_MN1, 1); I try this code, is it correct? int...
Hello, I need to calculate the difference in pips of two values. e.g. // some price double var1 = 1. 3574 ; // current price double cprice = Close[0]; How to calculate the difference of pips in these variables, considering the decimal places used by different brokers. Thanks in advance.
Hi  I want writing a martingle EA code How I can select the biggest lot position for *2 for new position? Please write sample code
double DR[260]; for(j=1; j<=259; j++)   {   DR[j]=Close[j]-Open[j];    Sum=Sum+DR[j];   Count++;   } In the above code, to the best of my knowledge, the loop should run for 259 iterations and therefore the array 'DR' would require 259 elements for the values to be stored. However if I set 'DR' to...
Hi everyone, Troubleshooting my EA at the moment and have had some problems with a particular 'if' condition not being activated. I suspect the issue is an improper calculation from the ICustom code that comes before or the way time is expressed as a string "..." ICustom code (the value of 1000 is...
Hi I am after a indicator to mark Hi and lows to identify trend direction to trade, Example of uptrend: Higher High is higher then previous high with 3 candles on both sides lower. Higher Low is higher then previous low with 3 candles on both sides higher get the picture, an ea would be even better...
Dear Coders: I have a problem and I can not think how to fix thay kindly support, //$------------------------------------------------------------------$//|                                            MA Crossing Magic.mq4 |//|                     Copyright 2018, MohamedEgy...
Hello, I tried to install Metatrader4 following the instructions I found here https://www.mql5.com/en/articles/1358?utm_source=www.metatrader4.com&utm_campaign=download.mt4.linux When I downloaded the file.exe from here https://www.metatrader4.com/en/download I got this error: "Operating system not...
I would like to make a EA which is when  iMa crossover the Close[1] like right before candle then buy or sell depends on what former candlewas I tried to code but still i don't get it :(. I can't figure it out how to use iMa. this is my code. extern double volume1 = 1.0;//Lot사이즈(Buy)extern double...
Hi I need help with coding in EA to 'print net margin utilized for a symbol'  If I have EAs running on 3 different currency charts, the EA on each of those charts should only print the margin utilized by that symbol.  Taking on new orders for that symbol would have EA on its chart to recalculate and...
Hi All, I am a new user and I would like first of all to congratulate you for the valuable information that can be found in this forum. I want to ask for your help because I have a problem with my EA that works on MT4 VPS: every time I turn on the PC and open MT4 this EA is re-initialized as if it...
hi i have a simple question... i want to select a pending order when it reaches its price for example in the code below 2 orders gets opened and the second one is a buystop as you see....i want to modify the stoploss of the first order that is a buy after the second order reaches its...
double Limit=Bars-1;double DR[Limit];for(i=Bars-1; i>=0; i--)   {   DR[i]=Close[i]-Open[i]; // daily return   Alert("Daily return of bar ", i, " = ",DR[i]);   } The above returns the error "invalid index value" in the highlighted position.  double DR[];int i;for(i=Bars-1; i>=0; i--)   {...
Hello and sorry for my bad english. I made this very simple indicator that draws a SMA using iMA (totally useless but consider it like an exercice for me). It works fine when I use it manually on the terminal but always returns EMPTY_VALUE in an EA. Could you please help me understand what's wrong ?...
I'm trying to run a version of MT4 in the cloud (dropbox) which allows me to use the program at home and at my work. Everything seems to work fine except ST Chart synchronization, bought on the market. The problem is (I think) that I can't click on the "install on the terminal" because it can't find...
Hi, I'm just begin to learn mt4 coding. I try to understand now why this indicator repaint.. In the code I can not find  code which recalculat the past or stange future function.. can somebody help me to find the code which make this indicator repaint? maybe the two loops, one calculation from...
Why in the following code do I get OrderSend error 131 on UK100 but not on EURUSD?   // Input variables                                    input int MagicNumber = 101;                        input int Slippage = 10;input double LotSize = 0.1;  input int StopLoss = 20;input int TakeProfit = 20;input...
Hello, is it possible make an EA that generate a Click on a screen coordinate as soon it see an open order ? To clarify, the working should be this : I setup click coordinates of BUY and click coordinates of SELL. The EA is working on a EURUSD chart ( for instance, can be other currencies as well ),...
void OnTick()  {     static double prevbid=0;  double curbid=NormalizeDouble(Bid,5);  double TD=DoubleToStr(curbid/Point-prevbid/Point);  if((TD)>=50*Point )   if ( kaidan==0)         {           {                  bool a=OrderSend(Symbol(),OP_BUY,0.01,Ask,10,Ask-100*Point,Ask+500*Point,"BUY" ,12345...
Hello everybody, I'am a Beginner and i was using a tutorial to create my first "own" EA. It's a simple EA which use 2 Moving Averages.  I did a few Backtests and all was fine. But now i have this Problem (Nothing in the EA has changed!) To make sure the EA doesn't open hundrets of orders, i used...
[Deleted]
  Donchian trend  (4)
Hi All, I`m quit new here, and i reading trough the manuals I would like to build an EA. I copied a EA from someone else to make some changes that it fits my one criteria. If I try to backtest this system it does not take any positions. I hope someone can advise how I can make amendments in the...
i write this code for expertremove() but dont meta order it. just order else if and when AccountEquity is < target dont order it. for eaxample: if Equity rise to goal + 80 order done. but when Equity rise to goal + 60 then decrease dont run and dont Expert remove . thanks for your comment. if (
Hi I've written an installer for a commercial add on to MT4.  We put some DLLs in the MT4 programs folder. With all the white labels out there, it's a bit tricky finding the best way to code the installer - right now, we are looking for matches in the folder names - but this seems a bit iffy to me....
i have coded ea but need some help if Rsi >50 buy then if trend changes then order goes in loss ( ea have to wait till close this order for open an a new order as per trend ) order in loss means the Rsi is < 50 so we miss the sell zone so it is possible to make ea so to open new order till...
Hello, I have two computer systems running an Optimization for an Expert Advisor. Both are optimizing the same EA, just different currency pairs. One system is fast than the other. For example, System A is running the optimizations faster than System B. Yet, system B is a more powerful machine....