MQL4 and MetaTrader 4 - page 101

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
when i try to download anything from the market on mt4 this is what happens. this has never happened to me before
Below is the code. It is for some reason isn't printing the labels (up and down arrows) at runtime. If I change the timeframe and comeback to the 5 minutes again I see the label getting printed. I want it to print at runtime as the candle closes and send the alert. What am I missing here
Could someone please add .i suffix to this script? Much appreciated
Hello all, This indicator is based on the average Price v3.0.mq4 by Joca - nc32007a@gmail.com http://www.mql5.com . It shows the "BreakEven" line on the chart. I have updated it with the insertion of Multiple MagicNumbers and the cumulative (between them) BE line level. I am here to ask if
We know OrderOpenPrice() and OrderClosePrice() (which is Bid in case of Buy trade and Ask in case of Sell trade), but I can't find an option to know the last price when a trade was modified - let's call it OrderModifyPrice(). Well, MQL4 is pretty old now and it's possible that I'm missing something....
[Deleted]
hi this may be a silly question, but i have loaded 10 yrs worth of data into metatrader and each time i want to view older dates e.g. 2003, i am having to scroll all the to 2003. But im almost certain that some bright spark metatrader developer would have already thoguht about this and provided a...
Hello ! Today I have met very vierd issue : 1. I have exactly the same versions of my EA : both at two Windows 10 : VPS and my laptop. 2. EA is for immediately closing all positions after daily drawdown limit/ profit target reached. It is aimed to prevent me from trying to open more positions after
Hi lovely community :) I'm having some issues with Strategy Tester and really need a hand. I downloaded the chart history of the last 6 months and exported it to my MetaTrader 4 But when I start the strategy tester, the chart starts to move and the Expert Advisor does not open any trades. what
At the outset, I am new to MQL4. I want to create an indicator in MQL4 . What I want is that at each bar close it will calculate the not calculated bar/s and see if the indicator condition is met. If it meets the condition then it will plot an arrow above the candle and send an alert. This should
  Copy Trade  (6)
I am looking to copy trade expert same account with basket profit to close both trades .   when the mother expert open sell order - copy trade open buy = close both when make profit  .  Example : First chart Mother expert  Sell GBPUSD  Second chart  copy  Buy EURUSD . target basket profit 0.10 close...
Hello, I'm a bit puzzled by AccountFreeMarginCheck sending an OK (positive value), but then OrderSend not being able to open the order because there's not enough money. Long story short, I'm testing an EA with $1 balance, and before calling OrderSend I'm running some checks on spread, correctness of
[Deleted]
Hi everyone, I'm still a noob so please excuse errors. I'm trying to calculate ATR of 1H based only on certain candles defined by input. For example if input are 8,18 and 10, then the code will calculate the true range of all 1H candles from 08:00 AM to 18:00 AM in the last 10 days and then it will
hi is there any free tool .. script.. to change balance on MT4, which works for IC market
IMO, there appears to be no Complete EA within the mql4.com's Code-base or Articles for that matter of fact. There always seem to be something missing. I'm going to use the definition straight from the source allot of people recommend for learning to program mql4; the Book . In addition to that