MQL4 and MetaTrader 4 - page 555

Hi alltogether, I have a problem with the function Symbolselect (Symbol(),true): it always returns wrong!   I'm using a specially installed Metatrader 4 without any broker connection because I solely want to backtest my strategies here with well defined history data. I do not want to pollute these...
[Deleted]
  MT4 Backtesting 'Issue' ?  (13   1 2)
Hi I wonder whether someone could help me.  I have written, what I consider to be a very simple EA but when trying to back-test this EA using MT4, the backtester seems to work for a few trades and then 'stops' (by running to the end without placing any further trades). It is almost like it runs out...
How to execute trade at the :00 minute of every hour? i.e. 1:00pm, 2:00pm, 3:00pm when conditions are met.
Hello everyone! Unfortunately the while loop you just can not make it work. I would like to run this code. the RSI to candle 1 must be above level 50, now start the while loop that will search the first candle back in the graph is below the level 30. But the desired result is not correct, where am...
Hey,  I´m just programming my ea and have some questions, I want to differentiate between pending and open orders, Since I´m working with pending stopporders and my ea is placing them he should keep looking look for signals as long as there are only pending orders open, but if there´s already one...
Hi, Why in the world does this _ticket=OrderSend("USDJPY",OP_BUY,_lotsize,NormalizeDouble(Ask,4),_slippage,_stop,_prof,_comment,_magic,_expiry,_arrow); always fail with error 4107 in my demo account?
[Deleted]
  RSI Trendline  (8)
I'm trading a system manually that generates exit signals via RSI as seen in the image below. How can I code an EA/Indicator to calculate a break in a trend line like this? RSI Trend Lines
  EA works only sometimes  (11   1 2)
Dear Everyone! I am asking for your help since i wrote a code which does the following: BUY: 4h candle falls below RSI,14=30 then on next 4 h candle on lower timeframe for example 5m everytime when 5-12 EMA crossover to up i buy TP 3 pips, SL 300 pips! Sell: the opposite of buy (RSI,14=70) here
Hello, I am quite new to MQL and trying to create my first EA and I got some strategy where I need to calculate EMA. I am working on 15m period, EUR/USD, calculating on close prices. I got sheet with historic prices where I calculated EMA myself. However the result is different from what i get with...
Why my Indicator (SubWindow) "Object Button" not sticking on indicator itself? If I used my indicator in chart that already have an indicator in subwindow then my indicator object button is showing in other indicators. How can I change my indicator to remember the right place to put the object...
  A problem with iBarShift  (16   1 2)
I want to get RSI value from H1 when I am on other intervals like M15.  I have a following snippet of code in onCalculate method:   int counted_bars=IndicatorCounted(); // Number of counted bars int barNumber=Bars-counted_bars-1; while(barNumber>=0)      { int h1BarNumber=iBarShift(Symbol()...
Im working on a simple 2 moving average EA where when the lines cross over it will sell off the last order and make a new buy or sell order depending on which way the lines crossed. Im getting quite a few errors when I run it, feels like im missing alot.    -orderclose error 4051 -orderclose error...
Why do previously drawn lines on a chart disappear when you leave a currency pair, go to another, then return to the chart that had the lines drawn? Rgds 
  Need a new CPU ???  (96   1 2 3 4 5 ... 9 10)
I downloaded and started installing and here we go, I need a CPU that supports SSE2, what should I do, dear
Hi, I'm trying to calculate one PIP price for closed position, and then calculate position profit, but results I'm getting always differ from OrderProfit(). Please help me correct my code. By PIP I always mean 1/10000 LOT price (even if there is 5 digits precision), I'm testing it in Strategy Tester...
[Deleted]
USD / JPY is certain when it comes to price EUR / USD signals Itnayeo automatically create. ex) USD / JPY 102.177 when EUR / USD Euro will automatically number the Getting able to implement systems available? Source or some examples, please. Obtain and friends as you want to study. Send e-mail...
How can I change the color of every LevellValue/Lines in Indicator (SubWindow)?  Edit: I used SetLevelValue() to put indicator lines in my indicator (SubWindow).
[Deleted]
  Indexex formula  (2)
Hello. Formula of USD index is    USDX = 50,14348112 × EURUSD^-0,576 × USDJPY^0,136 × GBPUSD^-0,119 × USDCAD^0,091 × USDSEK^0,042 × USDCHF^0,036   How to calculate other indexes?   EURX - Euro Currency Index  GBPX - British Pound Currency Index  CHFX - Swiss Franc Currency Index  CADX - Canadian...
Hey Guys, I'm actually programming an EA who should by or sell if he is above or below a specified line. The prices for the specified lines I'm getting with this code: //lowest and highest are datatime values. So I get a two specified bars! //Beginning leftToShiftLowest = iBarShift ( NULL , 0
Hi, I would like to adjust this to open a position based on auto fib object when price pulls back to 61.8% rather than 0 as it does at the moment. Can anyone help adjust this. 
Hi! I'm looking for the way, i can bind object using Date/Y cor. So my object will move with chart left-right, but will not move after vertical scaling. Standart methods allows me to bind only using Date/Price or X/Y cors.  Any help appreciated. 
I download meta trader 4 and the setup name was mt4setup but after installation it was metatrader 5 and i cant add my brocker then i download mt5setup and install it was metatrader 5 shame!
[Help] Weird Level Value in SubWindow Indicator and Other Unusual Behavior. I see half number in minimum level value in subwindow. If I enlarge the subwindow it's disappear. Is it normal?     I noticed that if I switch to other chart then come back again to my indicator the level value is...
Hello I'd like to know if there is a function that return highest and lowest price reached during a period expressed in datetime format (i saw iHighest but it uses the number of bar, not date-time)  Is this possible?  (As I know when the price reaches a level and when it reaches another level in...
Hi Guys, I'm having trouble with one of my sell signals.  The buy signal works perfect but when I turn it around for a sell signal it gives me a False statement the whole time. double MA1L15 = iMA(NULL,15,7,0,MODE_SMA,PRICE_OPEN,0); double MA2L15 = iMA(NULL,15,21,0,MODE_SMA,PRICE_CLOSE,0); bool...
Hi Guys, This is probably a simple question but I've converted my code to run short trades too but for some reason it won't execute any short orders. Could someone please help? I am sure that the short order is just in a wrong place? The code is written specifically for EUR/USD  Any help will be...
Hello. Ihave problem with getting time values for bar in higher timeframes. I'm testingmy expert advisor in tester and when I try to use function iTime with PERIOD_D1parameter I always recessive value 1970.01.01 00:00:00. Also GetLastError methodreturns "not enough memory for history data" message....
hi, im trying to code a basic expert advisor . at the top of my code I have written extern double Lots =100; so that sets the amount of lots my expert advisor trades with to 100 lots . I want to change this. my question is , how can I code my expert advisor to trade the maximum amount of lots
Did you know XM mt 4 doesn't work with VPN on mac? i cannot believe that