MQL4 and MetaTrader 4 - page 521

To post a new topic, please log in or register
I am use to coding in AS3. Is there an equivalent of ".pop", ".push", ".name", or "(substr)" functionality for array items? i am trying to create two arrays. First an array of closing prices, and the second an array of int variables which is the index numbers of the in the first array. Then I want...
Dear all experts, Just wonder whether there is a simple indicator which can display the following info on main chart / or sub-chart:- 1. The spread; 2. Day low and high + distance (in pips) 3. Average day low and high (in pips) That's all, no other information is necessary. It would be very...
HI TO ALL! GOOD MORNING. Though i am new, i am learning myself to write a important code. i struct here unable to get the idea. Any one suggestion or help please. highly appreciated.
Hello, At the moment I am back testing a EA which I wrote. I haven't changed anything to the code itself but i keep getting different back test results when i change account. I am testing with Alpari Clasic 2 which gives back good results, and with Alpari Mico 2 which gives very poor results. Can...
So if one uses iOpen(Symbol(),Period(),Shift), for multiple pairs, how can you know that you are getting results for the very same bar? Say that you have an EURUSD 1H chart open and at the opening of the new bar you want to load the bar open quote for EURUSD and GBPUSD. double OpenEURUSD; double...
Hi i have created the file mq4 in metaeditor compiling is zero erros i can see the file in navigator window of t rading terminal as well as in metaeditor but i cant see it in c/programfiles/metatrader/experts i have checked. but one thing about the mq4 file is when it try to search the file in...
  Closing Times (1)
Hello, I am new to MetaTrader. Using a daily chart, What does MetaTrader consider closing time? Such as open, high, low and close. What time is close? Thank you
Wouldn't such an EA be impossible? Like trying to find perpetual motion or free energy? If there really were consistently profitable ea's that would mean those ea's could be made to rack up profits exponentially and spiral to infinity in no time. If such a thing existed all the money in the forex...
Recently I'm having problems using the MT4 application for Android - I keep getting "Common error" when I try to open a position. What it can might be? I keep on re installing the app, cleaning cache but I get it over and over again.
Good evening all. I built an EA which is used on an Offline chart. Cause it's an offline, i think the best way to force routine is use While operator. And my CPU show "terminal" = 99% used. Can i use some functions, other of "While" maybe, to reduce CPU used? Thanks :)
how can i make sotoasthic crossover EA im using strategy tune
hello people, I am running my expert advisor, with a couple of indicators helping me develop my entry strategy, but when i backtest it it is running too slowly...is there a way that I can be able to still backtest my advisor but abit faster? thanks
Hi! I want to use GetLastError() on my closing functions and my question is this: If I specify it like that if(!OrderClose(OrderTicket(),LotSize,Bid,Slippage,Yellow))Print("Your order was not closed because...");Do I need to specify it cleanly before the if statement like so,>>...
This code shows position's profit as pips, But when position is close, it's still shows the last profit! I want it to show "0" after close the position (or shows "SomeTex") . What should I do? When I change time frame, it change to "0". I want it change to "0" or some text when position was close....
  VPS for Forex (1)
Hello everybody, yesterday I wrote a new thread (about the same topic) and I don't know why, it disappeared inexplicably. The thread was talking about VPS. I'm preparing to test some EAs to get a good basket and obtain results. For that reason, I need your help to get the best price/quality VPS...
Dear Forum, I've spent the past week reading about MQL4 and trying to turn an excel model I've been working on for about 5 months now into an EA. The thing is, I was using tick data (from http://ratedata.gaincapital.com/2010/ ) and I've only just realised how difficult it is to work with tick data...
MT4 Draw Symbol instead of Arrow , Draw n instead of square Trying to run MT4 at my Window Server 2008 R2 Standard. but seems to have some technical issue with setup.. How the chart look in my Window 7 Desktop PC How the chart look in my Window Server 2008 R2 Standard. Is there anything i need...
I've noticed that very rarely when internet connection falls for a few seconds/minutes, after it is back online MT4 DOES NOT reconnect properly. What happens is that the top triangle at the bottom right of MT4 comes back green, but the bottom one remains red. In the journal tab (log) the following...
Hi i need help from a programmer, who can change little coding to improve the quality,and accuracy of indicators,and also new idea for EA, so please mail the details on appleasapple@gmail.com
Does OrderOpenPrice() return the original Ask price of a Buy order and the Bid price of a Sell order or does it just return the Bid price at the time the order was filled ?
I have an expert for send me notifications in email when my strategy happend i ask my expert to send email I want to open the order so i just send an email the problem is that it send me the email 100 times because the strategy is happened and the expert run 24/7 can i ask to send only one...
I need: if PipValue<0 then Show PipValue color = Red, else color = InfoColor What shall I do? {   string Pip = "PIP";   string PipValue = DoubleToStr(pipVal, 0);   ObjectCreate(Pip, OBJ_LABEL, 0 , 0, 0);   ObjectSet(Pip, OBJPROP_CORNER, 1);   ObjectSet(Pip, OBJPROP_XDISTANCE, 10);   ObjectSet(Pip,...
  choppy trend (1)
hi, may i know what is the best indicator(s) to evaluate choppy(sideways) trends from up/down trend? thanks
Hi! This question is for Ichimoku coders.. When I want to specify the Senkao A and Senkao B values of 1 candle back, do I refer to it as candle 1 or as candle 27 like so:   SenkouA1 = iIchimoku(NULL,0,9,26,52,MODE_SENKOUSPANA,1);  SenkouB1 = iIchimoku(NULL,0,9,26,52,MODE_SENKOUSPANB,1); SenkouA1 =...
Hi. I am creating EA that is built on strategy that requires information from other charts. I wanted to ask what is best solution to start with, because I am pretty new at this. Example 1. Create external database and store information there, it means that I have to build 2 EA s. One that...
Hi, I coded ea to run from particular time. eg:1.00am-3.00am at 3am i find high/low of previous 2 bars using iHighest()/iLowest and store in double dhigh/double dlow. EA works fine. problom is when system retstarts or internet connection fails, the value of dhigh/dlow becomes "0". Is there any MT4...
Good day. Is it possible for a certain EA or script to know certain levels(pips) on StopLoss or TakeProfit on a certain server? Thanks...
OrderSend(Symbol(),OP_SELLSTOP,LotSize,Close[1]-BrStopLevel,Slippage,ssl,0,NULL,MagicNumber,Red);Is it legit or i must specify price creteria in Ask or Bid?
  A basic EA (1)
Hi all, I don't have knowledge in MQL4 programation but I need a basic EA to backtest my strategy. My strategy is very simple : On the DAX, I buy or sell the breakout of the undred lines. For example, DAX is 8240pts, I buy 8300 target 8315 SL 3285 and I sell 8200, target 8185 SL 8215. If the price...