Download MetaTrader 5

MQL4 and MetaTrader 4 - page 93

To post a new topic, please log in or register
hi, i am writing up a log file from an EA. if the EA is restarted i want it to carry on writing to the same file... but append to the end of the file. initially this did not work for me, so i searched the forum and found https://forum.mql4.com/13774. i applied the directions there and my init()...
Dear all, I'm building a multiple strategy based on the RSI  levels: Between 30 and 70 use a certain strategy: Strategy N°0 Between 70 and 85 or 30 and 15 I use strategy N°1 And between 0 and 15 or 85 and 100 I use strategy N°2 (Although in order to move back to another strategy from srategy N°2...
I want my EA to enter trades only when spread is below 2 pips. What parameter i should use?
New article Working with sockets in MQL, or How to become a signal provider has been published: Sockets… What in our IT world could possibly exist without them? Dating back to 1982, and hardly changed up to the present time, they smoothly work for us every second. This is the foundation of network,...
  Newbie coding help (15   1 2)
Hi All, I need helping with fixing a coding bug. The EA is not doing what it is desired as losing trades are not closing at specified times with certain percent. Any help??  Attached is a time based stop loss EA. EA's purpose is to close % of a position after specified time has elapsed of a losing...
Hi I need to check the combination of my boolean functions which actually are situations that may happen in chart and are in extern. let you explain it by an example. I have 10 different functions that their names are OPT1, OPT2,.... OPT10. to check them I have to make groups of them, So I have to...
Hello, what MT4 indicators/scripts/EAs can you recommend to open and manage a trade in the easiest and fastest way? I imagine the following features: Open the trade by a single button click or key press.Set my SL and TP visually before opening the trade or immediately after that.The SL and TP lines...
New article Using text files for storing input parameters of Expert Advisors, indicators and scripts has been published: The article describes the application of text files for storing dynamic objects, arrays and other variables used as properties of Expert Advisors, indicators and scripts. The...
Hello, i'm searching for a reliable datafeed for backtest of e-mini nasdaq future in MT4,  i need  file in .fxt or .hst format anyone has a data provider to suggest? Thanks 
I simply need someone to create an indicator that plots horizontal lines on these certain numbers: Gold line (double width): 000, 250, 500, & 750Red line (single width): 075, 175, 325, 425, 575, 675, 825, & 925Red line (single width): 100, 200, 300, 400, 600, 700, 800, & 900Red line (single width):...
Hi. I would like to add to my open conditions sth like that: OrderOpenTime()  of last trade + 4 Hours <= TimeCurrent() plz help
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...
1...8687888990919293949596979899100...1244