MQL4 and MetaTrader 4 - page 551

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 
I have noticed recently that the indicators (of MT4 in the market) can be demo tested in the strategy tester. I downloaded the latest MT4 (build 765) from metatrader4.com. However, I do not see any change in the strategy tester similar to what MT5 lets users to test the indicators. Does anybody know...
Hi there,   Just a question to make me understand for a bit how Metatrader works. I am confused about how the indicators are used. So any clarification I can get is more then welcome :)   Question: I notice that for example, if I call the MA indicator just once in my entire EA, it will still show up...
Hello, I know that it is possible to have a 10 tick time frame indicator, but does anyone know if there is a way to basktest an EA on a 10 tick time frame ? I did not read anything about this.    Thanks for your answers. 
[Deleted]
Hi All. I have an EA based on EMA crosses in multiple timeframes. I want the EA to draw all of the EMAs I am using on the chart that it is attached to when I attach it. Planning on having it change colours based on trend conditions etc. I couldn't many instances of this or much help, not sure...
hi I want to only open 2 orders every day. But i don't know how to count only the current day's orders. to be more clear, I should count today's opened orders before opening a new position. if they were 2 then stop opening a new order for today. Please help me in this piece of code. Thanks
Hi  Have search a lot, but unable to find anyanswer..  I want to make an optimization towards highest(and I hope I use the correct terminology) regression. That is, the most “strait”Balance / Equity curve. To not trade at all would of course give highestvalue :D.. Any suggestion? Best Regards /...
  What is wrong?  (8)
Hi I wrote an expert to open two position at the same time. and close them when the total profit/loss of the two order reach the profit/koss target. User can enter the symbol names and type of two orders as input. I did this: input string   FirstSymbol="GBPAUD"; input string   firstaction="BUY";...
Hello, I am attempting to modify a TMA centered indicator and could use some help. As the indicator stands now it plots points where price breaches either of the bands. The logic I am attempting to implement is fairly simple: If two consecutive breaches (the teal dots in the picture) of the upper...