Download MetaTrader 5

MQL4 and MetaTrader 4 - page 57

To post a new topic, please log in or register
Hi, I'm trying to figure out how to make a loop count length of bars in pips over multiple bars, But I've never used loops and i don't know how. I tried it bunch of times and felt stupid so the code I have is not in a loop form. What I have is this:    double h=High[BarsBack];    double...
Hello Fellow Traders, It's have been a week since i started learning how to program MQL4  And i Have A problem , The EA I am working on opens a lot of orders and i want all these orders to be closed at the touch of the ma let's say i have opened 7 buy orders above 21 MA and i want to close them if...
Hello, I am looking for a Renko indicator what will send a push notification out when the bar color changes. IE after a retracement. I have been looking all over the net and found this one attached but it only sends emails. I am trying to learn how to convert the email notification to a push...
Hello, I have an array with struct members. The struct is also including strings. struct test{string a; int b;};test arr[5];//now I filled the complete array with data....arr[0].a = "active";arr[0].b = 555;arr[1].a = ...//...and so on.. In the end, is it possible now to remove arr[3]? Thank you
Hi, For various reasons instead of writing many stand alone EA's and running each in its own terminal, I have instead opted to run those same strategies  in a single EA that cycles through them as a series of function calls. I may have got carried away.  I now have 36 such functions, each of which...
I would like to trade the INR :(
Hello friends, Is it possible to write a code to  limit a number of accounts to using EAs / Indicator ? Or may we set limit for specific account id to use ? Regards, Cuong 
Hi Is there anyway to modify the "terminal" desktop MT4 version to make the winning trades show in blue and the loser ones show in red like it appears in the mobile version. as in the attached image they only show in (-/+) I will be very grateful for any help Thanks
  OjectMove (7)
I created a simple rectangle with 2 buffer and I would like to move the object along with the buffer, with each tick i delede and recreate the object, but I do not think is correct, there is a right way? //+------------------------------------------------------------------+//| Custom indicator...
Can Mt4 standard indicators be deleted? directory Path?
Hi, I wanted to know what address I have to use in a code for recover news from forexfactory. Until now i used this and it worked <code> string url="http://www.forexfactory.com/ffcal_week_this.xml"; ResetLastError(); int timeout=5000; res=WebRequest("GET",url,cookie,NULL,timeout,post,0,result...
Hi, Attached is the TSI indicator I modified myself. But it doesn't show its 4 lines despite compiling without errors. Can anyone here help me to find/correct which part of the code has the bug? 
CJ
It doesn't matter which build I use, past and present, my MT4 platform takes ages to load up. Sometimes it also says 'Not Responding'. It's pretty fast once it's open, but the initial processing to load the actual platform up is very very slow. I have tried deleting default chart files from...
I cannot connect to my live account via the computer or the phone app. I have tried all the basic fixes. Any info on why this may be happening would be greatful.
I want the hundreds of prices of all shares copying into an Excel File. The shares in the symbol window have only short names. By moving with the mouse over a short-name  I can read the right name of the company. Can I copy the complete name of the company also into my Excel sheet ? Or must I write...
Pls I have few difficulties implementing this program line... I want assistance on if ma1 crosses ma2 ---open buy,don't open again till another cross for Sell... Now this is my codeIf(ma1 > ma2 && bid < OrderOpenprice())"Open buy"My question is a help to return only 1buy per direction.Thanks..
Hey guys, can someone tell me what's wrong with this script? #property strict#define  VK_R 0x52                              //--- letter R#define  VK_LMENU 0xA4                          //--- left key of Alt#define  KEYEVENTF_KEYUP 0x0003                 //--- key is released#import "user32...
Hi, Since I first placed a trade through the MultiTerminal, all trade levels (green and red entry and exit lines) are not being shown in the MT4 platform anymore, even if I shut down MultiTerminal and place trades directly on the platform. The "Show Trade Levels" box in the Options menu is checked....
Hi everyone, First time working with iHighest. When the number of bars to count is == 0, iHighest counts the whole array. However, in certain situations, the candle with the highest value is the same candle from which to start counting. As you can see, this is a problem. As a result, I've added the...
something happened to my MT4, when i click COMPILE / F5, then it switches to platform, asks me for indicator inputs, and after clicking ok, the charts again removes and switches back to editor... only clicking PROFILING makes my indicator to be applied on chart..
hi friend, I've set an array to AS_SERIES indexing by using the ArraySetAsSeries(... ,True) and now I want to resize the mentioned array and add a new element to the very first index - at the extreme right side- of my array. would it be possible to do so? or the only way is that I change it into...
I am doing extensive back-testing on a number of EAs that I have developed and find that the strategy tester runs far too slowly when set to 31 and far too fast when set to 32. Does anyone know where the settings for the speed of the strategy tester are located? I assume that it is a setting in...
Does anyone know of an EA that can chart the compartive strengths of currencies. Something like the attached file is what I am looking for. KeithN strenths
Hi. After installing a new indicator, it disappears. 
Any broker for example, leverage 500, . . . . If equity $1000, stop out level 20%,  and I order gbpusd 1 lot standard, sell@1.2000 which price will be stop out? How to code it? Thanks all
Hello everyone, I'm experiencing problems with the my first part of the code isn't interacting with the second part. How could it be possible to change the String to a OrderSend? // First Part  string Pair;                       // New Symbol  int New_Pair =11;                  // EUR/USD is the...
  order candel (2)
hello, how can I say of the Expert no enter  on the same candle if you take profit or stoploss? if(OrderOpenTime() > Time[0]) return(0); if(OrderCloseTime()> Time[0]) return(0);  if(!IsTradeAllowed()) if it is incorrect, how can I write ?
Hello, I would like to know if there's a relatively simple (but mql-only) way to find the position number of a given symbol in the market watch symbols list. For instance something like: EURUSD is the 4th symbol, EURCAD is the 12th, XAUUSD is the 24th and so on thanks in advance
I recently decided to switch VPS from Windows to Linux and have noticed significant improvement in execution speed. I have used the same VPS provider both for Windows and Linux (both VPS had identical specs and were located in the same data center). Ping to broker server is the same on both VPS...
In the absence of the CopyTicks() function in MQL4 I can try to construct an array of the last n ticks in a market by using the ArrayCopySeries() function in conjunction with the OnTick event and harvesting the [0] element of the resultant. Is there a better way? Thanks, James