Download MetaTrader 5

MQL4 and MetaTrader 4 - page 442

To post a new topic, please log in or register
I am trying to make an EA with a moving average crossover. The code fails after the first cross. If you get a opposite cross, you dont get the signal. Do someone has some tips where the error is? EMA1=iMA(NULL,0,10,0,MODE_EMA,PRICE_CLOSE,0);EMA2=iMA(NULL,0,20,0,MODE_EMA,PRICE_CLOSE...
Hi guys, thanks for actively responding my first question, much appreciated. Here is my second question of the my first day. I have a function called "double removeDuplicatedOrder()" return a double Array, which contains a list of pending order price in double. The "removeDuplicatedOrder()" will be...
Hello Experts, I have a strange one. I call several custom indicators at the beginning of a new candle inside of an EA. While running this in backtest I see that one of the indicators keeps getting loaded at each new candle (each time it is encountered in the code). I stop the EA (in Backtest), I...
Can anyone advise? Am trying ot read an external file which I have placed in the C:/Program Files/MetaTrader 4/experts/files folder. However the erro message on the compiler says number 4 invalid number and refers to the number 4 of the MetaTrader 4 sub-folder. How can this be overcome as I must not...
I've easilly seen guides on how to make expert advisors on the web and in forums,... How hard is it to make indicators and use it to do a statistical or seudo backtest? Just wondering about the theory behind making indicators and I can't seem to find anything to deliver that.
Hello, maybe someone knows how to insert and what kind of code to insert to my EA so it would be able to open trades with 50% of current balance? for example: I attach my ea, when conditions are good it opens trade with some lot size which will be a half of my current balance, than if it losses it...
  Recent HST format changes (14   1 2)
I have been writing a HST file reader, that I have confirmed to work with an older HST file ( originating from an older version of MT4 ). But since LiveUpdate updated my MT4 build to 225, I don't seem to be able to read the header properly, and not any of the RateInfo. I have quoted the docs on this...
I am a new comer here. According to my knowledge, foreign exchange from customer to market through stock brokers,the buy and bid price are often using fixed gap, usually 2 points. But foreign exchange from customer to market directly through ECN, ,the buy and bid price are often using floating gap....
I had created an EA, which sends e mail, when a cross and close happens. My SMTP server is smtp.com:2525. The problem is, the mail gets send (even test mails) some times and sometimes not. Though GetLatError() returns 0, the error pops up in the journal. The latest one was Mail:Error connecting...
Hey guys, I was wondering if someone can help me with a the coding here. I want to place Max orders. I am going to place 4 pending orders a day and after those trades are placed I want the next 4 orders to be placed the next day. I tought of counting the trades by selecting the trades if they had...
Test Period: 1 years; Spread: 10; Result as below pictures: This EA is made just now, I think there must be many deficient points, so I post its result pictures here to get advice for this EA's serious deficiency.
I made an Indicator which can draw a line on chart as below; some time this line cross the bars around it and some time this line always run above / below bars as below: the first situation: the second situation: So I want to get a good method of differing these two situations.
While testing, There are two or more opened sell or buy orders. Im trying to modifying orders but it does not work. I debugged and found it responses none of orders opened filtered by if(!OrderType() == OP_BUY) continue;... Why? <CODE REMOVED>
Hi, I wonder how I can specify an alert at a specific time in the day or an alert after a daily close. Can someone help me with that? The problem I think is that the functions hour(), minutes() can not be used because it only works when the script/ea loads. I am going to use it in an EA.
Hello, I am new here so others might have asked this question before but I can't find any from the search box. All I am looking for is something like the picture below. Lines are automatically drawn. It is like drawing a trend line where when it is going down, a line is drawn at the top and vice...
Hello, does somebody know what the error mean "no memory for string" i did see that today in my experts tabs?
hello every one i downloaded forex historical data from www.global-view.com and it looks like(excel file attached),it shows days high low close and open i want also to get stochtics readings. is there any way that i can download stochtics indicator reading,or i can get using stochtics formula in...
First of all I'm not English, sorry for the possible mistakes. I want to build an indicator on the MT4 but I can't do this! I want to see on the chart, in addiction to the EMA 5, two different lines above and under the EMA 5. Above the EMA a line given by EMA 5 + (ATR (7)/4). Under the EMA a line...
Hi, I am attaching the MQ4 file here please check and help me out to resolve the error ... I request experts to check this error and solve it for me <DECOMPILED CODE REMOVED>
Hi, Is it possible to get the crossing of two lines of two different indicators ? I would like to get the crossing of stochastic and standard deviation. There must be a way as the lines do cross on the screen. I know how to do it with stochastic/rsi/wpr or ma's etc. but this one got me blocked. Any...
Hi Forum, I wanted to print some comments on the left side of the chart but the chart is sometimes overlapping the text and make it unreadable. Therefore I wanted to hide a part of the chart by using a black object. I tried it with a rectangle but it seems to be that the rectangle is always...
I find that the existing MQL4 tutorials and texts and reference material are fine to read through to learn about MQL4 by topic and aspect, but are not at all well structured and laid out when one is writing an MQL4 program and having problems there. i.e. they are not very useful to refer to by...
hey, I'm occuring a persistent problem here with my eas, the mecanics within them is working perfectly as I want but I wonder how to actually make it confirm that it really took a trade or close a trade before continuing on it's way. is there anything I could do because it freneticly takes several...
Hi, I use a script which needs some DLLs to work. Every time I use it, I have to confirm that importing DLLs is allowed and I have to de-select that every single DLL call must also be confirmed. So I would like to automatically have the green activated and the red deactivated. Is that somehow...
I need help, I have problem with the 509 version of mt4, I try to uninstall completely because I have a bug, but when I download mt4 again, the same problem appears. The problem is on mt4 account history - the save as detailed report- detailed report not appears. The other problem is that when...
I'm trying to find an indicator or EA that would calculate the difference between the order price and the stop loss/take profit in the deposit currency as well as in pips. I'm also looking for code that would show how when I move a line on the screen, the value is "picked up" by an indicator or EA...
//top// if(Close[i+Time2]<Open[i+Time1]){if(V2<Close[i+Time2]){         sObjName="FXPTlblUpAr2"+i; ObjectCreate(sObjName, OBJ_ARROW, 0, Time[i+Time1],Low[i+Time1]-ArrowSpacing2*Poin);   ObjectSet(sObjName, OBJPROP_ARROWCODE, 241); ObjectSet(sObjName, OBJPROP_COLOR,...
Hello forum After applying a moving average to another indicator in the separate chart window and seeing the value of this. I now want to calculate the value of that moving average of the other indicator to use in an idea I am working on. But I need help with a couple of newbie questions. What is...
Hi, In my real account, there used to be arrows on chart: 1, if I have an order and a stoploss for that order, there will be a loss value in $USD if mouse hovering on the stoploss line on chart; 2, if I've closed some orders, there will be arrows and linking lines for/between open position and...
//+------------------------------------------------------------------+//|                                                   prvolalert.mq4 |//|                        Copyright 2013, MetaQuotes Software Corp. |//|                                        http://www.metaquotes.net...