Download MetaTrader 5

MQL4 and MetaTrader 4 - page 11

To post a new topic, please log in or register
This code will place an arrow on a chart with a unique name every second. Have tried everything to change arrow from up to down and change color from red to lime. Have had no luck. Is there some thing that I'm missing or not doing write? ObjectCreate(StringConcatenate("ArrowUpA",TimeCurrent())...
  MODE_SPREAD (30   1 2 3)
When I use MODE_SPREAD, does it count the spread to open a position or does it count the spread to open and close the position?
Where is the best place to put this code? Now I put in the OnTick() function but if disconnected(internet) calling OnTick() does not occur! Which function mql4 call every 1 second? if(!IsConnected(){     Print("No connection!");}
I am trying to put together an indicator that would show the signal line from the ADX indicator from the next three higher timeframes all on one indicator, the only variation being that if -DI is above +DI it will show as a negative value.  I've got three lines displaying on the indicator, but they...
extern double    Lots=0.1;datetime NewTime=0;int start()  {    if(NewTime!=Time[0])    {      NewTime=Time[0];      if(Close[1]>=Open[1])        OrderSend(Symbol(),OP_BUY,Lots,Ask,3,0,0,NULL,0,0,Blue);      else        OrderSend(Symbol(),OP_SELL,Lots,Bid,3,0,0,NULL,0,0...
Hi, As my thread title implies I would like to know if TP/SL can be hard-coded into an existing EA. Currently, a trade is opened and then it is modified. Thanks. David.
Dear All,   Is there a link for the above mentioned download? The MQL4 book format is in .chm which is not a file. Please help.   Regards 
I notice I can test up to 400 passes only.  How can I increase this?  And what does the 1280 below means?  I know '3' means the current pass number and '630' is the total passes that are generated based on the optimization parameters I've set.  Right now I just cannot get passed more than 400 passes...
  Various (1122   1 2 3 4 5 ... 112 113)
In case some of you have been wondering what was the "wonder" indicator picture posted a couple of times in the digital filters thread, and, since rules for advanced elite section are a bit different : It was a MACD of a Hodrick-Prescott filter. One version of that indicator (Hodrick-Prescott...
Hi All,     Have tried searching with no success.  I am having trouble sharing doubles between 4 EA's running on 4 separate Metatrader4 accounts running on my VPN.  The VPN is running Windows Server 2012R2.  I have used GlobalVariables years ago with no problems... but now they don't seem to cross...
Hi, I am starting to write my first EA which looks at the crosser over of the moving averages and stochastic main/signal lines. The issue I'm having is that it will only take the trade if the crossover of both the MA's and stoch occur on the same candle. I want it to be able to recognize if both...
  MT4 on 4k Monitor (13   1 2)
Hi I bought a 4K monitor and am having trouble with the metatrader 4. The taskbar, the vertical bar prices, terminal, etc. appear with a very small font size. It is difficult to read. Can anyone help?
Hello, Do you know how to shift the end of the chart on mt4 ios ? I can not see the whole ichimoku clouds because I can not shift the graph to the left. Can you help me ? Regards, ps: I use an iphone 5
Hy guys... There is a way to initialize an external datetime variable with the current time ?   I'm try something like this:  extern datetime fundamental = TimeCurrent();   But returns me the following error: 'TimeCurrent' - constant expected   I need to show the current time, not  1790.01.01 00:00
I downloaded and installed SAAD Scalper EA to my MT4,  but it doesn't trade. The AutoTrading button is on.  "Allow automated trading" = yes "Allow DLL inports" = yes Here is a pic of my screen. Please help me set this up correctly. Thanks. 
Hi, i used the Strategy tester of MT4 previously in an intensive matter, and it was always running with almost 100% utilization of the CPUs. Now i am getting at most 20% of the CPU power when running the Backtesting. Am not sure it is related to windows or any update of MT4. But it is now really too...
Dears how to get the total of orders by orderType and OrderSymbol. and is there a way to know if the order close or not (orderClose event)   any help 
  Requests & Ideas, the beginning (2709   1 2 3 4 5 ... 270 271)
i test some EA at my server here is the best combination that i found firebird at usdjpy M30 hans_ea3 at gbpusd H1 note for statements, fxindo-nf3 is my own EA, i have de-activated it. so please ignore it. it made around 180 pips for last week... update : sorry, i've attached wrong statement.......
Hi everyone, I need a little Help with my Code. I want close every Trade after, for example, 20 Minutes. No matter if the Trades is profitable or not. It is possible to write this condition in my existing Code? And which Codelines and Definition of Variables I also need? I appreciate your help....
Hello, this is from my "I wanna know OOP" file. I'm stuck after message : Pointer to this function type is not supported yet.... And this is why I'm confused: it works sometimes. working one: here all pointers are working and pointing. bool MB()   {    int e=0;    //--MB    string   name  =...
Hi guys, What is the best workaround for having the broker server's time update lag like hell, like refreshing only once or twice every 15 seconds or so?  I tried to put RefreshRates();  after TimeCurrent() command but it doesn't seem to improve anything at all... even using TimeLocal with...
Hello, Can you help with setting an EA for trading Binary Options with GO Markets? What is the format of the order comment for setting the option's expiry?  
the objprop   ray_right can set  the line to right cornor but can't ray to left cornor , how to do this
Hello everyone, My first question is based around the code below. I would like variable (NoConnection) to descend while there is a internet failure. Return the value of NoCorrection is seconds and minutes  void OnInit()  {   if(!IsConnected())     {   Alert("Connection Not Available...
  Clarification in Coding (12   1 2)
So I'm very new to coding and just looking at code. I am trying to figure out what "returnBars" and "calculateTMA"  that are highlighted below refer to. Are they external indicator or what? Thanks for your help! <decompiled code removed>.
I am trying to write an indicator that uses information from the ADX indicator and am trying to pull data from the ADX indicator the same way I do in my EA's, as follows: ADX_Signal[i] = iADX(NULL, 0, 14, PRICE_CLOSE, MODE_MAIN, i);    // ADX Signal Line However, this doesn't seem to work when used...
Hi... i did the following code but it doesn't works... anyone knows why and could correct my error?
  EA limit code (17   1 2)
help me i need to limt my Ea to work under certain accounts that i choose. like i want to give it to my clients but they can only use it under one acc can you please help me with the code for that. also i want the EA to work for a period of time then expire .like a month or year i would really...
Hey Guys, I bought a few market items on the MQ4 market in my brokers MT4. Is ther anyway to export these to another brokers MT4? Thanks, Thomas