MQL4 and MetaTrader 4 - page 705

New article MQL5 Programming Basics: Global Variables of the Terminal has been published at mql5.com: This article highlights object-oriented capabilities of the MQL5 language for creating objects facilitating work with global variables of the terminal. As a practical example I consider a case when...
How to control the text format when using FileWrite()?e.g. add a tab between 2 words.
[Deleted]
HI, I try to optimize 2 variables: 'buy' : value in program (as extern): 0.75 , start: -0.2,  step:0.05,  stop: 0.9 'close': value in program (as extern): 0.2, start 0.3, step: -0.05, stop: -0.6 when I run that on spx500 (the broker is fxcm), for a 1 month check (1.10 to 2.11), on 'open prices only'...
Good afternoon! Can you tell me if there are any testers that support MG4 scripts and EAs
[Deleted]
Hi to everyone, I wish to ask you if there is a downloadable code (better a script) for MT4 to save each time frame of a single pair (e.g. EURUSD1M , EURUSD5M, EURUSD15M, so on) in just "one click", to save time and quickly run my analyses. I have already tried to Google something about that but I
I am new to automated trading only. I have been trading the FOREX Market for many years but now trying the automated side. I have build a few EA's but on live testing on my demo account I have a few questions. 1.) When my EA executes a trade, it only seems to trade that one pair even though I have...
Hello, I believe this is a simple issue (however I'm not a developer) but I'm trying to get this old code to compile on the new 600+ builds.  The error I'm getting is:   'start' - function already defined and has body  I don't understand this because i can't find a "start" anywhere else in the code...
Hi  I have an EA based on breakout. Basically I am drawing a trend line then look for the cut between a MA and this same trend line. For achieving this, I  draw the trendline then use ObjectGetValueByShift(). That works for fine on a graph for a given pair. Now assuming that I want my EA to trade...
  mql file  (3)
Hi from Italy. It's the 1st time for me here. I wish I knew if it's possible to have a little file in mql. I explain: I like Ichimoku indicator and I wish a simple ALERT. But I didn't know anything about mql language. An alert that show a display message when price goes 115 pips over or under Kijun...
Hello,   I had this line of code in an indicator previous to build 600 but for some reason I get an error on the newer builds of MT4 and was wondering if someone could help me resolve this... the error i'm getting is:   static datetime Time.open;   "." semicolon expected     Is there a newer way of...
  Chart order  (1)
Hi, I have 24 charts saved in my profile, however when I save my profile and then reopen it, the order of the charts is not kept in sequence even though I have saved my profile. All the changes to the charts are saved, but not the order  I am using Metatrader4 version 4.00  build 475   thanks Gavin 
  spooky spots  (4)
I have made a simple indicator (attached) that detects a simple ma change. It calcs down to i>0 (min==1) sets the buffer i-1 (min==0!!) the open[i-1] which would be a possible enter-price. This simple indicator creates after some hours of running spooky spots in the night sky?? Is this there a...
Hi, I running simple code on ea and indicator using tester. Timeframe is H1.The code is:    double h = iHigh(NULL,PERIOD_D1,0);    int err = GetLastError();    if (err!=0)        Alert("error __high=",err);    GlobalVariableSet("__High",h);    double l = iLow(NULL,PERIOD_D1,0);    err =...
Hi, the calculation of "macd_signal" in my EA code is: double macd_main= iMACD ( NULL , 0 , 12 , 26 , 9 , PRICE_CLOSE ,MODE_MAIN, 1 ); double macd_signal= iMACD ( NULL , 0 , 12 , 26 , 9 , PRICE_CLOSE ,MODE_SIGNAL, 1 ); but regarding the documentation this will calculate "macd_signal" with MA 9(
Looking for day traders to trade big size accounts Equitie BP starts from 50k to few m's with perspective to grow. Profit target 2-4 % per month. For short period of time traders will have to use a demo platform before they will get a real account. Steady day traders only. For more info contact v...
[Deleted]
Hi all,  The question on which Forex.com was unable to respond was about the details  of the provider who give them "News" in "news" window within the MT4 platform they provide...  They vaguely saying that  it's provided by Thomson Reuters, but in order to use this information (what I would prefer...
terminal.exe (745) on MetaTrader 4 does not start at all. I think the problem started after I updated Windows Technical Preview to Build 9879. Before, there were situations when MT4 started slowly. Also, when it worked before, it sometimes forget the login data, so I needed to register a new demo...
Is there a way of viewing on more than one screen a currencypair that I have loaded under “Profiles”   I have two screens operating from one  computer   I have all the currency pairs loaded under the “Profile “Tab   What I would like to do is to be able to click on one of thescreens and bring up...
How long does this function work, when I press AutoTrading how long is it supposed to work until I have to click it again? Or it doesn't work that way? Because in my MT4 it sometimes turns off (I think it's after 24h usually). If it turns off, then is there an option to turn it on so that it stays...
Hi, I have a Joomla website, and I would like to give the possibility to my members to display their MetaTrader statistics in their profile on my website. I heard that there is no MetaTrader PHP API available, so is there any other way to proceed? I would like something very simple, similar to...
[Deleted]
Hello Everybody and Thanks for this preliminary interest in my project. It is not something can fit the Freelance Market, and i clearly explain why. I want to create a revolutionary software able to work at the traders side and to guard all the traders decisions. Every traders in every markets will
I want to build in number of time period options to trade into my first code, is there an enumeration that could deal with a list of options. Thanks for any advice ! 
[Deleted]
Hello, i want to know why you can optimize some EAs and some not? I have the problem, that one of my EAs works normal, but if i want to optimize it there is nothing in the window, just nothing happens. Has the code to be coded in a special form for it or what can i do ? thx and greet
[Deleted]
hello, i'm trying to add custom levels to a Pitchfork as described here: https://docs.mql4.com/constants/objectconstants/enum_object/obj_pitchfork   ObjectCreate(0,"Pitch0",OBJ_PITCHFORK,0,ZZTime[3],ZZPrice[3],ZZTime[2],ZZPrice[2],ZZTime[1],ZZPrice[1]);ObjectSetInteger(0,"Pitch0",OBJPROP_COLOR...
Hi would appreciate your help and feedback I wrote the following EA and it's a very simple strategy, but it doesn't when apply to the a chart and there fore when I do back testing it doesn't open or close any trades Thanks    #define...
[Deleted]
Hi, is anyone aware of an Indi or EA that generate alerts when Fibo Fan levels (38.2%, 50%, 61.8% etc) are broken ? Any sample code ? I could adapt it to my needs. Help is appreciated, thanks. 
[Deleted]
Hello, Is there a way to set the User Data Directory upon terminal start? I think that would be a solution for my problem, which is: I have XP system, that I access via RDP. I have configured that the MT4 terminal starts automatically after system restart. When the system is restarted and the MT4...
Dears, do you know which function can get the leverage value? Or how to get it?
Dear friends,   Is there a way or function available to check the correspondence between lots and units of different symbols on my account? I searched on this site and didn't find it. Or where can I find the list of lots/units correspondence with different symbols? I know it's '1 lot=100000 units'...
When I try to change either my master password or investor password, the change fails and I get a Cannot change password [not enough rights] message in the Journal tab of the terminal.  What is causing this. I know the current master password is correct because if I key in anything else for it the...