MQL4 and MetaTrader 4 - page 537

Hi everyone, I'm brand new with MQL4, I'm tryng to apply a moving average to another moving average. I'm able to call my two custom averages into MT4 e to plot them. But I want to apply the second average (yellow/blue) to the first one average (red); instead all I can do is to apply them to price
Hello .. in fact, I have noticed that no trades could be happen with the following code example:       if(Close[0] < PreDefPriceBuy)          BuyExecute(); while replacing the < with the <= would allow trading normally       if(Close[0] <= PreDefPriceBuy)          BuyExecute();  .....
Hey Guys, I found this nice EA manager on the internet. .............  <Deleted>
[Deleted]
im a big fan of lumia. despite having much less apps from android, I still find its durability, elegance, camera, and overall experience greater than any android phone I've ever used. The thing is, I'm also a trader and I find the lack of MT4 app in Windows Phone app store quite annoying. I dont...
'im new in mql4, and need help, this code doesnt work, but why? it should open a trade if the price cross ichimoku, why it doesnt work? thanks void OnTick()   {      double up= iIchimoku (NULL, 5,9,26,52,3,0);   double down= iIchimoku (NULL,5,9,26,52,4,0);      if (up && down < Bid  )      {...
Does anyone have an EA that places pending orders in trend lines, using the name and its position in object properties as a reference?
Hello, I do not know if the number of candles on the Limit variable is the number of candles on the chart or is there a different count.     {     int limit;     int counted_bars=IndicatorCounted();  //---- check for possible errors     if(counted_bars<0) return(-1);  //---- the last counted bar...
Cant download MT4 anymore. I went to download website and when i press on "DOWNLOAD MT4" at the end it automaticaly downloads MT5 platform and instals MT5.  So next thing was, i remebered that my old computer has MT4 so i turn on old PC, open MT4 and what i see is that MT4 does not show the right...
  DLL Hell  (15   1 2)
We've all tried it.  There's something we want to do in a DLL but Metatrader is still stuck in the 19th century.  For my inquiry, I give you this: The EA: //+------------------------------------------------------------------+ //|                                                   MT4Exports.mq4 |...
  Newsprovider  (3)
Hello I have a question. I use an Expert Advisor for DAX (GER 30) and I need a news filter for that but only for the big news that make a difference in the world like brexit or choice of American President. That´s the reason why I am looking for a news provider that I can build in my EA. If you know...
hi im very new to programming having only ever used quant a few times. i have created a fairly stable EA nothing spectacular but early backtesting shows very positive results.(extremely low drawdown) on the average spreads given by the broker 99% quality. I have 3 problems. Problem 1 ; during the...
Hello,  I made a simple EA but to speed up optimization I want to make the EA open a new trade at the same time and at the same bar that the indicators are right and NOT when a new bar starts. Could someone tell me the code to use? I can't find the info online. Current Code:...
Hi I am trying to place an order for the first time in MT4. When placing an instant order it s automatically closing.Can I know how to fix this one please
[Deleted]
Hi guys, I wrote a small code to demonstrate my problem: //+------------------------------------------------------------------+ //| Expert tick function                                             | //+------------------------------------------------------------------+ void OnTick()   { //---    if...
  candle issues  (9)
hi i hope someone can help if they have had the same issue as me.   for some reason with some charts the candle stick formation wont work and instead shows the bar chart formation.  the line chart and bar chart both work fine but i would work off the candle stick formation.  has anyone ever...
plsss can sum1 assist....i try downloading metatrader 4 from the metatrader site but once it installs n runs it actually installs mt5. 
Hi, I have an mt4 EA and I would like to add mt4 code into this EA to stop all trades and delete pending orders if equity reached a certain percentage. I searched on MQL5 forum but I don't find mt4 code. I would like to stop all trades and delete pending orders for this day if my equity reach +2% of...
if(Buffer[2-5]>=var1){Print("buffers greater than var1");} because for some reason it compiles but doesn't yield a print. *i'm trying to compare the values of 3 bars back through 6 bars back.
Hi all... I'm a newbee and trying to write an EA. All is going well but I wish to make the EA stay out of trading for 2 periods (candles) after it closes a trade. I've tried using "TimeCurrent()" and adding the seconds of the period but I get a warning of different data types. I seem at a loss as to...
It is easy to set an expert to run for a particular pair, but there aretimes when I want to stop that EA for that particular pair. If I'll just disable (CTRL-E), it will disable all running EA's for all other pairs. The system doesn't offer a simple way to 'unload' the EA. The optionsare to replace...
how do i turn on allow DLL imports on a chart so i can undock it
Hey guys, new to the platform. I attempted a search, but could not find the answer. I'm sure it is easy... As I scroll through past candlesticks, MT4 moves me back to the most recent candlestick when the price changes . Is there any way to maintain my position when the price changes, so I can study
Hello,   I am learner and beginner in MQL. I am trying to achieve inheritance possiblity: Below is situation where i am finding diffculties.   template <typename T> class A { protected:    virtual T Func()    {      Print("from Class A");      return NULL;    } public:    A(){Execute();}    void...
Hi, Which setup would be best for me please trading with 2 mt4 platforms: 1. Mt4 Master cross-connected in Amsterdam (ping of 2 ms) sending signal to Mt4 Slave (on same vps) to second broker located in LD4 (ping of 8 ms); or 2. Mt4 Master in LD4 (London), signal read from Amsterdam’s
Hi all.   How can i make my own function, that accepts parameters in sequence?   Like this :   int filehandle=FileOpen(filename,FILE_READ|FILE_WRITE|FILE_CSV); 
Hello my name is Dibi N'Guéttia Michel Stéphane Aufaite I wanted to know if it was possible to create an EA with the indicator Regularized momentum it gives Histogram.Please if you would like to know how to automate it in MQL4
I have a few questions... Do I have to use a cycle to get access the past bars or is the function ArrayMaximum all that is needed? Also if someone could provide an example it would be appreciated..
I am running mt4 on a Windows 7 system. Windows is on a SSD as C: drive. I have a storage drive F: that I have most programs install on. In order to not fill the SSD I direct downloads to the F: drive. Currently I have a notice that the C: drive is full. I am unable to run Strategy tester because of...
Hi All, I did checked forum example and also this https://docs.mql4.com/trading/orderclose. But, it doesn't close any of the open trade. The first code I uses, it return a warning as "return value of 'OrderClose' should be checked" OrderClose (tradeTicket, 1 , Ask , 3 ); So, I uses this. But, it