MQL4 and MetaTrader 4 - page 375

How do I create/assign an alpha name (i.e., MACD EA) so that it appears when I hover the mouse over an open trade? This applies to EAs that I create and use
Hello, I'm trying to get an EA to run off of buffers from a custom indicator. The indicator creates arrows indicating long and short, and closes the trades with arrows indicating close. The SL is drawn on the chart with a buffer as well. I want the EA to open trades when a buy/sell arrow is printed...
TimeHour function not defined ??? how to fix it ?  Help me guys on macbook pro
I have many custom indicators, templates, etc, is there a way to install these custom stuff into a separate library from the installation libraries? The problem is that if I need to perform another installation of MT4, I need to find out what needs to be copied over.
Hello when I execute the EA, the buy order is created but the error 130 message(invalid stop loss)  is displayed for the function ordermodify ()? I used ordermodify() function beceause in my broker I can't created makret or pending order with stop loss and takeprofit levels....
[Deleted]
Hello Im quite new to MT4 coding. Ive written a couple of indicators but I find that despite trying different commands (ObjectDelete, ObjectsDeleteAll, ObjectsRedraw) in the init section of the code I cannot get my drawn objects to be redrawn unless I switch from one timeframe to another eg 5M to...
An EA is master pieces of the author and copyrighted, must be great if MQ4 Vendor can make automatically generated some code to make all compiled EA is can not decompile by hacker or by everyone except MQ4 vendor. if anybody agree please reply this thread, or if do not like reply with reason too. So
Hi, I have a label object with an OBJPROP_CORNER=CORNER_RIGHT_UPPER. The label shows a dynamic value, so the the width of the label is also dynamic. Because of the upper right corner the label widens to the left side. Question: How can I get the left x-coordinate (means the end to the left) of that...
Hi, I changed my trading server for my signal providing trading account and now I can't put it back for sale. Error message: Authorization failed. Please check trading account data.  Keeps appearing whenever I try to make a change to it. Login, investor password and server are all good to go so I...
  Error 130 & 129  (5)
Hello everyone, How can i solve the problem of error 130 & 129 here:ticket=OrderSend("NZDCHF",OP_BUY,1.0,Open[0],0,Low[0]-200*Point,High[0]+200*Point,NULL,0,0,Green);
I have been succsessfully using the mt4 platforms on my desktop and iphone for over 18 months. Last week a notice to update came on the desktop screen. I wasn't able to perform the update at that time and can't get the update option to show back up on the screen. My desktop mt4 platform stopped...
Anyone know why I'm getting this error when testing XAUUSD? 2019.07.17 13:44:20.671    2019.06.28 23:54:59  MACD Lite XAUUSD,M1: unknown symbol name EURUSD for OrderSend function
[Deleted]
Hey guys, to be honest, i'm really disappointed of the latest MT4 software. I just can't belive that the mega bug with the trendline ( moving from timeframe to timeframe ) which had been discussed several times on almost every forum i know, is still there. I just don't get it. It's such a pain to...
#property indicator_chart_window #property indicator_buffers 6 #property indicator_color1 RoyalBlue #property indicator_color2 Red #property indicator_color3 RoyalBlue #property indicator_color4 Red #property indicator_color5 RoyalBlue #property indicator_color6 Red //---- input parameters extern
  Extern bool  (6)
Dear All when I change my variable (Money_management) to true or false, by launching my program, I do not get the desired result. indeed if I leave by default in my program at FALSE, and I change my variable at launch, this is not taken into account. I can't find my mistake. can you please help me?...
Hi, can someone help how to to teach an ea when xxx amount of open orders reached than do not open trades for the rest of the day and start on next day. I am counting my openorders right now like this double Open_Orders_Profit() { double openordersprofit = 0 ; RefreshRates(); int Total=
Hi, This is notice that if you try to use CiMACD in MQL4 you will not always get the correct result. The reason is that in class method GetData you have the following line: return ( iMACD (m_symbol,m_period,m_fast_ema_period,m_slow_ema_period,m_signal_period,buffer_num,m_applied,index)); Look at the
[Deleted]
I have been using the MetaTrader 4 app on my android for over a month, worked great for what I was using it for. One morning, I logged in around 7:00 am, worked fine. Tried logging in later that morning around 10:00 am and I got the error, Authorization Failed. I contacted the broker to see if...
  ChartIndicatorAdd() in MT4  (19   1 2)
It would be stunning add this functionto MT4, meanwhile how Can I achieve this sort of thing in MT4. What I really need is overlay to different indicators (BB and RSI) in the same sub window from code. Thanks.
Hi, with the function ChartGetInteger function and the property GET_WIDTH_IN_PIXELS I find out the width e.g. respectivly the height of the chart. Unfortunatly that doesnt work when I tile the window. Let's say I have 2 chart windows tiled in different size and want to know width and height in pixel...
if(Total_sell_pos() == 0 && Total_buy_pos() == 0) {      double previous_balance = AccountBalance(); //usd1000}if (AccountEquity() > previous_balance + (previous_balance *0.05)){ //usd1000 + 50 = usd1050      CloseSellOrders();      CloseBuyOrders();      Delete_Pendings();} if Equity more than...
  Expert Problem  (4)
Hello everyone, I'm trying to make an expert with the CCFp for currency strength, the problem is that when i make the expert from thr indicator, it doesn't report the data so every variable in the code is equal to 0. How can I solve it?
  Charts Problem  (1)
Hello Everyone, I'm trying to make a screener in which i'd like to draw a minichart in a little box under datas,what functions can i use?
I have found an script for swap that does what i want (show the swap rate on long/short and colours them either green for a positive number or red for a negative number.) What i would liek to be able to do is change it to an indicator so i can use it with an ea builder.
This is part of my code //|                                                           GumRai |//|                                        http://www.metaquotes.net |//+------------------------------------------------------------------+#property copyright "GumRai"#property link      "http://www...
I tried to automate it but I got wrong entries even I detect the right numbers of each trend of the indicator . any idea about wrong entries ? or how to detect the signals ? this is a part of my code  if( redd!=EMPTY_VALUE && orderscnt (OP_SELL)==0){        if(TakeProfite...
  One more average ...  (511   1 2 3 4 5 ... 51 52)
The usual story goes something like this : which is the best moving average? Everyone that ever started to do any kind of technical analysis was pulled into this "game". Comparing, testing, looking for new ones, testing ... ______________________________ The idea of this one is simple : it should...
Hi, I am new by MQL4. These days I read the tutorial from "https://book.mql4.com/samples/expert". On this side at the end there is an EA called "tradingexpert.mq4". But as I try this in MT4 for automated trading , I doesn't work. The EA seems can not be started. Maybe has someone experience? Many
i searched very hard for this issue i want to count total lost orders in order history and total profit orders in the closed orders not open orders .... after i searched i found this code but seems doesnt work dont know what's wrong with it int TotalLostOrders() {  int TotalLost;  for(int...
Hi, I have been looking in market place and on the forum,  Does anyone know of a MT4 EA or Application that only manages StopLoss? It can be a fixed StopLoss, nothing fancy. I have a EA running and it doesn't have a setting for StopLoss. Would love to load a EA on another chart just to manage the...