Download MetaTrader 5

MQL4 and MetaTrader 4 - page 1079

To post a new topic, please log in or register
How can I convert into C# code the following C++ code thanks very much. rob
hello, im just walking my firsts steps through programming in MQL4 and I have some questions that someone could answer. Does anyone know how to detect if a position its closed when it reaches the StopLoss limit?? thanks in advance
I just want to take Profit 0.0002 and Error 130 is occured .How can I avoid such error? Can any one with kindness help me?
On the website of the Automated Trading Championship 2008,an Interview with Vladimir Lekhovitser (PrizmaL) has been published. Vladimir Lekhovitser (PrizmaL) is successfully participating in ATC 2008, so we decided to ask him some questions about his development. Vladimir was willingly asnwering...
I would like to add on the current chart (above the chart - in the corner) the current Values of the RSI and WPR% indicators. How to add this Values into the chart. I would like to add these values as the new Indicator. For example: RSI: 71 WPR%: -36 below is the chart What is your best suggestion?...
Somebody can help me how to put maximum Open position Parameter on EA..Thankz Buddy...I'm really need it..GBU~!
Hi dear!im am a forex newbie and ill like all other users to help me by answering some of my questions.i need to know the MINIMUM AMOUNT/DEPOSIT i can use to trade using the MT4 platform.(example $50,$100 etc jus let me know the minimum).
Hi All This OrderSend works fine for some brokers: OrderSend("USDCAD",OP_BUY,1,Ask,3,Ask-SL*Point,Ask+target*Point,"50varL",123,0,Blue); But using the tester with alpari I get two errors: OrderSend error 4051, Invalid Function Parameter Value, since I used Point I assume that I do not need to...
In MT4 (single terminal) I'm logged into one account. Is it possible for the active EA to place an order on another account I'm not logged into? I think I might need a separate DLL for this.
The relative ratio between Lotsize, Profit Factor and Maximal Drawdown is very good for this multi trade EA. The EA will trade upto 29 seperate currencies based on the Basket method. Lotsize, Stoploss and TakeProfit are dynamic based on AccountBalance(). mt41969@yahoo.co.uk
hello everyone!? I have an expert advisor that generates 150-300% profit quaterly. This EA is based on a rare trend reversal indicator. Contact me at (karl_me_2nite@yahoo.com) for proof and how you can obtain this EA. Hope to hear from you... Karl
The smile on the chart is good but I have an error Merci
Does the sleep function work properly in the stratgey tester?
This has been driving me nuts for a week now, hope someone can help. I have an indicator that draws entry lines at the top and bottem of the bar before an inside bar. It will also allow the user to elect to offset the lines, and to allow an additional offset to the buy indicator to account for the...
Hello everyone! I've just started writing my simple EA yesterday and I've been bumping into two problems over and over. 1) When  I run the EA it doesn't finish with the testing and the completion bar just stands still until I stop the testing. 2) It completes the testing, but no positions are open,...
Dear Rosh, is it possible the Clock V1.3 open at separate window in horizontal mode? it is possible, can you help me to make one? contact me at eazzie04@yahoo.com thanks
you talk about mql5 by this spring, but When mql5 and MT5 will be available? would be nice to have some indication about that Davide
Does anyone know if it's possible to pass variables from an active EA to an on-screen indicator (same chart/window) without using Global variables?
Hey Everyone, How do you debug or step through your code when you are developing an EA for MetaTrader4. I noticed that you can set breakpoints just not sure how to use it. Any help would be much appreciated. Thanks Guys.
Hi there, I just registered here and so I am very new. I searched the forum for "logs vista" but didn´t get the result I need, so I am posting my question here: I just discovered that my MT4 doesn´t write logs anymore from the journal. I have a new laptop since beginning of November. Vista is...
Hi, All the forum members. I'm newbie to mql4... so please advice me to construct my simple EA.. the concept is like below: >m15.. looking for main trend first rule >follow the trend and waiting >down/up 20pips then reverse back 20pips >next down/up again 10pips..open position buy/sell >tp=10...
I wrote an EA that opens trades with any CP regardless the active chart cp. I realized that my EA works on demo account (IBFX) but it does not work on live account. Why? Here is an example of the displayed messagges : 2008.12.22 06:31:47 EURUSDm,M1: unknown symbol name USDJPY for OrderSend function...
Hi, Alls When I try to my programme it shows the 'Not enough bars in the window. EA doesn't work' I cant understand what to do ? Plz! help me Thanx!
Hello, I search someone to program a strategy (expert advisor), that seems to work good. Please contact me to quaranta.eric@hotmail.fr ps : I am french, so excuse me for my English see u later Mkilvan
Seems that in strategy tester the EA can't access the price data of other symbols exept the attached chart symbol So, how can I test an EA in which I want to trade deferent symbols? Please Help Thanks a lot
  Compare Array (5)
Hi, i have 2 array like double a[95]; double b[95]; Any idea how in a fast way i can compare if the values of both arrays is equal? Something except "for (int i = 0; i < 96; i++)" .. Thank you for your ideas
  MQL4 Arrays (2)
Are MQL4 arrays sparse? For example, if I define an array: double a1[][4]; Then add some entries at arbitrary points: a1[1234][0] = 3.14; Does the array implemention add entries 0 to 1233 for the first dimension? The purpose of this would be to track order specific information on a per ticket...
How can the Start( ) function be triggered by a certain period of time rather than a new coming tick? For instance, a time of 10 seconds. Can any one with kindness help me? Or More precisely, how can I perform a function(instead of Start( )) recurrsively triggered by a certain period of time?
I see that when I am running tests at the end the open orders are stopped out... sometimes these orders are -ve and of course that affects the final result significantly. Instead of closing out those orders is there a way to set MetaTrader to keep those orders open rather than stop them? Cheers C
I am running with a demo account which recently download / register from http://www.metaquotes.net/ . V4 Build 220. Point return incorrect value as 0 when play with EUR/USD and GBP/USD ? any clue?