MQL4 and MetaTrader 4 - page 9

To post a new topic, please log in or register
My goal is threefold. 1) Log into and use MetaTrader MQL4 purely from python. I saw using MT4 from Python mentioned here. I don't know how well it works. It's a standalone python library (https://pypi.python.org/pypi/metatrader/0.0.1)  2) Use Python's ML capabilities within MQL4. I saw that here for...
Could anyone please help me understand what these guys mean by this definitionBitwise Operations Complement to One Complement of the variable value up to one. The value of the expression contains 1 in all digits where the variable value contains 0, and 0 in all digits where the variable contains 1....
hi..everyone..how to appear the one click trading button..i already use short cut key Alt + T also cannot..any idea how to solve this problem
hello programers We know how to get the time of first visible bar  ==> Time[0] But how to get   in easy way the chart  right border time (in datetime T)
As part of my trading system I have a buy stop and sell stop pending order concurrently.  I have a stop loss trail code for when either trade is activated. In the event that the price fluctuates and activates both trades then the stop loss trailing code works. However if only one of the pending...
I'm trying to write a code that will make a "Profit Target" which will subtract my profits in the past 24 hours and add my losses. But I think there is something wrong, can anyone help? int ProfitTarget = 1000{  for(int q = 0; q<OrdersHistoryTotal(); q++)   {     OrderSelect(q,SELECT_BY_POS...
I have contacted the service desk about this issue. This is what I sent them.... Hello, Please either remove the option to download MT4 from your website or fix it so that it does actually download MT4 and not MT5. We are getting sick and tired of answering the same question over and over again....
Hi all, i'm having a tough time making my EA place stop orders only once at a given price. It places stop orders every tick which matches the price. I wanna be able to make multiple Buy stop and Sell Stops, but only one at a time. For example if there is a filled Buy stop order and another Buy...
My code is set up to be placed on only one pair, but it will trade on multiple. For instance... *Not Entire Code* //-----------------------------------------------------------------   {     if(gbp>0)       {         if(gbp-usd<(TradePoints*(-1)+1))           {             result=OrderSend("GBPUSD"...
  Error Code 5004 (36   1 2 3 4)
Hallo, I just update my MT4 FXDD client terminal. The new updated client terminal gave an error code: 5004 which I didn't have in the old MT4 client terminal. I understand that error 5004 is about fileopen error. I have checked and I have done "fileclose" for every "fileopen". I have also checked...
I have written this small function which helps any programs to do the normalize of prices (without having to re-type the long normalize command), but it keeps giving this error. How can i solve this? //+------------------------------------------------------------------+double normMe(string ins,...
Good afternoon everyone, I am trying to calculate the net profit/net loss of an expert advisor for the current week. For some reason, this function always returns 0 during backtesting. double GetWeekProfits(){   int type, netprofit = 0;   datetime starttime = iTime(Symbol(), PERIOD_W1, 0);   for(int...
Hi All, back in October and again recently MS sent out major Windows 10 updates. Among other problems that these caused necessitating a factory reset, the MT4 purchased indicators disappear. Whilst they might still appear in the list under Navigator, they do not exist. Same for Templates and...
Hi i got an Object from an indicator (a simple regression channel determining trend) that i check to enter a trade or not, but my EA is a Multipair (i put it on one chart only and it trades all the pairs) so my question is : will it work correctly if i just call the iCustom with each symbol and read...
  Volatility indicators for MT4 (118   1 2 3 4 5 ... 11 12)
What volatility indicators out there are coded for MT4 that I can use other than the Bollinger bands? Please post links if you can. I'm looking for a way to better place my stops based on market volatility
Hello, i'm just creating an EA but i need your help for simple candlestick reference i dont know the MQL4 REFERENCE for Candle .. Simple MQL for bearish or bullish Candle  Example FOR EA :  LIKE THIS :   if Candle Number 1 == Candle Number 12 NOT LIKE THIS : if (iOpen   >/<    iClose)     ==...
  Great EA in backtest! (1494   1 2 3 4 5 ... 149 150)
Hello folks I found a very good EA that shows great results in Backtest, but wont work if its Loaded, can anyone fix this pls? Regards Link to download https://www.mql5.com/ru/code/8397 Edited: newdigital.
Hi, I'm looking for an advanced EA that can trail based on price action (close of a bar in bullish/bearish formation). I currently use the supertrend and the halftrend which are good but I want to compare with pure price bar action and see which one performs the best. Paid or free is fine. I just...
The DLL made with c # does not work at mt4. the following error occurs. I would appreciate if you help. 2018.11.27 17:15:12.066 Libdeneme1 EURUSD,M5: unresolved import function call 2018.11.27 17:15:12.066 Cannot find 'Add' in 'testme.dll' (https://www.mql5.com/en/articles/249) c# code and mql4 code...
MT4 also developed by its own company does not work why the DLL. Script under DLLSampleTester.mq4
Hello guys, Can you please point out why the following script cannot be imported into MT4 history using the history center Thanks much appreciated.
  100%
The script builds usual schedules a tic-tac-toe. I have no good knowledge of the mql 4/5 language. The script loads my CPU percents from 60 - to 100%,  all the time under loading. In what can the reason be? Whether really to correct it and how? A script from CodeBase.
Hello, I saw  an EA-system which is promoted by a guy who give the Investor Password and the account no. I had loged in and the results I saw were good enough. Finally as I start to observe the live playing of the EA, I realise the following weird: - it opened more than 30 trades, and the next day...
Hey guys! I found an indicator online EMAPredictive3 by Matthew "Dr Chaos" Kennel. The only problem with it is that it doesn't really update. I have to click refresh after every tick, otherwise it will look overlapped (as in the picture attached). I really tried to do something with RefreshRates()...
Im new to Forex on the MT4 platform so this is a demo account, the green arrow is where i placed my sell trade but it ddnt take profit when it hit the take profit line.There are two candlestick that hit my take profit twice so im very confused .Please help
Hello  every one  the Below Function is to get the Last order lot size and multiply it by 2 it is is lose trade but it is not working properly , can you help  double fLotSize(){double fnewlot=Lot_size;int i =OrdersHistoryTotal();for (i;i>=0;i--){    if (OrderSelect(i,SELECT_BY_POS...
Hello, This was probably asked before, but I couldn't find information online, which I'd be able to put in practice. How can I setup time based orders in MT4, like MOO or MOC. Maybe not exactly the second market opens or closes, but more or less as well as time stops (say close a trade after X...
Where can I get an EA/indicator that counts the number of price fluctuations that occurred within each candlestick before it was closed? Cheers,
Hy, how is it possible for my Ea to read my Enum-Choice? enum selectChoice  {   Banan=0,     // lolol   Apple=1,     // lala  };input selectChoice WhatIlikeMost=Apple;//later in EA..if(WhatIlikeMost==Apple) //Do my stuff...;// Thats how i did it, and it doesnt work...Do You know better?
  Graph of MT4 (1)
Hi everyone I have some problems with MT4. Hope you can help me regarding that. I am using FBS broker on MT4. While I bid for sell or buy, the value set on the trade bar is different from the value I chose to bid on the graph. Also, when graph is going below the line of my proposed bid for sell, the...