MQL4 and MetaTrader 4 - page 618

How do i get the value of on of the lines in a fibo fan related to the time (or candle index)?
New article How to Secure Your Expert Advisor While Trading on the Moscow Exchange has been published on mql5.com: The article delves into the trading methods ensuring the security of trading operations at the stock and low-liquidity markets through the example of Moscow Exchange's Derivatives...
Hi, my MT4 update to the new version released at 25 Sept 2015 and starting from this update, all my EA (who works fine before) return me the error ordersed 131. Why ? is it changed something ? let me know please i'm desperate!! 
Selecting the indicators to use is one of the most important and difficult aspects of building a successful strategy. Not only are there thousands of different indicators, but most indicators have numerous settings which amounts to virtually limitless indicator combinations....
Dear all, I am working on an index (see code below) which should draw arrows for trading signals which are based on calculations on the enty timeframe (e.g. H4) and on higher timeframes (e.g. D1 and W1). Under the bottom line it should draw certain arrows for different typs of entry signals and if...
[Deleted]
Hello! I have a problem with Metatrader 4, I don't know what to do about, I was wondering if someone could help me? the problem is that I get this order send error every time I try to backtest, even on Metatraders own sample experts, I assume there is no errors on those experts so I hope we at least...
int sellOrdersCount(){   int SellOrdersCounting = 0;   for (int iSELL = OrdersTotal()-1; iSELL >=0; iSELL--){      if( OrderSelect(iSELL, SELECT_BY_POS, MODE_TRADES) && OrderSymbol()== EURUSD && OrderMagicNumber()== 1234 && OrderType() == OP_SELL ){         SellOrdersCounting++;      }   }   return(...
Hello, I am wanting to write an Expert Advisor, but I do not know if the commands I require are even possible with mql4... Is it possible to write an EA with the following stipulations: 1) Based completely on how price moves relative to itself, determining thresholds based solely on the range of...
I have this template that is based on 3 indicators 1- first one is used only 1 (slope direction) 2- second one is MACD Alert is used 3 times as shown (from 2 to 4) 3- third one is pipsfxgainer is used 3 times as shown (last 3 ones)   All I need to do is to read the graphs of each, I need at each...
Hi masters, I have searched to no avail. I have an H1 trendline object based on iLow and iTime, it works fine switching between timeframes until i switch down to the M5 timeframe and then the object is gone and not even in the objects list! Its gojne from M1 too. What would cause that? Thanks! BK
  mt4 crashes XP  (3)
Hi guys I am still having issues after changing the metaeditor.exe  file . This is crazy metaquotes is so unprofessional they dont reply and have no solutions.. Xp is such a stable system and metauoqtes have screwed it up. The only solution they give is to upgrade it to sp3  which aint working and...
Hi,  My EA auto decrease Lot size most of the time..not entered as what I input the Lot Size..can anybody help me where is the error? And how can solve it..thanks 
[Deleted]
Hello Everybody! I have a brilliant idea about a new feature in MetaTrader, that dosen't exist currently. I would like to write a script in MQL4 as a new module in MetaTrader, and publish for money on my website. What is the terms and conditions about selling this? I have looked for some...
  Protect EA  (13   1 2)
hi, I am going to sell the EA I've just finished. Of course I have to create some kind of protection for it. I created a web site where to sell the product, and i thought that i could ask my customer to subscribe to be able to buy and download the EA. Then, after download, I could ask for the N...
How to write Expert Advisor using DLL file ?
Hello, have you tipps for me how I can secure a little bit more my mql4 files thatnot everybody can decompiler it easy?
[Deleted]
  security in ex4  (9)
Hello how are you I want to ask the question, sorry if the answer already, but I want a current response, I'm doing some EAs in MetaEditor 5.0 Build 1154, and want to know if the ex4 file generated after compilation, it is easy for someone else to decompile and get my code, as I can make my code...
I want to program my own Binary Options trading robot. I have learned a bit of MQL4. Where do I go to learn how to program a Binary Options robot? Can you use MQL4 to do it? How does the ea interface with the Options platform? 
hello ,  i try to write a dll with a windows , and then is ok , but when i stop the ea , mt4 program is close too.    what do i do wrong in the dll close ..
I RTFM... and searched... But, what are the values for fast period/slow period for iMACD. I'm looking at the MACD Sample.mq4, which seems to be optimized for H1. Fast period is 12 and slow period is 26. 12 and 26 what? MacdCurrent = iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_MAIN,0);
Hello all, I wrote an EA shell which uses a DLL function in start() function - and it works OK while in forward test mode, but is blocked while I try to back test on historical data. Below are screenshots to illustrate the issue: My expert settings: Forward test (DLL function int GetIntValue(int)...
Hi all, I have spent days searching the forum and code base but could not find a hint... What I want to do is display an arrow on a e.g. H4 chart (entry TF) if some H4 indicators have the right value and iOsMA(W1) > 0 && iOsMA(D1) >0. Any help or hint is highly appreciated. Thanks all...
Hello, I'm new to Meta Trader (Version 4 Build 890 25 Sep 2015) and I do need your precious help. I have the RVI indicator from https://www.instaforex.com/pt/forex_indicators/rvi.php and want to use it in the https://docs.mql4.com/indicators/icustom way to check if RVI is greater than 50, for my EA....
Gents, I am a bit scatter brain at the moment. I would like your input on the code for pips calculation for all trading instruments. Please let me know if you think that it will not work for all brokers.    if (Digits % 2 == 1)   { pips  = Point*10; }    else   {  pips  = Point;    }      sOP =...
Hi, I read several places in the forum where it is not recommended to code a multi currency EA.  WHRoeder  Suggested - Code it to trade one currency, then put it on multiple charts. Is...
I am running multiple terminals on a VPS (with EA's) and every so often I am getting the "OrderSend() error - trade timeout" message. It also happens when the EA is trying to modify open orders right after they have been placed - e.g. to place the take profit. Is there anything I can code so that it...
hello Forum,  Im trying to figure out how to calculate the average daily move of a pair in a particular day of the week.  I do have a code that can calculate the average of X number of days, or the last day , but cant figure out how would I compute only the average of Mondays, Tuesdays, etc....
Hi all, I'm pretty new to MT4 and MQL, but I found a strange behavior on the following code: void OnTick() {   int order_action_status;   MqlTick last_tick;   SymbolInfoTick(Symbol(),last_tick);   Print("TICK: " + TimeToString(last_tick.time, TIME_DATE|TIME_SECONDS)); } That code produces an output...
 Hello   i want a function  to calculate the point price for current symbol   thanks