Download MetaTrader 5

MQL4 and MetaTrader 4 - page 244

To post a new topic, please log in or register
  TestGenerator (3)
When i run an EA backtest, it does not work. In the journal tab it says: TestGenerator: no ticks generated Can somebody please help/ Thanks.
Dear All, I would like to have the information of my last OrderProfit values. I expect that this will be ensured with an array function. Could anybody be so kind and give me a hint about this code. Thanks in advance. fino
Hi I have realized something really strange with metatrader on different Computers. I have the following code snippet: ObjectCreate("t1", OBJ_LABEL,  WindowOnDropped( ), 0, 0);ObjectSet("t1",OBJPROP_XDISTANCE, 20);ObjectSet("t1", OBJPROP_YDISTANCE, 40);ObjectSetText("t1","Teststring", 8, "Arial",...
Hey guys! 3 questions to coders:  1. Is it possible to code the next kind of a straddle-like EA  and how much would you want to get for this job: a. It has to be for mt5 and/or mt4. b. It has to place market orders (not pending orders) when a certain time's candle made a certain move. c. It has to...
Hi, I have a problem: Is it possible to get a candle high under MT4 strategy tester? I have tried with this code, but what I got is 0 or something wrong tick data. candle_count=iBars(Symbol());tesztfile=FileOpen("adatgyujtes.txt",FILE_WRITE|FILE_CSV,";");FileWrite(tesztfile,"nyitoar ","max/min_close...
With some changes I can't verify my coding will not compile correctly since I upgraded to Build 625. What I need is an updated reference manual in PDF format as the older version is--do you have that available to download?
Hello, I'm looking for tutorials that relate to the MQL4 Build 600+ and more specifically the Object-Oriented Programming part. Regards,
forexparvenu
because i wish to running ea on free vps server.
Hello, I want mql4 code to set user id and password to protect my EA, when user call the EA it shows a windows  which want user id and password. if this user id and password match then it will work otherwise not. Please help me to give such code 
Hi all, I'm reposting my question in this forum since it's MT4 related. Previous post can be found: https://www.mql5.com/en/forum/38428 On topic now: When i do a back-testing over a long period of time (begin 2000 to end 2014), the back-tester stops half 2013 and is therefore not doing a test over...
Hello I have found excellent piece of automated trading software for the MetaTrader 4. This Forex Strategy Trader http://forexsb.com/forex-strategy-trader.html enables to run your own EA's inside the MetaTrader 4 without any coding skills. You just set your parameters for your strategy, set it to...
Hello Guys how are you?  Well i'm doing fine, but stuck with an idea i have for an indicator i'm creating, there are some rules i developed and right now trading a strategy based out of this manually, but i think my trading would be more effective if i had the indicator i am trying to create, but...
Hello,   This seems to be a very odd problem but I have a line of code which takes a screenshot with a certain size.  The image file always gets created but sometimes the file size is 0 an others its the full image.  It's the same code that gets executed on the same mt4 instance so I can't figure...
this is my code.igot some problam when the "new tickets"and"close"Condition was set up in the same time. will look line this photo. now,I want add a new code to set . every bars were only trade once in the same bar. i try many method like timefram , int bars or Bars,but it's not work. so please give...
APeng
Hello, I get the error during backtesting: 2014.12.17 21:44:13.420    2013.12.02 02:00  array out of range in 'ZigZag.mq4' (77,28) I use: ZZ = iCustom(Symbol(),Period(),"ZigZag",ExtDepth,ExtDeviation,ExtBackstep,0,1); The test runs from 1.1.2013 until 1.12.2014 and stops without any trades. If I...
Dear Coders, Is it possible to make a communication between two (or more) MetaTraders without files? I have a technique with Named Pipes. But it does not work since Build 600. There are some topics about Named Pipes & B600+, but I can not find a good solution to make it well-functioning. I tried to...
Hello, Every now and then, I get the following message when trying to download data from "MetaQuotes Software Corp. history center": there are no new data for a symbol 'EURUSD' The symbol can vary. In Options/Charts, "Max bars in history=512000" and "Max bars in chart=65000" but in the History...
  line continue (1)
How can i make a trend line draw from i high or low point and continue to stay at the price horizontal until price touches again
Hi, Not something very important, but I am curious, and as I can't easily find an answer, I ask the community. Is there someone who knows the exact meaning of these numbers in Strategy tester Journal tab, at the end of a test : 2014.12.18 18:11:43.383    GBPUSD,M1: 1577234 tick events (1578234 bars,...
Hi, I have a beginner's question. What is the preferred way of exchanging information between an indicator and an EA? To be more specific, I have a custom Indicator that looks for candle patterns, and depending on what pattern is detected, I want to use different Trendindicators for filtering. First...
//|                                             single rectangle.mq4 |//+------------------------------------------------------------------+#property copyright "Chart Shapes 2014©"#property version   "1.00"//+------------------------------------------------------------------+//| Script program start...
sir: when draw costum indicator in DRAW_HISTOGRAM, it is drawn in candles. how to draw it in stck mode ?
Very annoying. Every program I've tested works except Metatrader 4
Dear Fellow-MQL-Afficionados! I started with MQL4 for about two months and have been carrying out some more orless successful experiments. However, I keep running into problems as soon as I try to use the function: iMAOnArray! In order to try to really understand this function I did some...
Have noticed something weird with ArrayBSearch... Code snippet here: int OnStart(){       int arr[6] = { 1,                   2,                   2,                   2,                   2,                    5 };        const int idx1 = ArrayBsearch(arr, 5, WHOLE_ARRAY, 0,...
Hello, I was hoping someone could help me.  This loop will only iterate 6 times when it should iterate 10. #property copyright "Copyright 2014, MetaQuotes Software Corp." #property link      "https://www.mql5.com" #property version   "1.00" #property strict #property show_inputs...
  'OnTick' and OnTimer (12   1 2)
I would like to run my EA at a predefined interval irrespective of when/ if the EA gets any new ticks from the server. I am trying something like this extern int     _tick = 1;//+------------------------------------------------------------------+//| Start...
Dear users: Im trying to code an indicator that shows the MA and EMA of the Volume bars. I have managed to successfully code the SMA but with the EMA, Im getting some issues and I cannot advance. I have detected some stacks overflow also. Anyway below is my code and I dont think I have it good at...
Hi everyone, I could not find it, but if there is already a thread addressing this, please send me there. I am looking for a US Broker who will allow me to trade a large range of markets on the MT4 platform.  I've been using a demo account through a broker called PipIndex, only to find out they...
Like the title, is it possible debug MQL4 code in backtest mode? Sometimes I need to test particular cases and I have no time to wait on real time. What I wish is a debugger to test step by step a code under particular conditions (i.e. when a varaible value is.. or when the time is >= ...).
1...237238239240241242243244245246247248249250251...1250