Download MetaTrader 5

MQL4 and MetaTrader 4 - page 3

To post a new topic, please log in or register
Hi All, Having a spot of bother with data in back testing an EA. I've tried deleting and refreshing, downloading and refreshing, period converter, restarting the terminal, disconnecting from broker and the works. I receive the "TestGenerator: unmatched data error (volume limit 11077 at 2018.02.02 10...
Hi All, On back testing an EA that operates on H1 time frame I receive "TestGenerator: unmatched data error (volume limit 11077 at 2018.02.02 10:00 exceeded)" in the journal. I have tried disconnecting from MT4 + Broker, deleting all history in the data folder and re-downloading it as is advised in...
  Mandarine EAs mods (618   1 2 3 4 5 ... 61 62)
Another Mandrine mod, this time just using regular Mandrine indicator setup, but if you choose you can filter your trades using fibs, the fibs draw on your chart automatically when Mandrine installed, they will be there whether you use them as filter or not, and if you do use them if the ma's cross...
Hi folks, I'm trying to find a good example of posting JSON data in MQL4. Is there an easy way to do this? Thanks in advance
I have two existing trades that I am trying to modify. At the time of modification, the new order parameters are as shown below. I get Modify error 3 (ERR_INVALID_TRADE_PARAMETERS). Can't tell why. For the buy-stop order below, the OrderPrice is higher than current Ask by more than the...
Hello, I am a forex trader now. I've read in some forums currently that forex trading is completely illegal for Indian residents as per RBI guidelines and it may cause to jail. I want to know that how to overcome this problem. Can anybody provide any legal solution on it? Thank you.
I have an EA coded which contains a Trailing Stop I like.   I know that there are other standalone TS EAs or Scripts out there but their instructions aren't clear to me.   This TS works on the floating P/L of the account and closes all positions when the stop is triggered.  This is the code:   Can...
  EA BUG (7)
i'm trying to write an EA and i have little problem, the EA calculate some bar's data at the end of every bar i used code below: if (candle1!=iTime(Symbol(),PERIOD_M1,1))  {candle1=iTime(Symbol(),PERIOD_M1,1); ....} this code works perfectly every minutes; when i run the EA for first time, EA...
  Help with Backtesting (15   1 2)
Hi Im an advanced trader but just starting to get into Metatrader4. I followed several youtube videos on how to do a basic backtest on Metatrader and I can do all the steps required but then when I press Start my platform never seems to finish the test.  It will run for forever for over half an hour...
Just looking for some coding help. I designate shortname for indicator I want to be able to delete: int init()  {  IndicatorSetString(INDICATOR_SHORTNAME,"PA");...return(0);  } Then for the indicator that will be deleting the one above, code is below. I assume all I should need to do is to drag the...
Hello everyone, I have been trying to use a button to switch between charts in the watch window. I can switch charts but the previous one isn't being removed/deleted. void ChangeChart()  {     CurrentSymbol = SymbolName(Next_Symbol,false);Next_Symbol++;     Close_Chart   =...
Hi all, is there any engulfing pattern indicator that can provide notification to my smartphone where there is a engulfing pattern alert and it shows and draws fibo everytime there is engulfing pattern forming. If there is links to buy it would be great.
Hi All, I have this error, "Terminal.exe - Initialization error 4", when I tried to open my Meta Trader 4 platform. Anyone know how to fix this issue? Thank you.
When I debug a MT4 program (currently a script), I after some short time are thrown out of the debugging process and have to start new (Soft-Key "Start debug"). At this point "Stop debugging", "Step into" etc. are inactivated (of course). This seems to be correlated with the frequence of market...
Hello everybody, i've got the following problem when testing ea: The result in optimization and testing without optimization are different (same parameters). I think that come from the spread not taken into consideration in optimization mode. can somebody could confirm or indicate me the origin of...
Hello Members, Looking for a simpler logic to find Lower High under a certain time limit. Please see the picture for better understanding. In this case, I can find Highest point with iHighest Easily. Highest_barindex = iHighest(NULL,0,MODE_HIGH,80,1) But how to find the Lower High point X?  Thank...
Hi  I'm getting into crypto trading and want to use my mt4 indicators. Could someone recommend a mt4 broker that has lots of crypto symbol to use? lmk that would be great. J
i want file .mql4 such :robot will deleted pending orders after I order those around 5 minutes or 10 minutes or 15 minutes and more... if pending order did not excute.  Thank you very much
I am making an indicator to identify tops and bottoms of price movement and connect them just like the zigzag indicator actually there are three buffers: tops[] , bottoms[],and zigzag[] which is the combination of tops and bottoms my problem is that sometimes the same candle  qualifies to be have a...
Something strange overhere, only when i close and restart the metatrader 4 platform orders from my EA are placed, immediately.. Has it something to do with connection, or with the EA, but what? Ed
I know this has to have been answered before, but I can't find it in the forums... So on with it. How do I make my indicator update every tick? I have an indicator that draws an arrow above and below a candle that is an inside bar. The problem is that when a new candle forms, it is an inside bar,...
IndicatorCounted() - Which are the Default or Correct indicator calculation in MT4/MT5: Current data to Previous data ("Right to Left" or "Zero to Last bar")??  Someone said that if you started in current data ("0") for indicator calculation then your indicator become lagging indicator?? WTF! I...
Hello, the shortcut for commenting (blocks of) code in MetaEditor is "Ctrl + ' " (both on PC and Mac) However, the PC-shortcut for uncommenting is "Ctrl + ; ", but that doesn't work on my Mac. Does anybody know the shortcut for uncommenting (blocks of) code on Mac? Many thanks!
Am starting to experiment with EAs and custom indicators and would like to know if there is a fast way to 'comment-out' (//) in one go code that is selected in MetaEditor. Figure there must be, but have been unable to find the solution so far. Thanks in advance for any help.
Hi, I'm Newbie of coding. Copy, Paste and edit is my Practice now, i facing some problem hope you guys can help me. Please help to solve the error as below. Thanks 'Verbose' - variable not defined  Utility Functions //=============================================================================...
hi, sorry for bad englih, I have one expert advisor, but backtest is very slow, in robot code have my indicator code, (in this way my robot not need indicator for use) but I thin this is not reason for slow backtest ( because I delete my indicator in robot code, so in this way for my robot use need...
[Help] Custom RSI is Missing Some Portion of Indicator Lines in 4-Hour timeframe (GBPUSD). I used SMA to get average gain/lose instead of Wilder's SMMA the default mode in MT4/MT5. If I used SMMA then everything works as expected but If I use SMA then some portion of lines is missing. I can't figure...
Hello! ‌‌Recently my MetaTrader 4 Market tab inside the Terminal window stopped working properly. Every Market tab (Main, Favorites, Purchased) shows a blank white screen. The same thing goes for all of my platforms running MetaTrader 4 version 4.00 build 1045 (3 Feb 2017). I have tried restarting...
Hi guys!  I was looking for an automatic lot size calculator based on a horizontal line. All the stuff I have found are position size calculators, but then you have to manually enter the lot number in the Red/blue chart with the buy/sell buttons. I need something that automatically calculate the lot...
Hello, I'm learning a few programming languages, including MQL4, and I came up with a question that I didn't managed to find the answer on reference guides.When you define a new function, lets say a simple one: Double Product_3Numbers (double x, double y, double z){Result= x*y*z;Return(result);}What...