Download MetaTrader 5

MQL4 and MetaTrader 4 - page 48

To post a new topic, please log in or register
Hi, I'm trying to make a clean price intersection expert advisor with no success till now, I think the code is right but the backtester doesn't think the same. These are the critical points: - Opening candle price below the moving average and close price upwards for BUY:    double...
I am having some problems with EAs and MT4. 1: When I start up MT4 I get the error "Error News download, add the address xxx in the list of allowed URLs on tab Expert Advisors". How can I remove this news function or find the faulty EA that's causing this? 2: I wanted to test some EAs with my demo...
is it possible to use a downloaded indicator when programming my experts?
hi i am a beginner of MQL4 code, help .... code of OP_BUY for CCI cross a value (not when it is greater). example, bar [1] CCI = 57 at the closing of bar [0] reaches the value CCI = 68, so the ea must open the position size. In the usual logic, how can I take past values from an indicator? example I...
  Mql4 (1)
can I use the average directional index wilder indicator to create programs on mql4 ???
  MT4/EA (1)
Hi,I would like to know why this happens on my MT4 I leave my MT4 open overnight with my EA on but for some reason my EA doesn't place trades regularly on my Journal say's ping failure
Hi, I'm kinda' new to using Scripts, and am running into a problem. Using the standard (or any other) scripts on my InterbankFX demo account worksfine, but I recently set up a live acount and whenever I try to execute a scriptI get an error message in the Expert Log that gives number 4109 - which...
Hi all Have an ea that works perfectly on regular accounts but generates 4109--"Trade-not allowed" error when micro account requires symbol with "m" added, as in header. Does anyone know of a work around? Have confirmed that live trade is checked; unfortunately the broker is in denial mode and I...
  Digital Martingale EA (110   1 2 3 4 5 ... 10 11)
This is the first of hopefully many different versions of Ea's using Mladen's digital indicators plan on making martingale Ea's and regular Ea's using these indicators. The indicator is the same as Digital filters smooth -separate, but removed the mtf because to me makes it easier to code the mtf...
Hello, does anyone has script for calculate today profit/loss? i have find everywhere but couldnt get one. help me please. thx code in mq4 would be very appreciate. thx
Hi All,    I am new to mt4 programming. I am using two moving averages 50 and 200. Can some help me out by giving me mt4 code to print close price of the particular candle where the moving averages cross each other. Also i wish to print the close price  above the same candle itself.    It will be...
  FileReadArray() HELP!!!! (11   1 2)
Hello! Hope you can help me out. I have a file named "sample.bin" in the MQL4/Files directory that has the exact following content: 1 0 1 1 0 1 I want to create an array that has all of those 6 lines as array values. The desired output is array[1]=1      // (as per the first line of the sample.bin...
Hi everyone, 1) Is it possible to drag and drop the SL & TP without having to press teh ALT key? §If yes, how? 2) I have a UHD monitor and the SL/TP/Entry price lines are much too thin. How can I increase their width? Thanks!
Just a discussion point;  1. do you go for a set take profit target for every trade, say 100pips regardless of your stop loss size, or 2. do you make your take profit level a set ratio larger than your stop loss for each trade, i.e. Risk reward ratio of 1 to 3.. Reason I ask is I had the EA I'm...
Hello, I wonder if it is possible to know which window is the active one, the one that has the top priority for mouse clicks Or get the name or anything specific about the top active window? I've tested all these functions and more but they usually return 0 : int      GetWindow(int hWnd,int...
Hi, If I want to use the same signal on two different broker accounts, do I need to subscribe twice to the signal? Thanks for your help.
Hello, I am backtesting to see whether my understanding in time is correct in MT4. So I started backtesting with Tick data suite an EA called robotron using different timezones, but with same default setting. The only difference is the trading time is adjusted to the timezones respectively. I tested...
everytime i start the mt4 terminal ,there will apear a process named "DJ音乐盒 " in task manager .it use many memory resouce. when close mt4 terminal  the process disappears too. when teminate the process ,the mt4  teminal disappear too. i reload the windows oprate system several times ,the problem...
Hello, EA code is to open Buy Limit order if Open Buy Orders > 0.And close any Limit order when Open Buy Orders = 0 It does but it closes it after seconds and repeats this How could we fix this? Thanks in advance! Code: int count_sellLIMITorder()  {   int countsellLIMIT=0;   for(int...
this is my first EA to do  i want to know is this indicator function that i use is right or wrong.so if wrong what is the right ? //MA bool MA() { double ma5= iMA(NULL,0,5,0,MODE_EMA,PRICE_CLOSE,0); double ma10=iMA(NULL,0,10,0,MODE_EMA,PRICE_CLOSE,0); double ma20=iMA(NULL,0,20,0,MODE_EMA,PRICE_CLOSE...
not sure why anyone know how to down load an ea and save it like in the old days,and intall it yourself ?
I started this thread to post all news/signals indicators and EAs we have now and will have in the future.
I have been learning the MQL4 and so far I have made some progress however, I have this challenge I encountered while trying to code the below: "Generally, the area above 80 indicates an overbought region, while the area below 20 is considered an oversold region. A sell signal is given when the...
Hi, Can anyone help with this issue? Cant install mt4. Ive tried with several different brokers but nothing. Thank you!
Hello folks, I'm going around the lotsize calculation and I'm having trouble coming up with a function that works fine for different denominated accounts and 2,3,4 and 5 digit symbols. The following lotsize calculation works, but will it work for accounts denominated in other currencies? I've read...
Hi, I am programming an indicator which must shown an arrow on every day the conditions are met for all available days there are in my chart. I've got it working when I met all the conditions with price. When I will met a condiont with pricetp, it doesn't work anymore and show every day an arrow....
Hello, this is the first indicator I have written and it hast some flaws. I would be happy I someone could help. What it should do: A: Draw 3 candle long line and and arrow on candle which's close crosses the small EMA (10) from below, if it is above the big EMA (200), B: Contrary draw 3 candle long...
Hi everyone! I want to read this text file : 237     DC      8.9     12.5217     DC      7.5     10.6316     DJ      5.9     8.4257     DN      10.0    12.7355     DU      4.6     6.6190     DC      8.6     12.1267     DJ      7.2     9.7222     FJ      8.5     11.8 Each column is separated by a tab...
  Forex data converters (93   1 2 3 4 5 ... 9 10)
MT4 script to convert csv to hst
//+------------------------------------------------------------------+//|                                                          new.mq4 |//|                        Copyright 2017, MetaQuotes Software Corp. |//|                                             https://www.mql5.com...