Download MetaTrader 5

MQL4 and MetaTrader 4 - page 379

To post a new topic, please log in or register
How to make edit field show string I enter? When I enter new value it will change to the initial value. I need it show the new value that I enter last time. And get the new value to variable. Sorry for my poor English. Thanks.
I have successfully installed a simple break even EA on one of my computers (older running windows 7) and it works fine, but I cannot get it to work in my laptop (older) or my other new desktop (running windows 8)?? Its installed in the very same folder in each computer (C:\Program Files...
Hello, I am Trying to calculate my prievious trades losses using a function of the open lots. But it seems there is something wrong because every time I try to read Print ( OrderLots()); I got the initial lot which is 0.01. void lossCalculation() {    int total=OrdersTotal();    for (int...
I make an EA for hectic market (specially nfp) long time ago. It was works just fine. But then i need to change some of the variables. And after i compile it, i can't run it again. I try to run another old EA, it works. Then i try to recompile it, it doesn't works. The error i got is " 'ea_name' is...
This worked and still works with an item compiled under build 616. If I copy and paste, then recompile under build 625, web page(s) never return a string. I don't want to assume this is build 625 because it could be my code even though the 616 version still works. Could someone take a look and see...
Hi Guys Please assist if you can. I'm new and can't get my head around this one. I have small account that I'm playing with just to get the idea of whats for what but I'm in a small dilemma at this stage. The account balance are 156 odd $ and my equity are still at 126 odd $. Free margin shows -86...
Hi all, as mentioned in the title, I wonder if this is an acceptable matter in the industry or MT4 community? This happened during NFP news release where volatility was high. Here's the screenshot of my live trade in MT4 few days ago. For that matter, I had 2 supposedly break-even (stoploss...
Hi all, I'm trying to install the client but during the installation I'm asked for the proxy server userID and passwd. What should I put there? Thanks in advnce for your help. Bruno
Hello guys, I would like to remove the charts from mt4... I once read something, some code, that released the charts within the metatrader. For those with more than one monitor, place graphics on each screen. That's what I wanted. Who can help me? Thankss
I have need to declare an array that contains double data types, but I get the following error message: 'USDbefore1' - constant expression required Not sure how I should go about it. (Will something like "structs" solve the problem? - Obviously a question from a pure novice!) Here is the code:...
I've uninstalled my terminal and deleted MetaQuotes folder from appdata/roaming folder Then reinstalled my brokers terminal, and all the previous indis and EAs I had are loaded Did the broker had access to my indis/eas and stored them on their server ?
Hi, I has been working with MetaTrader sucessfully for few years now. i iinstalled at multiple laptops. Sudenly last week when i opened my windows 7 instance, the terminal open but disapeared a second after. my broker tried to copy each of his folder into mine without sucecss. I then, tried...
Hi guys, I am trying to pass an array of string to a delphi DLL, here is my code, does anyone knows what's wrong? Delphi DLL code extract... type StringArray = array[0..100] of PUnicodeString;function test_string(var strValues : StringArray) : integer;stdcall;begin  MessageDlg(string(strValues[0])...
Dear all, I created my first scrpit designed to launch buy orders at a preset TP/SL distances from current price, as well as lots. Unfortunately, it doesn't work. I get error 4109. Any help would be much appreciated. Here you have it. int start(){double lots;int take_profit,stop_loss;//----//...
Hi I run an EA and indicator on several charts at once, since the update my mt4 platform seems to crash several times per day. After checking the log files it shows the EA and indicator has being uninstalled and then reactivated, this seems to happens several thousand times per day! Any ideas? Is...
How to get points from current chart, point ( price, time ) in order to used it specific funtion
Hello, since last update of metatrader 4, last friday 21th, I get this message and my EA isn't trading any operation. In the setting menu all trading options are allowed, I mean, everything was working properly until the last update, and I don't understand what I should do. Please I need some help,...
How can I detect switch off/ on of autotrade button in mql4? The thing is that I don't know how I could restart some variables just when starting auotrade big button, like a reinitialisation. This is for stop trading when a conditions are reached, and started again when I switch off and I switch...
This script demonstrates that OBJ_EDIT example from MQL4 documentation https://docs.mql4.com/constants/objectconstants/enum_object/obj_edit contains an error: the priority for mouse click can not be set or at least the compiler issues an error message of unknown object property. We take the...
Hello everybody, has anybody come across the following issue: if a new window is opened up in MetaEditor (Window-->New Window) it is supposed to allow one to access different parts of the file, isn't it? But when I scroll to a part I need in the new window, the original window automatically scrolls...
Hi, Please, could you help me ? I can't change color, font size and font name label of my Hline by this way : ObjectCreate("Plus Bas Jour",OBJ_HLINE,0,0,iLow(NULL,PERIOD_D1,0)); ObjectSetText("Plus Bas Jour","Plus Bas Jour",8,"Arial",indicator_color4); Is it the good function ?
  Why? (16   1 2)
I use the following snippet of code in two different EA's. In the one there is no problem when I compile the code, but in the other it gives me an error message saying; 'for' - expressions are not allowed on a global scope Why? I have searched and searched and cannot find the cause. Can somebody...
Hi guys, I wanted to write a simple indicator showing the average percentage change of few pairs (say all USD pairs or all GBP pairs). Indi is working, but when I'm changing the chart TF it disappears. I completely have no idea why. I guess its something ultra simple :) Thanks for help!...
Where can I find this indicator?
#include <stdlib.mqh>//+------------------------------------------------------------------+//|                                              Doda-Stochastic.mq4 |//|                             Copyright © 2010, Gopal Krishan Doda |//|                                        http://www.DodaCharts.com...
Please help as MT4 crashes at launch i tried reinstalling but still the same. I have also tried deleting registry keys. tried it on another PC still the same. Filename : mt4clw.4DBA1374B8789B3780F2AC257F8C3A90 Time : 2014.04.02 10:50 (00:00:00 elapsed) Program : MetaTrader 4 Terminal...
Hi Can someone please direct me how do I get the text of a label object. Thanks.
Can someone explain the MT4 filing system? Or Windows (7)? Before the upgrade, it seemed pretty straightforward: EAs were filed in the Experts folder. No more, at least for me. After writing a couple of EAs and indicators, I went to look for them in the same folders where my pre update EAs and...
I noticed that visual representation of indicators lines and their values that you can read from Data Window can be different for exactly the same EA, point on the screen when values are considered for calculation or just printed to the file. I checked two indicators ADX and Stochastic (standard one...