Download MetaTrader 5

MQL4 and MetaTrader 4 - page 328

To post a new topic, please log in or register
Are there any indicators or (android) apps that allow you to Chromecast Forex Charts?  (with or without MT)   I realize there is a Chrome add on that lets you Chromecast your browser content but I'm looking for a more elegant charting chromecast app that preferable works with MT4.
hello, Attached is the file containing the following errors: ';' - unexpected token Reader Delay.mq4 48 62 'handle100' - constant expression required Reader Delay.mq4 48 7 '{' - some operator expected Reader Delay.mq4 47 7 expression has no effect Reader Delay.mq4 46 47 expression has no...
can I DLL retrieve AccountNumber so it's use can be restricted?
Please help me with this indicator which provides buy/sell audio alert. I try to do some modification to this indicator in order write a file and run a external .EXE file. The write file code is working fine but once I load the indicator it just open the  so many .exe until the computer is hang. How...
Hi, Why does OrdersHistoryTotal() show one more than the real value? If I have say 12 closed trades, OrdersHistoryTotal() shows 13, even on a brand-new and "empty" account it shows 1. Why? Is it a failure or am I wrong? Thx
Hi. I've just downloaded MT4 for Android and I'd like to configure the RSI indicator so it shows a level-50 line (instead of those two default 30 & 70 levels line). How can I do it? Any help will be very appreciated! Regards, Bruno 
Hi Forum, I want to check if the EMA50 is above the EMA100 in the current displayed timeframe and additionally in the D1 timeframe. The current timeframe is checked correctly but there is a problem with the D1. I think that I can't use the variable i when checking the D1 timeframe. When I use this...
  Help needed with my EA (12   1 2)
Hello,  Does anyone know how to close an order after "X" bars have passed. The catch is, I only need it to work on the Strategy Tester (because I need it for my grad paper and I don't have enough time to run it on live) and not on live data. In live data I found that I can use time as recommended by...
Hi, when I call the iEnvelopesOnArray function I receive an access violation error. iEnvelopesOnArray(mybuffer,0,14,MODE_SMA,0,0.2,MODE_UPPER,i); any other iXYZOnArray work fine (like iStdDevOnArray, iMaOnAraay etc...) only the envelop one failed!!! any idea why? is there anything special to do when...
Hi, I have MT4 installed in a usb-drive for portability purpose + I don't want to install it on windows as it is not mine. I write the file in MT4 and read it when the file is written. But sometimes when the file is closed by the MT4 indicator and I read the file, the file content is not yet present...
switch(x)            {               case 1:                   if(USD==1) firstcurrent=1; if(USD==2)  firstcurrent=2;               case 2:                   if(EUR==1) firstcurrent=1; if(EUR==2)  firstcurrent=2;               case 3:                   if(GBP==1) firstcurrent=1;...
int init()  {//----         ticketOpp=-1;        if (Point == 0.00001 || Point == 0.001)           pip = Point*10;           else pip = Point;   if (Digits==3 || Digits==5) slipFactor=10; else slipFactor=1;//----...
Hi, Does anybody knows if there is a feature in MT4 that show the trades made in live trading on the chart as in backtesting (blue line for long position between the buy and the close and red line for short position) ? Or do I have to program it myself in the EA by creating for each trade an object...
I need a code that allow's  me to open only one order per hour on a single symbol.  this is the  sell condition  if(Close[1] > Open[1])   {double S=MathAbs(High[0]-Close[1]); double Sp=S/Point; if(Sp>=20)result=OrderSend(Symbol() , OP_SELL , lot , Bid , Slippage , Bid+SL*Point , Bid-TP*Point, ""...
Hi, I am new to developing OOP in MQL4 (not to OOP :) ) and run into the following when testing this base: class BaseObject  {    public:      virtual string ToString()      {         return TypeName();      }      virtual string TypeName()      {         return typename(this);      } }; class...
Hi, ChartSync indicator is supposed todo this: Objectsdrawn on one chart automatically appear on other charts of the same symbol.This allows multi time-frame marking up of charts simultaneously, without havingto manually save and load templates. Example If 3EURUSD charts are open H1, M15 and M5. If...
APeng
Hello, I export the balance during optimization: if(   IsOptimization() == true   && AccountBalance() != AccountBalance_old  )   {     AccountBalance_old = AccountBalance();     int handle = FileOpen("Optimization Balance.csv",FILE_WRITE|FILE_READ|FILE_CSV);     FileWrite(handle,"Balance");...
I use a verion of Metatrager 4 build 670 from IG. Everything works fine, but sometimes I have many trouble with setting of colors in the chart. If I will change the color of the bars or rectangles or Fibonacci retracements or other i can not change the color. I get the set of colors but I can not...
Hi all, Anyone here familiar with a broker that allows 0.001 starting lots so i can make my testing on such system? I've Googled for such brokers, and found some that claim to support mt4 and 0.001 lots, but when i install Mt4 it actually 0.01 minimum lot.
Hi, has any body experience with s.th. mt4 does not like to talk about - there are some discrepancies. In the MQL4 Reference I read under long Volume[]: and long Volume[]Series array that contains tick volumes of each bar of the current chart.....      last_fpos =...
I got Buy Sell Pressure Indicator form some where and it's a AFL Code. I try to code in MQ4 but it's not work. Anyone help me to code this indicator. _SECTION_BEGIN("Buy & Sell Pressure - Smoothed with Histogram - V.1.0");SetChartOptions(0,chartShowArrows|chartShowDates);sp = H-C;bp = C-L;bpavg =...
Hello, I would like to check if my last three closed sell or buy trades were profitable, and change a string value depending on it. I have this code (MT4): for(int i=(OrdersHistoryTotal()-1);i>=0;i--); {   OrderSelect(i, SELECT_BY_POS,MODE_HISTORY);   if(OrderSymbol()==Symbol() &&...
Friends, I have developed an EA, wherein the buy/sell order will be placed on meeting a condition in EA. But when I run my EA in strategy tester of MT4, on some days this EA is not placing order even though the condition is met on those days during back testing. On other days EA is placing...
hey guys this is for the first time i am trying to write my own EA and i am little bit successful in it but when i try to run any EA in my strategy tester it gives no result at all not even single trade. This is what my journals tell can any one help
Hi everybody, I experience some frustration in such a way that I want to draw some horizontal lines, computed according to a certain algorithm in two different charts, eg. eurusd and dax. I managed to format the lines as I want (style, color, thickness), but I'm not able to make my EA to move the...
I have read lots of information stating that back testing on generated offline renko charts is unreliable, however looking at the visual back tests it seems as though the tests are reliable when the EA does not use a fixed stop loss or take profit but rather opens and closes trades based on open...
Hello everyone, I'll post a little program that I've done: The program should report me 2 of the stochastic crosses that occur sussessivamente inclusion of 'AE in the graph instead of as soon as I insert the graphic print "DrawAllert (" cross 2 Time = "+ TimeToStr (curtime (), TIME_DATE) +" "+...
I do not know if this is right thread but  I want to suggest two things for both Metatrader 4 and Metatrader 5 1. Volume (CTRL +L)  to show buying and selling volume  and to be colored (MT4 and MT5) and Tick Volume ( MT5) 2. HLC price representation on chart. So far there are only Bars, Candles and...
The order of my charts is not saving once I adjust the order of the tabs. Everytime I adjust the tabs and save; with new profile, running as admin, creating new terminal.ini file... nothing fixes. Is there a trick or file I can edit to change the order of my charts ? 
Hi, The Doc. of mt4 tells me: int  OrdersHistoryTotal();  Returned value:    The number of closed orders in the account history loaded into the terminal.    The history list size depends on the current settings of the "Account history" tab of the terminal. But if there is a new account there won't...