Download MetaTrader 5

MQL4 and MetaTrader 4 - page 63

To post a new topic, please log in or register
dear friends, hope you're all doing great I want to ask is there any limitation on the number of orders (opened and pending) that is set by the mt4 platform ? I heard from one of the broker's relationship manager that the max number of orders that you can put on a real account on the MT4 platform is...
I read where I can create a script and assign it to a hotkey to change the template in MT4.  the Path for the template is : "C:\Program Files (x86)\OANDA - MetaTrader\Personal_Account\" and the template is called "!!LINEAR REGRESSION I figured this should be easy. Not so much.  The below is my...
i'm trying to understand period converter code, butinput int InpPeriodMultiplier=3; // Period multiplier factorint       ExtHandle;//=-1; tirado//+------------------------------------------------------------------+//| script program start...
can some one explain to me what exactly the Ordercloseby() function does, am having hard time to code it into my robot. Does it close and order and then opens an opposite one, or...it just closes an order depending on the opposite one. what exactly do the parameters of this function mean???...
Hi all. The Stop Level of an asset can change by broker or it's every the same ? If i use the  MarketInfo(_Symbol, MODE_STOPLEVEL)  function to get the current stop level, i need to use it: Just one time, in initialization function ( OnInit function )... in this case, i am presuming that brokers do...
How can I set multiple profit taking targets in mt4 ? Say i buy and it goes my way . I want at a certain level to take out 50% of the trade but let 50% running until it hits my next target ,and there i  want to have another 25% take out and let the remaining 25% running until it hits my final target...
Hi all, I have a custom indicator and I build an EA from it. I would like to know is there any chance to put the indicator into the EA so I would be able to sell it via the market? Iam not talking about the iCustum function, I already use this to use it with my terminal, but nobody would be able to...
Hi,  I have indicator that i would turned into EA. Because i tried but unfortunately i did not convert successful it into EA TF 15min Buy green arrow Sell red arrow Exit opposite arrow  would be awesome if you could help me
Dear sir Please Provide Small Example to save an String in Text File In D Drive using Named Pipes ( Mql4 Code ) Thank you
  Scalp_net (724   1 2 3 4 5 ... 72 73)
Scalp_net EA. M1 timeframe. EURUSD.
I am wondering is it's possible to have a single EA running on any currency pair, but have it monitor multiple currency pairs and respond to triggers as they arise in each pair. Essentially I want a EA that will poll all pairs of interest, test pre-configured criteria on each one and respond with...
I am more comfortable working with dark color bars on a white background. If I right-click on a chart and click "Properties", I have the option of changing to a different color scheme (in my case I prefer "Black on White"). However, I find myself having to do this for every new chart window that I...
Hello folks I am testing my EA on a MT4 terminal installed on a ubuntu machine. My robot kicks out Order Place Failed: 134 despite the account balance has sufficient funds. The lot size is just 0.1 when the account balance is 10k. I did my research and couldn't find any reference to this case. Any...
//+------------------------------------------------------------------+//|                                                        panel.mq4 |//|                        Copyright 2017, MetaQuotes Software Corp. |//|                                             https://www.mql5.com...
Hi all guys, excuse my bad English, use Google Translator. I need to help make my trading strategy into EA for Renko The indicators: Quantum (only ex4) Parameters: eintDepth3 = 300 Symphonie_Trendline_Indikator Parameters: CCIPeriod = 14 ATRPeriod = 5 Here is the trading rules : BUY ENTRY: 1....
Hi everyone! So in the moment i'm trying to build a indicator in the subwindow using   ObjectSetCreate() ObjectSetText() ObjectSet() for text and SetIndexBuffer() SetIndexStyle() SetIndexLabel() for the indicator.  Problem 1) The line up between a text line and the indicator line change by resizing...
Hi all I am testing my strategy, and for some reason, some trades can be closed outside the bars! How can this happen? and can this be fixed please?
I have a buffer that draws line sections from one bar to another, much like the ZigZag indicator.  But what I really want to do is draw a line section, then turn it off for some distance, and then draw another section.  I know that a line can be only one color per buffer, but it would be nice to...
I have been using the period_converter_opt indicator to create a 10 min chart, andit works great. The only problem is that it only runs for so long (maybe a couplehours) and then the 10 min chart goes blank with "Waiting for Updates".The only way to recover is to close the 10 min chart and the...
Hi guys, I wonder if someone can help here. I want my EA to to close orders partial. i.e when the EA has placed an order with 1.6lots,  if the EA is in profit, and i have achieved 0.8lots profit then it should close 0.8 lots. Below is my code. First part shows my partial close functions - I cant see...
I heard research has been done on all this candlestick patterns and outhere should be information on them and their rate of win. Can anyone recommend books on this subject or websites (would be great) that explain all the patterns and their win percentage ?
Hi, I was wondering if there is a simple way to have a global pause of 5 seconds between trade actions across 3 EAs? Any help would be greatly appreciated, I'm stumped.  I can't seem to get this example to work: https://www.mql5.com/en/articles/1355
Hi Folks, I am a noob at coding and have been getting some help with this, but buddy is busy so I am here to see if anyone may have a solution to my problem. I have what I thought would be something simple to code, lol. I want an arrow painted when all 4 tfs have closed in the same direction, but it...
  TXT To MT4 EA (1)
Hello all, I hope this is the correct area to ask this and apologies for the newbie question. How do I go about turning an EA which is written in TXT format into a working MT4 EA file? Any help would be much appreciated as I'm struggling to find anything on Google for this problem. Regards
I'm just recently getting into coding MQL4 and I'm really confused with the results I'm seeing.  This is perplexing since I'm a professional programmer with over 30 years experience, including nearly 10 years in C++.  I'll illustrate my problem with two pieces of code.  The first is the one that I...
Hi, I was installed MT4, but there are few symbols, how add or install new symbols, ( i want add GOLD, SILVER, COPPER, CRUDE OIL, NATURAL GAS, ZINC, LEAD, NICKEL and all commodities ) please someone help me ............
Hi Everyone! if Statement stop's running after first day, only works one's on the drup on chart. pls,need the hint here       double BFM;      double BarsFromMidnight()            {      if(Hour() == 0) {BFM = 0;}      else       if(Hour() == 1) {BFM = 1;}      else      if(Hour() == 2) {BFM =...
Hello! Does MT4 have this function where, once a certain Price is met, a Pending Order will be then placed (Limit Order or Stop Order)? Thank you all!
Hello, I want to use ArrayCopy() on an array of pointers but it looks like i'm not allowed. It generates an error saying that array cannot contain objects. Is it not possible to use ArrayCopy() with arrays containing object pointers? MyObject* arrTarget[];void Copy(MyObject* &arrSource[])...
Hi all I believe people here may have heard of NonLagMA indicator, basically this is a trend indicator. I am trying to use this indicator to build a strategy, e.g when the trend has change, go long or short accordingly. However, working on a M30 timeframe, I have way too many trade open. I am using...