Download MetaTrader 5

MQL4 and MetaTrader 4 - page 472

To post a new topic, please log in or register
Hi, I'm planning to use iBars function in my EA but the code will be kind of long and would like to know if the iBars will work correctly in backtests before I implement. I think it didn't work when I tried it but I'm not sure. Thanks
Dear all, i try to implement a function witch delete pending orders after X minutes or better X bars. I have found this one in this Forum and it looks good, but it does not work as desired. It deletes order not after 5 minutes, but when another order opens. Someone any idea ? and as I said, any...
As we know the code : MT4|ASK!EURUSD is for get the ASK price  so what is the code to get OPEN price ?   Thanks in advance 
I'm trying to write a routine that will display the Margin CallCloseout price (margin call) for the current trade. I got this far butsomething tells me is just not this easy. I've compared my results to the OANDAMargin Closeout Calculator, http://fxtrade.oanda.com/analysis/margin-call-calculatorand...
Hi I'm total noob in terms of mq4 unfortunately i found out, sometimes I need a little correction of indicators. Would someone be so kind and helped me? I believe, it is question of 3 minutes to do it.  For my personal analyze I need to collect data from indicator linked here http://www.forexfactory...
Hello all, I have an indicator which draws some 'permanent' objects (i.e. they aren't subsequently deleted by the indicator). The problem I have is when I switch time frames - during the lag between the new timeframe opening and the candles updating, the indicator paints objects based on the old...
Hello   I m looking for an indicator that refresh the chart (with all indicators on it) at each new bar. Thank you   
Hi  I have noticed that with recent two builds, there is a major issue to download complete M1 history data. I am experiencing the same problem across multiple brokers therefore I can safely conclude that it is not a specific broker issue. As far as I understand that by default, MT4 platform allows...
I have Galaxy S3 and I wan't to install MetaTrader app but when I try to download it I get error "You don't have any devices". What could be the problem here?
I am sorry if I am posting already asked and answered question, but I couldn't find the words to search the forum (listed too many) and as far as I went manually to read did not find.  I can't test all conditions, when Strategy Optimizer is working (longer time, few hours for example) does the...
This is a challenge for me but maybe someone out there knows how to get around a couple of tricky scenarios. If I want to run two different experts on two separate charts, both charts having the same symbol and time frames, how do I achieve this so that they do not interfere with each other? Also...
Hello everyone! I have a problem I could not solve myself. I need to construct an indicator which uses 2 other indicators (MACD and Stochastic) and returns the result based on the combination of results. In particular, if for a given bar MACD_Line > MACD_Sig, I have MACD_UP = true, in a similar vein...
This is a piece of code am trying to use to post a set of 13 parameter values from the mql script to a external php script named upload.php string headers = "Content-Type: application/x-www-form-urlencoded"; string data = "{\"ohlcVectors\":{\"ticker\":\"dax\",\"barIntervalSeconds\":300,\"open\"...
Hi I am reading a source code to an indicator that I'm trying to understand, where there is a strange mix of the && and || operators, i.e. it uses these operators together in one statement without clarifyint it with brackets.  I've tried to find information about which operators has higher priority,...
Usinging MQL4 v 4.00 Build 482 on Windows Home which should be most recent ver.or close to it. Bands EA: http://insane-world.com/wp-content/uploads/2012/09/BandsR2a.txt  Compiled the EA does with 0 errors. Yet it does not convert to .ex4 for some reason. Only one time it did covert to ex4. But that...
Hi Guys I am trying to download datas with DDE. Not easy. the well know formula ='MT4'|Ask!EURUSD is perfect to have an instantaneous PA. But to store a data base of datas  it is not the way... Here my code in VBA  Public Sub essai136()      Dim i, ChannelNumber As Integer      Worksheets("Datas")...
on MT4 editor ,i found only several functions  have i...OnArray functions , does every function have its OnArray functions ? if not may make it ourself ? thanks
This is the monthly chat of EURUSD . Is there anyone can tell me  what the indicator under chat is???
Hello my name's Redpich , I just start to create my EA...... And I need some help......... I want to select the highest and the lowest position and assign them to parameter High_price and Low_price. Example..... My order that opened are EUR/USD 1.3050   >> I want to assign this value to High_price...
is there any EA available for trailing stop
I don't know this from live experience, so I ask about what happens with pending orders during gaps. For instance now EURUSD is @ 1.3050  Say I have pending orders... SELL STOP or BUY LIMIT , at 1.3025.  Market opens at 1.3000 Are my orders filled? Is only the sell filled and the buy is not? What...
hi all i'm just a beginner in mql4 and need help in this  EA codes my expert opens trades according to external variables and global variables as the condition below     if (can>=stepdeviation && Close[0] ==(buypoint-9*Point))        {                        if (...
New article MQL5 Programming Basics: Strings is published at mql5.com: The article covers everything you can do with strings in MQL5. It should be of interest primarily to novice MQL5 programmers, while experienced developers will have a good opportunity to summarize and systematize their knowledge....
  MT4 error (2)
I am using a demo account at this moment and by using the mini-trade-platform, I am getting the following error message every time I reset the parameters *Line   659 *Char   1 *Error   'bmi_load' is undefined *Code   0 *URL   http://brokerservices2.mt4i.com/tradeterminal/BlankDialog.html?25...
Hello, I'd like the attached EA to exit trades when the two stoch line cross.  The programmer in India that I've been working with said it's not possible.  But I've been searching online and sounds like it's possible to close trades when the stoch line cross.  Can someone please look over the EA for...
Hi everyone. I was wondering if anyone has experienced this problem or knows of any solutions. If I run an EA optimisation and double click on the results that I want to use, then run an EA simulation straight away I get completely different results. It doesn't matter whether I use 'every tick',...
Is it really impossible to increase lot size of open order?
Is it possible to edit the stoplevel of any symbol to your own chosen value? There are plenty of articles discussing how to alter the spread values, but I can not find an answer for how to alter the stoplevel values. I am assuming that the answer is "no", but it is still worth asking. (I know that...
On mt4 terminal ,the backtestor only can be used to test one currecy ,for hedge system among different currency ,it will not work , is it possible to make a testor to do it .
Hi, how could i write in a file on closing of actual bar cause my code writes to often to the file :    int handle=0;   datetime date = TimeCurrent();   string Date = TimeToStr(date, TIME_DATE|TIME_MINUTES);   handle=FileOpen("tma.csv",FILE_CSV|FILE_READ|FILE_WRITE,';');   if(handle>0)...
1...465466467468469470471472473474475476477478479...1245