MQL4 and MetaTrader 4 - page 1274

To post a new topic, please log in or register
I tried to use fractal indicator in my EA, but it always gives zero result in strategytesting. But when I attach indicator to a chart it very well shows on the chartand data is dispalyed in data window. While compiling my EA there is no error. Kindly help. Thanks
The 1st of July, the start of the Automated Trading Championship 2007, comes soon.All details of the forthcoming competition will be published on its website. Registrationof Participants will start on the same day! Considering the experience of registration in the previous Championship, we decidedto...
New article The Basic of Coding A Hedge Expert Advisor is published. This is just an example of a simple hedge Expert Advisors. You need to modify itto fit your own hedging style. I am sure that there are many hedging styles outthere. Author: chayutra sriboonruang
I made a script -out of curiousity- about how much time different functions taketo be run. (That is how many times does a loop containing the tested functionsrun in a second). I found that different account/order information functions are quite fast, notreally affecting the result. (eg. a Comment...
Is there any way to avoid Bars on Sundays on a Daily Bar?
Hi, everybody i'm pretty new to MQL4 have some prior programing exp, need some helpto get started on the programing path to Graal, have been trading currency fora while now and very pregnant with ideas of strategies, just need to put it intothe code. it would be exchanging emails or a chat. If there...
Hello, I see its Fórum almost that daily. My doubt is the following one. I want to configure my EA to recognize my data of account. Account Name: Eduardo Account Number: 120500 Company Name: Globofx Date has limited or Exhales date: 2007.07.31 I have the manual of the more nao I understand...
We all know that MQL4 Tester is a great resource and the key to the real world.But it's closed! I don't know if is a new idea, but what about an open Tester in future versions, where MQL4 users could create theirindicators and signals during the test? For example, "Optimization Results" page (and...
How do I display text on the chart? I'm modifying an indicator, and want to displayone of the outputs, in text format. Please see code below the attached picture. I appreciate the help. //+------------------------------------------------------------------+ //| ATR Channels. mq4 | //| Copyright ©...
Hello! I have a problem with the sell orders. The orders buy it's good. I've to searched for all sites, but I didn't find a solution. Please, can anybody help me? This is the code: int MagicNumber = 77777; int TotalOrders,cnt,Ticket; // Globals int Spread = 0; string FX_Symbol = "";...
Hi all, I want to test a EA for the range of e.g. StopLoss from 1 to 5, there will be 5reports in strategy tester separately if i manually input the StopLoss from 1 to 5. How can I script in MQL4so that it can generate the 5 reports automatically (in one file? should it be ok?) Tks! Nick
Hi all, I am new to MQL4 programming, so don't know how to get started. I want torun some simple EA and want it to present the results in the strategy tester report,but get nothing happened. Can anyone just give me a simple EA sample that can runand shows results in the ST report? Thanks for helps!
Hello, I am testing a script, and I'm getting inconsistent results that I do not understand.I have the NZDUSD chart open when testing this script. When I code the following and Print "a", I receive a valid numeric value: double a = iMACD(NULL,1440,12,26,9,PRICE_CLOSE,MODE_MAIN,1); When I code the...
Need an expert to look over an existing EA and the programming of a new EA. Please send an e-mail to brighammartin@gmail.com Will pay for time spent.
Dear together, i have a basic question about metatrader ... IS IT POSSIBLE TO GET A SIGNAL, IF THE PRICE - FOR EX. EUR/USD - TOUCH MY OWN DRAWINGTRENDLINES !? Perhaps an acustics Signal or something else !? Best regards : Rookie
On the Automated Trading Championship 2007 website, the article named "Automated Trading Championship: 2006 and 2007" has been published. The article summarizes the Automated Trading Championship 2006and its impact on the automated trading industry as a whole. Besides, the Jurybring out their...
3 SMA's: 30, 50, 100 4 TimeFrames: 30, 60, 240, 1440 What I try to find is the direction of the SMA's for these Time Frames. The firstand second TimeFrame is right but the third and fourth is wrong! I can't find the bug. Anyone? #property copyright "Copyright 2005, MetaQuotes Software Corp...
Rules doesn't talk about dynamic changes, will be possible Extern Parametersor EA source code be changed anyway during the championship by the competitors ?
Hi everyone, I experience problems while using iMAOnArray, so I isolated the problem. If I do that inside the init() method of an indicator, this works : int init(){ ... double t[10]; for (int i = 0; i < 5; i++) t[i] = i; Print("ma = " + iMAOnArray(t, 3, 3, 0, MODE_SMA, 0));} But if I use a...
2007 Competition: I wrote a custom indicator which write a .csv file to /files. The expert advisor read the file and trade accordingly.  The custom indicatorneeds to be attached (manually) to the chart in order for it to write the.csv history and movement.  Is it possible?
I do not understand rule IV.4 very well. My EA can begin negotiating 5 lots or mustbegin obligatorily by 0,1 lot? Excuse, but I do not speak to the language inglesvery well. Thanks to all
An outside source of MACD sample will not yield test results. I opened the MACD sample that comes with MT4 in meta-editor. Then I copied the exact same MACD sample but from the metatrader.net site. I confirmed that the program codes were identical from both sources by settingthem side by side in...
  Reduce Lot (2)
hello, i want reducing lot after equity reach some number ie: start equity = $5000 lot = 1 then equity increase = $7500 i want next open order with 0.5 lot how to code this? or somebody have sample or link i can learn Any help is appreciated
Please help. See attached screenshot... Ideally, the indicator is supposed to draw an up or down arrow in the main chartwindow when the RSI and the RSIMA cross each other. The arrows in the screenshotare from a crossover indicator that I have, but for some reason they don't lineup at all with the...
I have an interesting technical question. When I have an EA on say H1 timeframe and it checks on data on M1 timeframe, andlet's say M1 timeframe was not referenced recently on chart so that M1 data isnot loaded up to date. Question is : will M1 data be updated when referenced in the EA without M1...
Hi everyone, Great site :-) Could anyone tell me if I am to upload an expert advisor for the contest what isthe timezone of the console used ? Is it the same as InterbankFX ? Would appreciate feedback, Thanks, Lee
MQL4 Language for newbies. Difficult Questions in Simple Phrases. This is the second article from the series "MQL4 Language for Newbies".Now we will examine more complex and advanced constructions of the language, learnnew options and see, how they can be applied in everyday practice....