MQL4 and MetaTrader 4 - page 550

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...
Hello,  I was wondering if anyone can shed light on the following error:   Would appreciate suggestions on how to fix it. There is plenty of margin available and the lot size I used is  0.03  Much appreciated, Thanks, B 
How to reduce/limit number of bars in IndicatorCounted? For example: I want to count candles in 5 days of every time-frame.
Hello Please can someone explain why i get this warning when complying my EA. 1 Warning  ...  "no indicator window property is defined, indicator_chart_window is applied"                 (no line number) 0  (no column) 0 I have had it before then it disappeared and I cant figure out what i am...
Hello,   I want to measure RSI of MA. I found this code from code base and try to modify it, is this give me the correct result ? or is this the correct way to do it (because I believe it is not)? My next goal is try to do it RSI of Any indicator data. I saw some indicators can be applied to...
Hi I have following code for adding time gaps between alerts, otherwise tick by tick it creates many continuous alerts. static datetime TimeStamp; if(TimeStamp != iTime(Symbol(),PERIOD_M15,0) && some conditions) { Alert TimeStamp = iTime(Symbol(),PERIOD_M15,0); } But in this code, when then a...
Hi, I cant seem to get the Max Orders to work. (Max Orders being maximum ammount of trades open at a time) A little help please and thanks! Here is the whole EA code [Very simple 2 moving average EA] when the lines cross it trades. #property copyright "Reilly" #property link