Download MetaTrader 5

MQL4 and MetaTrader 4 - page 1103

To post a new topic, please log in or register
anyone please advise me where or how i can get longer test period data to test my EA. I am using Fx interbank demo account, i found it only has 1 year or little more period of time for m30 EUR/USA data, it is not enough for a EA, i want a least 2 years data for that. thanks
Set two pending order manuallyThen an EA will automatically close one of the pending order if the other pending order hit take profit, but if the other pending order hit stop lose, it continueIf this is possible, can anyone please code this kind of EA for me, Im sure this is the simplest thing for...
I am a newbie and needs help on my first EA, There is one error remaining . It says ( '\end_of_program'-ending bracket '}' expected ). The error dot points me to a line of code where the program should be opening an additional order. Does anyone know what I may do to solve this problem.
I have written my own indicator. It uses iMaOnArray function and works properly. When I transform it into an EA system and run testing, everything seems fine except no trades occur. And no error was reported. I looked through the forum and saw many EA systems. Nearly none uses iMaOnArray function. I...
Hello, I've looked through the FXCM thread and wasn't able to find anything on this. Can anyone reccomend a MT4 demo provider that has a data feed using FXCM or even close to FXCM? They don't offer demos, but other providers are sometimes even 10 pips off the real prices at FXCM. I want to use MT4...
Could someone advise me how to syncronize two or more vertical charts on the MetaTrader platform with different timeframes so that the cross-hair appears on both charts similtaniously. I apologise in advance if this is the wrong forum to seek this advice. Thanks.
Hi, If I have an EA attached to the EURUSD chart that uses the MarketInfo function to open and close trades on GBPUSD, do I have to have the GBPUSD chart open in MT4 while the EA is active? Thanks in advance for help. ~DV
Hi there, I just need somone to point me out on how I could create a cloud between a candle high and low. By cloud I mean to color horzontally up to a specific timezone the space between the high and the low. I need to know at least what function I should look for. Can anyone help a bit ? Thx!
Hi, can someone help me to risolve this little problem? 1. I open an order when my conditions are true. 2. Then after Trailling Stop >= OrderOpenPrice from (1. Order) : Open second Order 3. Then after Trailling Stop >= OrderOpenPrice from (2. Order) : Open third Order Then Important!!!!: if...
I tried to setup a separate account to run an EA by itself so that it wouldn't interfere with my main account. ( I'm test 2 different strategies.) But when I add the EA to a chart, or add a chart, or an indicator, or take away some action in one account the platform performs the same action in both...
Hello, can anyone help me finish this EA. I know I'm doing something wrong or a piece of code could be missing. The EA should close all open orders once the account profit reaches x amount. Thanks.
Hi all, trading on 4 pairs EUR/USD GBP/USD USD/JPY USDCHF EURUSDMaxLoss = -500 GBPUSDMaxLoss = -350 ... How can i calculate the MaxLoss on E/U and close all E/U trades if E/U MaxLoss >= -500 greater or equal if reached Example code can be combined for all 4 majors or seperated for each pair thx in...
Hello, As a programmer, it is frustrating when a new build comes out and the old experts/libraries/indicators cause crashing of the MT4 system. Is there any way to find out what changes have been made or how programs are saved in profiles, config, templates? So far, the only way I've found to...
I was wondering if someone can create this indicator? Thank you
Hi All, I would like to know how to use Expert Advisor & Strategy Tester options on MQL4 trading platform/system.....please help me. Thanks. Rupesh. Dubai
Hi, I'm working on a trailing stop EA, and for some reason I can't get the platform to compare numbers correctly, and it's driving me up the wall. Before trying to set a new SL value, I check to see if the new calculated SL is great than or lesser than the current SL, depending on it being a Buy or...
Is there any way to change the periodicity of a chart to something other than the presets eg 3 minutes? thanks
I am have difficulty compiling individual Include files. The main mq4 source file compiles error free but the individual Include files each produce varying numbers of "undefined variable" errors. I tried changing the undefined variable to Global types but most are local the the Include file and...
What I noticed that if an indicator is recompiled while still being attached to a chart, the line width specified via SetIndexStyle() is ignored inside init() and the default width is used (1). Here is the code, you can try it yourself: #property indicator_chart_window #property indicator_buffers 1...
can some help me to optimize this EA please
Hello everyone again! I am currently trying to figure out how to make my expert advisor open multiple orders at the same time, i.e. buying 1 contract, and then when account balance is high enough, opening two contracts at one price. This is all intended to be done on one chart, one currency. Is...
My EA does some processing as near as possible before market close each Friday evening. Up until now, I've programmed that to happen at 2255 CET (2155 GMT, 1655 EST). The first tick that happens after that time will trigger my Friday night processing. This has been working absolutely fine for ages....
Hi, im trying to do some optimization, by using a variable to input (close,open,low,high) for testing, but I get the unexpected token message, is this allowed? ======================================================== switch (valuefour) { case 0: value4="Close";break; case 1:...
i want to leran MQL from beginning. From where i will get books or vey very easy expert advisor samples, so i will learn how to write ea.
Anyone manually trading scalping successfully and tired of spendinghours in front of computer screen? Let me know, I will turn it into EA.No matter how complicated it is. One important note: it has to haverules. I am not able to code a discretionary system in which decisionsare based on intuition....
Attached are a screenshot and the source of an indicator written to show 4 Stochastic lines (of different periods - obviously). In practice, it compiles ok but it resolutely refuses to show more than one line - as shown in the screenshot (which also shows the periods it's set to display). Oddly,...
Hi All, I just want to know can we close the part of the order.. ie profit-booking of 50% of the holdings, when profit is 10 pips... Could someone please tell me how to achieve this... I tried doing.... OrderClose(ticket,NormalizeDouble(OrderLots()/2,2),Ask,3,Green); But I'm getting lot of...
i want to do something like this but dont know is it possible, i came up this idea cause it can save me alot time and lines for codiing int line(){int shift = 0;int shift2 = 0;int movement = 0;double redline(shift) = iCustom(Symbol(),0,"500",0,shift);double tealline(shift2) = iCustom(Symbol(),0...
I AM BLING IN N PROGARM, ASK FOR HELP I WOULD LIKE A PROGRAM, USE RSI SOURCE CODE PLUS ALERT WHEN RSI VALUE > " X " OR < " X ", SHOW ALERT WINDOW PRINT RSI VALUE " Y " AND SOUND " Z " TIMES EXAMPLE : WHEN RSI > 80 WINDOW SHOW RSI 80...