MQL4 and MetaTrader 4 - page 559

Hello everyone, I have to insert a special condition in my marker. The histogram of the "Awesome" for a Sell must be red, for a BUY to be Green.......They do not need other conditions, such as negative, positive or particular values, but only the color of the spark plug 1 but with this my code does...
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...
[Deleted]
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...
[Deleted]
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):...
  time condition  (3)
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...
[Deleted]
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...
[Deleted]
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","...
[Deleted]
  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?
[Deleted]
 I want make code Indicator   .. I wanted to add EMA -1  to  ADX -14  
[Deleted]
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...
[Deleted]
#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       =...
[Deleted]
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);}}
[Deleted]
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...
[Deleted]
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...
[Deleted]
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