# MQL4 and MetaTrader 4 - page 1261

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...
if any one can help me please
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....
Guppy Moving Average !! (23   1 2 3)
Hi, Sorry for opening a new thread. CodersGuru, this thread i found over at ForexFactory, Guppy Moving Average does an extremely wonderful job of identifying trends. Quoted from that forum Google Daryl Guppy... Just one of the finest traders from Australia that has ever walked the Earth There...
This indicator separate Buy Volume and Sell Volume .. you never see like this before It Draws three histogram: Red- Sell Volume. Green- Buy Volume. Yellow- Defrence.
Price Percentage Oscillator PPO is another trending/momentum indicator. It is a very close cousin to MACD, if you know how to use MACD you know how to use PPO. The two are so close, in fact, that I was reluctant to even write this. But I was bored tonight so I wrote it. Included is a screenshot. On...
Thanks for your assiatance so far ...........base on the solution to problem. well, i have a problem base on how to make syntax and write of code: PROBLEM: LOW and HIGH >13EMA If close_price-open_price on bar1 If close_price-open_price on bar2 If close_price-open_price on bar3 then, (...
Envelope 2.11 (533   1 2 3 4 5 ... 53 54)
Envelope 2.11 EA. M15 timeframe. EURUSD and GBPUSD. https://www.forex-tsd.com/forum/exclusive/751-envelope-2-11/page13#comment_79115
I have coded an EA to place order at specific hour (ServerTradetTime) during theday. I want to have both Server and Local TradeTime on chart via Comment() function.The following code works OK, but I would apprciate if someone could advise if alternativeway to convert a ServerTradeTime to...
Hi, Sorry for this trivia but I need to know if there is any way to add EA or at leastCustom Indicator to MT Mobile. If the feature is not available on the basic MT Mobile, do anybody know someonewho can do this ? Thanks a lot, Wisper
hi guys, need some help here, i'm very new to this programming, i'm seeing thiserror " '\end_of_program' - unbalanced left parenthesis C:\Program Files\MetaTrader- Alpari UK\experts\indicators\pivot1.mq4 (37, 1) " Below is the code....your help is really appreciated !!!! #property...