MQL4 and MetaTrader 4 - page 791

  iCustom values  (18   1 2)
Hello, Im writing simple EA code: extern int MaxOpen=1;extern double Lots         =1;extern double StopLoss     =1000;extern double TakeProfit   =1000;extern int TrailingStop    =0;extern int Slippage        =10;extern int MagicNumber     =10001;int EURLongUSD=0;double x=iCustom(NULL,0,"ADXEURMom",0...
[Deleted]
Hello EAs running in the Tester, and Scripts have different FileOpen() default paths. Is it possible for one to access the other? So far I've failed in my attempts to get a script to open a file produced by an EA run from the tester (which has written the file into the Testers default file...
  Help please!  (1)
Help please! I want to close a position after a certain bar if still in negative profit. Thanks.
Hi, I know there are examples here usin the obsolet Windows-function like _open(), _read()... But I think this could be troublesome due to ANSI and UTF8... Anyway I want to read a csv-File which is admin. by LibreOffce and save LO save it as csv Notepad++ tells me this file is now ANSI. After...
Dear, will be an expand of timeframes into the new MT4 platform builds (like M20,H2,H3..), same as in MT5? without using offline charts solution Elie
Something awkward is happening with the MT4 trading accounts everywhere (it can happen with any broker, as far as I can tell). The platform is sometimes, though rarely, duplicating orders sent by experts. I have seen this happen at least 3 times with build MT4 build 500. The first two were on demo
[Deleted]
  get previous bid  (3)
Hi, How do I get previous bid? Thanks for help.
I've searched and searched and have not been able to find a script that will make a (100% amount of account balance) market order that does not add stop loss or take profit (or at least a setting that can turn those off). The closest I was able to find was this http://www.forexfactory.com/showthread...
Hi, does anybody has a link to the Windows-File-Constants (and may be others too - you never know) like: OPEN_EXISTING, GENERIC_READ, FILE_SHARE_READ, FILE_ATTRIBUTE_NORMAL, ... The Windows-Errors I have found. THanks in advance, Gooly
Loading Metaeditor to make a few changes to an existing MT4/MQL4 EA, hit compile and what previously compiled fine, now gives me #include errors. It is now looking in the MQL5\Include\xxx path -- MQL5? There is an MQL4 directory, but never a MQL5 one. Anyone else experiencing this? This is opposite...
[Deleted]
Hi I trade with Renko charts, but since MT4 updated the platform, i started to have troubles. If anyone of you have the code fo renko charts for the new version, please let me know!! Thanks Juan
Hello, I wonder if there is any way I can modify the fibonacci indicator mt4, that annotates the way I point out in the photo. I have seen some platform already has implemented this system. Thank you.
hello community since some days, I am unable to loggin in my MT4 platform, even real account and demo and even a recent downloaded demo does not react on my loggin attempts in the journal, it show following : " connection failed ( general error ) " what could cause this problem ? thanks for any...
[Deleted]
Hi, I have this script an I wann add Time to start and stop running script . Any idea . //+------------------------------------------------------------------+//|                                             Period_Converter.mq4 |//|                      Copyright © 2005, MetaQuotes Software Corp....
  Rsi sound alert  (2)
I need anyone who can make code for rsi sound alert ( everytime reach 70 and 30 ).
The old builts didn't enable us to get the Windows Errors: GetLastError()? Now the mt4 still has that name :( Gooly
[Deleted]
I want to know am Using 2 meta trader 4 clients one for charting only and one for where I place my trades I don't like his charting so my question is in my charting MT4 when I open a position is there any posibility that my sl tp and order also be opened in other MT4 and also when I update my sl tp...
hello people i am new to mt4 and have a problem with my trades being stopped automatically, i enter a trade for say a size of 1 and just before a peak in the chart and the trade is closed always automatically just before the turn incuring a loss or sometimes a small gain. why wont my trades run for...
In the terminal log usually several error messages appear which says for example: 2014.03.29 06:08:26.359 HistoryBase: 2 errors in ' USDJPYi1 ' How is it possible to detect and repair these errors from mql4 ? Thanks
Open EA Input-Settings and press OK, with or without changes, and the OnInit() executes TWICE. Really messes with the idea of trying to politely handle errors. Anyone else noticed this and reported it? At first I thought it might be my complex coding, so I grabbed sample code from the Code Base. Can
[Deleted]
Hello I'm trying to get a very basic ChartFirst() command working in mql4. But it always produces error 4211 - Chart Not Found. There is a chart open in the trader. 3 charts open, in fact. My code simply says in OnInit(): Alert(ChartFirst()); Any idea why this is not returning a valid chart ID?...
I have beenrecording broker data for two years now, in the hopes that my data has a higherquality than the history download. I only recorded the 1m, 5m, 15m, 1h and 1dbecause that is what I use mostly. I have 2 brokers and 2 terminals per brokerto record several symbols. I always suspected that it...
I have coded the simplest of an EA, with just basic init, deinit and start functions sending an alert,,,however the start function is not getting executed whereas both the init and deinit are running good,,,,What could be the error??? Oh,, and by the way it compiles just right.
  Orderselect  (7)
Hello guys, I wanted to know what I am doing wrong, I do not get the ticket number, all I get is 0; int ticket = OrderSend(symbol, OP_BUY, 0.5, Ask, 0, Ask -0.020, Ask +0.100, "BUY ORDER", 0, 0, Green);     Print("TICKET NUMBER: ", ticket);
Hi there, I'm trying to get the value of Value[1] but as a result I'm getting 2 different values like 1203 and 735 ... The same is for Volume[2] ... [3] etc. Is it not supposed to be just a single value returned ??
[Deleted]
HI everyone!!! I need some help in writing an ea as I have no knowledge in it at all. I trade using pivot points as entry and exit levels. I set the trades by using pending orders (sell stop and buy stop). The problem is that I enter the trades at 07:00 gmt and since I have to work I can't always...
Hello, I write because I cannot find a solution to this problem and I hope you can help me. From build 600 and above of MT4 (I currently have the latest version, build 625) I can no longer perform backtest with Volatility Factor EA and WallStreet FOREX Robot. After reading M1 data, MT4 crashes as...
Hey guys, I am new to this forum and I have a question about this code: #property indicator_chart_window#property indicator_buffers 3#property indicator_color1 DeepSkyBlue#property indicator_color2 DeepSkyBlue#property indicator_color3 DeepSkyBlueextern int BandsPeriod = 20;extern int BandsShift =...