Download MetaTrader 5

MQL4 and MetaTrader 4 - page 874

To post a new topic, please log in or register
Hello, There used to be a check box in the back tester that told it not to recalculate the tick data. Is it possible to have this done in a different way? Thanks.
This is the EA I want to modify to work with others.It's a simple grid EA.It use AccountBalance() and AccountEquity(),so when other EA have oders in list. This EA can't work correctly.Someone please help. extern int Step = 170;extern double FirstLot = 0.1;extern double IncLot = 0.0;extern double...
I have a client who use a dll to validate user details with a server, and so far we've only used it on indicators (for about a year). When I tried to use the validation with an EA instead (exactly the same code), it simply doesn't work. While trying to find the reason why it is so, i created a...
hi! im quite new at coding and i discover many new features every day. i use to find my answers by googling but here im stuck with a -rather simple for experienced programmers- issue. id like to get the color of supertrend in a variable, to trigger orders. i just dont find any info about this kind...
Hiii This EA open next trades immediately after TP target hits. Please help me to make following changes in this EA Remove commission: Add Loop Trading (TRUE / FALSE): To state whether EA should continue to open second basket after closing first or not? Add Time Delay (min.) It is the waiting...
Does anyone have the raw code for a moving average? Additionally what would I have to do to make an alert if the price goes above or below the moving average? I think that would be simple to do and any help would be appreciatated. I'm just trying to learn something here.
I´m searching for a stop stratey with more than one open order. My idea is: 5 orders open TP 300 PIPS together, SL 25 PIPS. TP 500 PIPs ; SL 125 PIPS Is there some idea in the forum posted? Can someone help me? Thank´s Andy
Hi, How would I move the following function to a DLL please? if(iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_MAIN,0)>iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_SIGNAL,0)) trade=sell; Thanks -Maria
How to Add an an on screen alert when stoploss is hit and trade closed?? This is what i have but not working.. For a sell trade...... if ((MarketInfo(OrderSymbol(),MODE_ASK)>=OrderStopLoss() && iLow(NULL, 0, 0 + 0)<= OrderStopLoss())) { Alert(" Stop Hit, trade closed "...
New article Guide to Testing and Optimizing of Expert Advisors in MQL5 is published at mql5.com: This article explains the step by step process of identifying and resolving code errors as well as the steps in testing and optimizing of the Expert Advisor input parameters. You will learn how to use...
Special offer for today only. Contact me at sleepless.damian@gmail.com
I want to call MQL function(like iMACD(), iStochastic(), ...) in my C++ DLL. Who can tell me how can I do? Thanks a lot!
I integrated into my custom indicators several objects/ arrows with the MT create objects function to indicate trends, fine thing... Now, after a while the MT Terminal window shows a larger (and increasing) font size and, for example, the MT sub-windows/menus are getting unclear. This could be an...
  Previous Bars Calculation (16   1 2)
Hello, I was wondering if someone could help me out with a simple calculation that I cannot seem to figure out. I've been using an EA that works really good depending on what the range of the currency pair is. As the range changes, the input parameter needs to change. Currently, I would calculate...
Hi all, I have an EA I made that I am running on about 10 different currencies at once (in a demo account). I am just wondering if there is any special things one should consider when doing such a thing (as opposed to a separate EA on each chart). The reason I ask is that the EA seems to be behaving...
I have a strategy that in 2010 99% of trades were profitable. Only 1trade was lost this year. (120 trades Profitable vs. 1 trade loss) This strategy is complicated & time consuming to trade manually so Iprogrammed an ea. I need to sell my stradegy to someone serious such as a trading institution...
Does anyone know possibility how to make bridge between 2 MT4 platforms so that signal from one platform can be transfered to another. Thank you.
Is there any difference in response latency (trade latency) between using the #include method to get other DLLs functions and writing all in only one code? Thanks
Dear All, I want a help to convert this amibroker afl to metatrader4 formula and after that i want to convert it into EA. SetChartOptions ( 0,chartShowArrows|chartShowDates); _SECTION_BEGIN ( "Background_Setting" ); SetChartBkGradientFill ( ParamColor ( "BgTop", colorBlack), ParamColor ( "BgBottom"...
Hi, Can anyone tell me where I can find the source code for the 'Standard Deviation Channel' indicator?
Hi guys, I’m sure this has been asked and shown 1000s of times but was hoping someone could point me or provide me with an expert advisor that allows my manual trade orders to move stops to BE once they have been executed and hit a certain amount of pips in profit. e.g. i place 3 trades all with...
Hi can someone crate an indicator which is based on 2 other indicators? I use this strategy and it show very good signals together with fundamental, but I want to create One indicator for more convinence.
Hello, I want to programm the Equity as an Indicator. I tried it in this way, but it doesn't work int init()  {    SetIndexStyle(0,DRAW_LINE);   SetIndexBuffer(0,EquityBuffer);   SetIndexLabel(0,"EquityBuffer");   SetIndexDrawBegin(0,0);               return(0);  }int start()  {   int    limit;...
New article "New Bar" Event Handler is published at mql5.com: MQL5 programming language is capable of solving problems on a brand new level. Even those tasks, that already have such solutions, thanks to object oriented programming can rise to a higher level. In this article we take a specially...
Hi all, from few months I use strategy which is based on 2 indicators and fundamental news, and I am very happy with it, because it brings me good profit! Now I want to connect this 2 indicators in ONE for more convenience, but I am not programmer and I need help. If somebody is interested I will...
Hi all, I want to be able to draw an object (eg a line) and for my code to be able to readthe parameters of that line and perform operations based on those parameters. (x1,y1, x2,y2)....Is there such a functionality in mq4? Thanks in advance
  playsound() (2)
Hi, I use the playsound() in some of my indicators. recently I dont hear any sounds anymore, not even for when the alert box appears. even indicators that I download from the internet and that work for other users do not play a sound for me I checked Tools/Options/Events and everything seems ok....
Hello everyone. I am having a problem with a DLL I created in Visual Studio 2010 express. It loads and runs fine on my Windows 7 system but won't run on a friends Windows 7 system. The EA logs an error 126. I checked the forum and found advice for others with similar problems. I confirmed the...
I am trying to load a text file I saved with FileWrite() that contains order open times and directions (buy or sell). My intention is to use these variables to replicate all the orders opened by one of my EAs (EA#1) within another EA (EA#2). That way I can see if EA#2 is better at closing EA#1's...
I have an EA that can execute different branches of trading logic. Each branch is like a separate trading system. I'm testing a new branch of trading logic and only want it to execute in my Demo Account and not accidentally in my Live Account. What's the code look like to check whether I have my EA...