MQL4 and MetaTrader 4 - page 113

Hello guys, Im new to mql4 although I know basic C++. Im trying to write a script that outputs a .csv file with the values of some given indicators for each candlestick. To do that Ive written a script that calls each indicator via the iCustom function within a for loop and then writes the value of
[Deleted]
Hi everyone, my mt4 platform comes with ATR indicator that uses this calculation: for (i=limit; i<rates_total; i++) { ExtTRBuffer[i]= MathMax (high[i],close[i- 1 ])- MathMin (low[i],close[i- 1 ]); ExtATRBuffer[i]=ExtATRBuffer[i- 1
Currently, I am trying to import some csv M1 data via the import function in history center, but for some reason the file doesn't register. First thing that came to my mind is it must be a formatting issue, so I have a sample of the data. Can anyone see what is wrong: Column Names: Sample Column
hello apparently some EAs with kernal.dll import has fake backtest or manipulated backtest result i was just asking how can we know what was imported does mt4 provide any detail as to what this readers are importing
Hi guys. Since the TimeCurrent() function returns the time of the last known tick (of the current chart) in OnTick() handler, how can I return the time of the last known tick of a non-current chart? Of course, we all know that the ticks of different charts/instruments don't appear at the same time
I tested order select for false condition of a closed ticket which returns true and not false. Print (( bool ) OrderSelect ( 61057926 ,SELECT_BY_TICKET,MODE_TRADES)); How to know if a ticket was closed, by not being an open order to select
Hey guys just trying to set up an EA but the terms used are a bit confusing for me and I'd appreciate if anyone can help me understand. Here are the parameters for the robot. stepProfit_factor (an explanation for it and if possible, an example) stopLossShift_Factor stopLossShift_Bars
Is there any problem with syntax of this code ? bool fib_high() //Needs work { { if (A_low()== true && B_high()== true ) { Print ( "C = i" , C); //fibhigh=A+(B-A)*fibo_retrace; //Print("UP ","A",",","B","Fib Hit ",fibhigh);
  VPS Not Working  (1)
I subscribed to MQL5 VPS and was able to successfully migrate all my indicators and EA's to the platform. It successfully connected to the MQL5 Server initially, but now I am getting an error message that reads "failed to connect to server MQL5 London LD4 17." Any ideas on what may be going wrong
  Inconsistent EA  (5)
Hi, I'm a beginner in mql4 and currently practicing in creating a forex bot. I created this simple bot with the strategy of convergence of the 10/20 day EMA, I have no problem in compiling it but when it comes to using it on a demo account, I had the ff issues: 1. sometimes my EA takes a trade, and
  MT4 not working  (1)
Probably my fault, but I don't know what I did. I can't populate symbols. I tried downloading program again. Same thing. My live account name shows in upper left. I see no indicator suggesting a real connection. Something is missing somewhere on my Win10 (64) that I might have fouled up. I need
Hey there guys, I have this common RSI indicator that I would love have alerts whenever it draws its dot objects either buy or sell and also the divergences. I don't know how to do I guess it needs to be edited in the editor to have the features working. Can anyone please help me with that. Here is
Hi all , Just wondering what approach do you use when you build dashboards etc containing Graphical Objects ? Because mt4 has that scaling issue , and when the dashboard is used on different screen sizes , it looks different for example , I build A dashboard on 1080p x 720p Screen , everything would
When I send a somewhat large mail (about 700 characters) from MT4 to my mail, I received the not enough space error in the journal section. I configured the mail using: smtp.gmail.com:587. Is there any changes in the confirmation that would increase the mail handling capacity? I noticed also that
can someone check why this code doesnt open any trade //////////////////////////////////////////////////////////////////// // // // // // #property copyright "Copyright © 2015, MCB Shenannegans." #property link "marchaxcpp@gmail.com" extern int PercentRisk = 2 ; extern int TakeProfit
Hi, Im interested in parsing the text in the newsfeeds that comes into MT4's news-tab. Does anyone know if there is any built-in method or any other way to recive and handle the news in the news-tab within an EA? /Micke
I am trying to install meta 4 (the software i use only works on meta 4) but when i download mql / meta 4... i look at my desktop and its meta 5. why wont it allow me to download meta 4? ive tried now on 3 diff new accounts and they all do the same thing. help pls. thx all
Hi All I've imported data into the 1 minute timeframe (EURUSD) in the history center. Does Metatrader not automatically reclaculate the other timeframes from this? My five minute data folder is still empty after the import. The only option to recalculate all timeframes is when I click download, but
Hey, I wanted to ask you if its possible to switch Server at the Web Terminal of MT4?. I have a Roboforex Account and can't switch from the MetaQuotes Server to Roboforex. Is there any possible Way to Switch those
I'm receiving signals on my MT4 but they come in too many at once and I want to limit risk. If anyone has a solution to limit the open trades I'd appreciate it
Hi, I've been trying to install MT4 on my new PC but the installation files I download from https://www.metatrader4.com/en/download just gives me MT5 Anyone got a solution
HI all! I am relatively new, and know relatively little. Can somebody explain to me what I should do to be able to access the latest top or bottom that the ZigZag indicator plots out? I don't need them all, just the latest one... I use this line to access the zigzag, but I don't even know what the
While i run my EA, i use the predefined variable Bars on the void OnTick(). On my computer the variable gives accurate value but on my friend's computer, the value always result to 1. Does anybody have an idea as to why ? Points of interests: On both computer, in the options menu, the max bars in
[Deleted]
  MT4 History data generation  (14   1 2)
Hi, I'm a bit confused about the way MT4 generates history data files. As I understand it, when you use History Center, MT4 downloads the data not from your broker, but from MetaQuotes servers. 2 questions arise: 1) What happens to history data previously present in the proper .hst files? Are the...
  Trailing step  (6)
Hey guys, I am trying to make a trailing step. Essentially like a trailing stop, but instead of moving the stop loss every point in profit, it only moves the stop loss after X amount in profit. Below is my code (tries to modify as soon as order enters and I get a constant OrderModify error 1):...
  icustom ZigZag  (44   1 2 3 4 5)
I'm trying to determine direction of zigzag indicator with the icustom command. This is what i have so far: ZigZag High=iCustom(NULL,0,"ZigZag",MODE_HIGH,0); ZigZagLow=iCustom(NULL,0,"ZigZag",MODE_LOW,0); The lines are drawn on the chart, but both ZigZagHigh and ZigZagLow are equal to zero when I
How do I run duplicate Meta Trader 4 on my MacBook Pro ? Please if any one can help me have been trying but unsuccessful Regards Kevin
I'm trying to get my EA to run only during certain hours.. I am comparing time current with an assigned date time variable.. it seems to be a logical way.. but I'm having trouble with the date part of it.. is there a way to return current date with a set time to a datetime variable.. Or if there is
Hi all, I am using MetaTrader 4 to implement my indicator using mql4. In my code I would like to check whether a candle or if it called a bar is closed with the defined resolution. For instance if each bar's duration is one minute, I would like to read its values when it is closed not while it is
Hi all : I try to enable or disable EA in my code , and I use the code from here . As a script file , it works fine for me, but when I try to convert it into my indicator with a just very simple modify, it wont work, the setup popup window just stay there and the "Allow Live Trading" checkbox stay