[Deleted]
Hi There, My name is Danny and I am trying to finish up a report for my college studies. We are trying to test few theories on trend following and we created an EA using the attached indicator. Indicator is re-painting but this is not relevant for our study. We are using a demo account to test...
Hi, I created this custom indicator to draw an arrow at Swing Hi's and Lo's. Can't figure out why it is not drawing the arrows when I apply it to a chart. Any ideas? ThemBonez //+------------------------------------------------------------------+//|...
Hi all, My EA crashed by an "array out of range" via High[0]. I had never met such case. What happened? My MT4 was updated for Build 765 before the error. Is it a bug of Build 765? FYI, MT4, Build 765, USDJPY. MT4 was updated for Build 765 at 16:12:04 21.12.2014 (EST). Ticks update was started...
how to get market type,tme in force,status from order information
[Deleted]
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.
[Deleted]
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...
[Deleted]
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?
There are 2 averages on the chart - the blue one is more accurate in its price envelope. Purely practically, it is inconvenient to make an assessment of the chart every time and then readjust the moving averages. Although, the human eye is able to do it quite well and accurately. Have you understood
[Deleted]
Hello, I'm looking for tutorials that relate to the MQL4 Build 600+ and more specifically the Object-Oriented Programming part. Regards,
[Deleted]
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, 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...
[Deleted]
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...
[Deleted]
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...
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,...
[Deleted]
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
[Deleted]
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,...
[Deleted]
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...
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...

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.