Download MetaTrader 5

MQL4 and MetaTrader 4 - page 171

To post a new topic, please log in or register
You can be connected in some way an excel file to an indicator ex4 MT4?
Hallo lovely people   I have the followingproblem: I want to code a EA that executes an order if the current bar crossesan indicator line! Actually it's simple I could just code (if Close >=MAline than sell etc.) but I plan to close the position when a take profitlevel is reached. If this happens...
Hello I am developing a very simple EA which retrieves the open positions every time it starts (on the OnInit() event handler) . It should, supposedly, evaluate positions on every tick (on the OnTick() event handler ) to decide if the position must be closed. By now, I realized it is better to have...
Hey guys, I'm considering on adding the custom time zone app with FXCM - see link here: https://www.fxcmapps.com/apps/custom-time-zones/   This should make the time of each candlesticks reflect your actual time zone. Would this have an affect on my EA?  Say for example, if I wanted my EA to trade...
Hello, MQL community I am trying to create an indicator which returns, in Histogram format, values equivalent to the Standardize function in Excel. However, I am trying to do it for Ranges of candles, not prices. Description of Standardize function from Excel Help: Returns a normalized value from a...
I'm trying to execute some command prompt commands but I'm having a little trouble. I can get xcopy to work ShellExecuteA(0,"Open","xcopy","\""+From_path+File_name+"\" \""+Destination_path+"\" /y","",3); But how do I get the command move to work I tried ShellExecuteA(0,"Open","move","...
  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.