Download MetaTrader 5

MQL4 and MetaTrader 4 - page 287

To post a new topic, please log in or register
Feature Request - Would it be possible to add support for the mouse "Next" and "Previous" buttons into MetaTrader? The idea would be for it to switch the current window to the adjacent tab, i.e. the tab to the left for "Previous" and the tab to the right for "Next" (note this is NOT the same order...
  Advise on MQL4 vs MQL5 (18   1 2)
Hi all I've read the new here: https://forum.mql4.com/59622 Question is: Quit a while ago I started learning MQL4 to about an intermediate noob level. Now that time as gone by I wondered should I continue to write code in MQL4 or just start learning over again and go right to MQL5 Are most forex...
I can not get the install to setup. Able to download with no problem. Install starts. Get a proxy server pop up at the location step. I do not use a proxy. From other articles have tried different browsers, clicked cancel on proxy pop up and tried many times. Even let set at the download step for 30...
Is it possible to get an alert+pop from Indicator Window? Like in following image when indicator touches -80, I get alert   
The below code with #property strict directive compiles without error, but doesn't display anything. If you comment '#property strict' directive //#property strict it will also compile without error and the indicator will display a line. Not working code: #property strict#property...
Referring to https://docs.mql4.com/basis/function/events, OnCalculate paragraph. One can read: We should noted the connection between the return value of OnCalculate() and the second input parameter prev_calculated. During the function call, the prev_calculated parameter contains a value returned by...
I wonder why accessing volume or spread parameter of the OnCalculate function makes the indicator freezing when compiled with "#property strict" property. Have a try. When running, first tick shows alerts up to instruction: Alert("tick_volume[0]="+IntegerToString(tick_volume[0])); Subsequent ticks...
I need the script for viewing the market watch time dynamically in my message.   String Message; Message = " Now the Time is " + " xxx Market Watch time xxx" ; Comment(Message);   I need the solution for the above script   
Hi! I've got a good EA, but If It's open a position, and when this position will go wrong later, I'd like to close it 12 hours later. How could I do this? I know, I need a for cycle. For example:  for (i=0;i<OrdersTotal();i++) OrderSelect(__Ticket(0),SELECT_BY_TICKET)  if (__isExist(0) &&...
Is it just me or has anyone else noticed the Spread: 2 setting for build 625 (and perhaps any other previous builds) being far less than 2 pips (perhaps it's at 0.2 pips)? After recently doing some backtests on the spread 2 setting and getting unbelievably great results on all timeframes, I did...
Please,  can anyone help me solve this. I do not want it to open a new trade, at the exact same price as an exisiting open order. I tryed this, but it keeps open new orders at the same price. I have read a lot in the documentation, book and forum. There must be something that I am missing....
Hi:   Is there any interface to read the MT4 trading history from an external application? And any approaches to communicate between the MT4 and the externals please?   For example, I want to read the last 50 tradings to analyze the trading behavior in Matlab or C++ etc.   Thanks 
Hi guys, I just want to write a small indicator to give me an alert when 3 consecutive bars close (bearish or bullish) ... Any clue how to do it? Thanks in Advance
My fxt file has 3.7GB and the strategy tester finished the test successfully with trades executed throughout entire "From" - "To" testing period. MT4 version: 445. Has the 2GB limit been fixed? If so, when? I can't find any official statement/confirmation.
I have many indicators, scripts and EAs. I know that MT4 needs  the following architecture: MQL4>Experts > EAs MQL4>Indicators > Indicators MQL4>Scripts > Scripts There can be folders within as well! For example: MQL4>Experts>EAgroup1>EA1 MQL4>Experts>EAgroup1>EA2 MQL4>Experts>EAgroup2>EA3...
Hi everyone, I'm having trouble getting my head around the difference between  Ma shift and applied price. Can someone explain it to me ? Thanks   Stewart 
Hi,   i would like to determine if a given symbol is a forex or non forex symbol. Any suggestions?   void UpdateSymbolData(){    int Now=(int)TimeCurrent();  for (int i=0;i<SymbolsTotal(false);i++)    {   string S=SymbolName(i,false);   double D=MarketInfo(S,MODE_DIGITS);    double TickValue =...
alpari changed minimal lot in the ecn-new account type from 0.01 to 0.1. as i am using averaging, i need small entries for opening of positions. so i was forced to move to standard account. this kind of changes force me to do extra work and can lead to loss in some cases, when EA is controlling...
Hi guys,   i´m a newbie in code. But i´m studying hard. I´ve been experimenting an EA with heiken ashi and i´m running into some trouble that i´m not able to fix.  All I want it to do is: if it turns red go short; if it turns blue (or green whatever) go long; Maybe this is something i´m not...
Hi, I've created a demo account and then I've disconnected MT and deleted the hst-files. Then I've imported external data into several markets such as EURGBP, XAGUSD, EuroStoxx50 and so on. Most of them work fine, but on several markets I've encountered a problem: the strategy tester takes extremely...
Following code works fine in old builds but not in 600+ builds. In new builds it only passes and get back first letter of the strings. Any one here to tell how to fix this for new builds?? #import "GlobalVariable.dll"   int GV_SetNamedString(string StrName, string StrValue);   string...
Please, i need someone to help me to modify the attached indicator to show Support and Resistance like the below chart instead of arrow. Thanks
Good night everyone, I am trying something interesting with Zig Zag indicator but I have a little doubt. We all know ZigZag repaints to adapt to new price values and cannot be used for signaling, right? I am trying to build an indicator that can show me all those points signaled by Zig Zag in the...
I was wondering if there was a method to save inputs for indicator ex4s.  Expert Advisors there is no problem to save the settings [.set] file, but the indicator input screen does not have this.  using mt4 build 670.  This is annoying because some indicators have long inputs that could be loaded via...
Can i make an expert advisor based on the indicators which are on the tab 'insert' , Fibonacci, Gann, in the MT4 platform?  I can't find these indicators in any folder of the platform so i was wondering if i can make an EA out of the indicators.   Ed 
I don't know if this is standard procedure and the test can't use stop losses, but I found no way to use them in the strategy tester. I tried both the following code, but the stop loss get's completely ignored: int slippage = 10;double stoploss = 0.0001;int MagicNumber = 123;ticket =...
hello, i'm trying to convert old HMA code to new one. it is working in old version without problem. under build 610, it gives error: array out of range. i'm not familiar with indicators. what is basic difference between old and new indicators and buffers? is indexing changed? //---- indicator...
Hi all, I am trying to use a dual MA crossover indicator  ( IINWMARROWS.mq4  found in internet) which just displays arrows when a crossing of the two selectedMA's takes place in RENKO charts. It works ok most of the times but all of a suidden sometimes I get some extra arrows in the last candles...
  Corrupt data (4)
Good day all. Today my LQDMarkets-Demo was showing corrupt data on 4 cfd's - ym, #z, #fdax, #fce, #cl Screenshot here http://screencast.com/t/DUwz6ZhINGn - all 5 being similar. I tried deleting the corresponding files in  \history\LQDMarkets-Demo but it didn't help.  Any suggestions? 
1...280281282283284285286287288289290291292293294...1249