MQL4 and MetaTrader 4 - page 191

To post a new topic, please log in or register
  hello. i need an indicator. i want indicator to draw vertical line X, Y, Z bar after current bar and repaint it each bar.can you help me please?
Hi! I'm trying to create an EA using this indicator: http://www.earnforex.com/mt4_forex_indicators/Pattern_Recognition_Master_v3.mq4 Anyway, the EA seems to be reeeeally slow, and I noticed that it is loading & removing the indicator all over again every new candle. In the journal: ... 23:59:56 2008...
 I want make code Indicator   .. I wanted to add EMA -1  to  ADX -14  
Hi I have this following code to count net profit in pips. But the code shows positive pips in negative & data is slightly different than original. //----------------------------------       double profit = 0;   for(int cnt=0; cnt<OrdersHistoryTotal(); cnt++)   {         if(OrderSelect(cnt...
Hello Mql, my log file has so much Data. It kills my memory. The same process in the tester File. A solution should be created. Thanks Balduin
Hi, i need a small routine will count my gain and according to part of the gain close open position or part of it,  reset the gain counter and from the point of closed position count again gain till again will rich opportunity to close open position. I tried different opportunity don't work at all...
#property copyright "Jáá"#property link      "https://www.mql5.com"#property version   "1.00"#property strict//definování externích proměnných     //velikost obchodovaného lotuextern int     TP       = 100;      //velikost TPextern int     SL       = 100;      //velikost SLextern int     OT       =...
hello Sir/Madam Plz Help me I want to stop custom indicator by even month  where i want to edit my code plz help me.. this is my file #property copyright "Copyright © 2016, Vishal Ltd." #property link      "http://finance.groups.yahoo.com/group/TrendLaboratory" #property indicator_chart_window...
   int i;                                 for(i=0; i<OrdersHistoryTotal(); i++)   {                                                                            if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES)==true)                         {{OrderClose(OrderTicket(),LotSize,Ask,UseSlippage,NULL);}}
I want to know Ascending/Descending moving average in mql4. give me an idea to code this. How can I do it?
If I want to display the value of lot * a takeprofit value.. My lot size is more than two decimals but the order shows only 2 decimals ("0.03") which I cannot seem to get. For instance: Takeprofit is "0.5" pips, Lotsize is "0.0368" and I 'm trying to see "TP1 Value: 0.15" How do we do it without...
Hi, I wish to launch MT4 on Linux uzing wine. I've been almost successful at doing this but after clicking on the window to accept terms and conditions a new window appears that asks me for proxy server details, i.e. host and port with password. I put in the IP of the server with a port and click ok...
New article Creating an assistant in manual trading has been published: The number of trading robots used on the currency markets has significantly increased recently. They employ various concepts and strategies, however, none of them has yet succeeded to create a win-win sample of artificial...
Strategy Tester Report H1GBPJPY-R-1 FXDD-MT4 Demo Server 2 (Build 225) Symbol GBPJPY (Great Britain Pound vs. Japanese Yen) Period 1 Hour (H1) 2009.01.02 07:00 - 2009.12.30 23:00 (2009.01.01 - 2009.12.31) Model Every tick (the most precise method based on all available least timeframes) Parameters...
Hi, I'm not technical but have a question. I have an offline chart (M2) data from M1 chart. I have an indicator on the offline chart which works perfectly well. However I can't run an EA from the offline chart. I have version 4.00 -  build 988. Can anyone help?
I know it warns me. But why does it do it.....I would like 2 know the logic of this shift. Let me explain how I found out when it shifts. I want 2 make sure my lodgic is sound  Step one I Down loaded from Reuters Eikion  EE page all of the news events back 2 2005. These are time stamped EST with day...
Hi I was hoping somebody is kind enough to help with a basic EA. Its nothing fancy and I'm not great with coding. I am trying to add in only 1 trade per bar but I seem to failing at getting it to work. I really don't know how to implement it into the code. I have been trying to use (Bars !=...
I'm using MetaTrader 4 for Android and wanted to set up my client with Avatrade, though I'm unable to choose the appropriate server since all servers (but the demo server) appears in Chinese (I assume). Please see the attached screenshot. My phone is set up in British English. All other items in...
Hey fellows, This Excel Live tool will allow you to export live MT4 data to Excel compatible format (CSV) file from any chart. You can choose which particular data to export in order you set. The data range to choose from includes: Price high, low, open, close, 1st MA, 2nd MA, MACD bar, MACD signal,...
I am trying to create an array of structs, everything I find online indicates there shouldn't be a problem with that, but I can't seem to get my code to compile when I try to do this.  Here is what I am trying to do: // Heiken Ashi Candle Structint ha = 20;   // Make this number at least 5 more than...
Can someone share with me simple code for mql4 to have a clickable button on a forex chart that when clicked places a market order? If not the code, where to go to research.  All my searches send me to mql5. 
Hi. I am trying to change the colors of an object, but the OBJPROP_BORDER_COLOR not chages...  If i try to change the Background color, works: ObjectSetInteger( 0, "my_rect_label", OBJPROP_BGCOLOR, clrGreen);   But, when try to change the Border Color... not works : ObjectSetInteger( 0,...
Yes, I know this has been posted a couple of times now, but I'm really new to trading in general and want to be sure, that I understand how the calculation of the LotSize (with tolerated Risk and StopLoss-Distance) given. This is the code I wrote (I would appreciate you to review this code and wrote...
Hi Buddies, I am newbie in world of MQL4. I am learning about MQL4 . I want some guidance regarding Trailing Stop and Breakeven. I want to know the main difference between them. Thanks , Kind Regards, traderFx89.
With my broker I can order gold and silver.     But the Indicators dont work: long test = iVolume("XAUUSD", PERIOD_H1, 0);    // returns  0   You must write: long test = iVolume("GOLD", PERIOD_H1, 0);     // returns the true value (iStochastic also returns no value)   So commercial EA Dealers will...
Hi, I would like to create an indicator using RSI.  The indicator should predict using 3 time frame viz, PERIOD_D1, PERIOD_4H, PERIOD_1H.  An arrow should be formed in the chart window if all the 3 time frame indicate buy/sell.  Can any body help me out in coding this.
I have write this simple dll in c# namespace mcMath { public class Class1 { public static double addUp(double num1, double num2) { return (num1 + num2); } }  }  when I try to import this dll file to metatrader4 I get an error Cannot load 'mcMath.dll'...
Hello I'm trying to import a function from file1.ex4 to file2.ex4    in file1.mq4 i got these lines. double getvalue(int i)   {    double r;    r = ExtATRBuffer[i];    return(r);   }     in file2.mq4 i got these lines. #import "myATR.ex4" double   getvalue(int i); #import     When I start the...
Hey, i tried to do some simple calculations. My first problem is that my Put rules do not work. Call works well. //Put Rulesif(FSG_MA < Last_FSG_MA){go_put++;drawLine_Red();}//Call Rulesif(Last_FSG_MA < FSG_MA){go_call++;drawLine_Green();}//Wirte BuffersLast_FSG_MA=FSG_MA; Furthermore, I would like...
My custom indicator has an audible and visual alert that works properly but time in the pop-up is delayed by 10 seconds. How is it possible? datetime time_alert; //used when sending alertdouble   myPoint;    //initialized in OnInitvoid myAlert(string type, string message)  {   if(type ==...