MQL4 and MetaTrader 4 - page 974

How can I get the current Table Height and Width I can not find any Windw Function do that? WindowPriceMin and WindowPriceMax() is not I  want . please help me.  thks    I just want to know  how to get  the tow Bars  Close price angle   see the map 
[Deleted]
I have export the follow data ,then run the EA, the error is : 2012.11.20 11:25:34 2007.09.09 12:51 USDJPY,Daily: OrderSend error 4111? how i can do
Hi, How to refer to News under Terminal on MT4 platform using MQL4 syntax? Does anyone know if this is possible? P.s.: what for? because I would like to realize my expert advisor, when will get some information for a given currency pair in the new message from macro and micro economic subject ......
Hello, I'm working on the MACD script for the Expert Advisor, that I would like to run every minute and receive an alert when conditions apply for 1M, 3M, 5M and 15M charts. I have following script 'Forum MACDcrossAUDD1.txt' attached for which nothing happens when I run it/ put it on a chart. Thank
[Deleted]
Let’s Make Year 2012 a Great Year FOREX TRADING Wow! Can’t believe it but we are now in Year 2012! How time flies, and it was only like a day ago =P(truth is a year ago) where i asked What’s your new year resolution? Read this post: http://www.<link deleted>.com/whats-your-new-year-resolution/ SO!...
Hi,  I am searching for an indicator that sends an email as soon as price touches the below price levels. Prior week high. Prior day high. Prior 4 hour high. Prior 4 hour low. Prior day low. Prior week low. Can you please let me know if there is an indicator like this. Can someone build this for me...
[Deleted]
Hello, I'm a developer (not MQL) and I need to implement a simple Algorithm for a friend. The algorithm needs to create an order, constantly check if the order is closed by stop loss. If is stopped by stop loss I need to create a new pending sale. The user must manually close the order when stop...
[Deleted]
If my EA tries to send and order, and the order is rejected because there is not enough liquidity in the markets at that time (usually large orders), is there any way of knowing that that's the reason for the order being rejected? Because if I know that that's the reason, I can simply code my EA to...
[Deleted]
Hello everyone! I'm writing an EA now for MT4, and here's a very strange bug i found. Here are lines of code it has (not exact, but you get the idea); while (condition) {Comment(" Macd1 :", iMACD(Pair_0,PERIOD_H1,1,25,1,PRICE_CLOSE,MODE_MAIN,0), "Macd2:"
[Deleted]
  Exploit Strtotime  (29   1 2 3)
Hi guys :), so i want to create an EA which use string values to define a time which allow open a position. Real example: extern string  TimeStart= "10:00";datetime TL= TimeLocal;datetime Time-S;Time_S= StrToTime(TimeToStr(TL, TIME_MINUTES)+" "+TimeStart); I want to know how exploit this like that:...
  Multiply by -1  (5)
I want to multiply a variable by -1 (minus 1), to pass the value from negative to positive... variable1 = variable2 * -1; but I get a compilation error (unexpected token), is there another way to do this?. Thank you.
Hello, I am new to this forum and it looks like a good place. I wonder if anyone can help and apologies if this has been asked before but I can't find it anywhere.  I have coded a fairly basic ea and it runs fine on the strategy tester with eurusd but it just won't take trades on any other pairs and...
  MACD indicator  (11   1 2)
Good afternoon, I'm using MT4 and specifically I like to use the MACD indicator (among others), but need a clarification ... someone could explain that mean and how numbers are calculated (sometimes positive, sometimes negative) , appearing on the MACD when you put your mouse over one of the bars...
[Deleted]
Hi guys, i want to know how build an array serie (i think) of period? HighPriceM30= iHigh(Symbol(),PERIOD_M30,1);LowPriceM30= iLow(Symbol(),PERIOD_M30,1);HighPriceH1= iHigh(Symbol(),PERIOD_H1,1);LowPriceH1= iLow(Symbol(),PERIOD_H1,1); The aim is simplify the code. Maybe it is not an array what i...
[Deleted]
Can this be done on MT4? If it is how? Thanks in advance.  
Hi, newbie question: If I have an EA attached and running on chart A, then I tweaked the code, recompiled and attach it on chart B, will it affect EA on chart A?
[Deleted]
Hi, If you think you have enough in you to code a very complex trading and indicatorsystem for MetaTrader 4, and you want to earn very serious money using your MQL4knowledge, now it is time! Please send an e-mail message to snaipear at freemaildot hu to receive more information. I'm looking for...
can we backtest an ea with dll imported or not?
[Deleted]
  Close at percentage loss  (13   1 2)
I have the necessary code that allows open orders to close once the predefined percentage of profit is reached (below). I can't find any command in the dictionary that would perform the same function to close at percentage loss. CloseLossPercentage is not a recognised command. Any help please....
Hi all, I am coding me new breakout system and I have little problem with it. I need two lines, one for low, one for high. I want to take this high, low from 5M chart between 9 and 10 hour. Can you help me? Thank u soo much   LukasFX 
[Deleted]
I am using an EA as an alert indicator, that also adds an arrow on chart, when conditions are met signal is given.  I dont understand code about counting bars, i just want the alert given at the tick by tick instance, then not repeating, so wait to next bar or 1 signal per bar.   I can post the file...
[Deleted]
Hi,   Is it possible to get the active chart type (line, bar, candle) from code?   Thanks! 
[Deleted]
I am sorry if there is another thread like this in the forum. I just couldn't find it. My question: is it possible to create EA that will export data like "profit", örder symbol", "equity" in .xml format to web site? Is it possible to do this without the build-in ftp servise? Thank you!
Does anyone know the function or combination of codes for creating a mini-chart? Images below. I have the website and .ex4 for the indicator of the second image. Any examples like something in the code-base would be very helpful. I cannot find any myself.    
Could anyone help me to figure out how to extract the parameters sets from a custom indicator? The Data Window show Value, Value2, Value3.  A buy signal returns a numeric Value3 greater than 0 and a sell signal returns a numeric Value/Value2. [CODE]double sig_buy=iCustom(NULL,0...
Hello. I am trying to implement a strategy to an EA ,  is based on fundamental news ,  opening 2 pending orders before the news BUY and SELL with stop loss of 6 pips and TAKE PROFIT (open), , lets say the event is at 13:00;00 GMT but I want the EA open these 2 pending orders at 12:59:45 If the...
Hi, sometimes I send order, then it is on  server  and after one minute  I get error 128 (TRADE_TIMEOUT). Is it possible that I get ticket equal to -1 and error 128, but the order is opened after some time ? Or after I get error 128 order is deleted on server? Thanks, Piotr
[Deleted]
  help code please  (16   1 2)
Good afternoon. I hope this time you can help me :-) Here is a piece of code, this code only works on the pair lying on the graph. but I need it to work on any pair. example is my indicator on GBPUSD fonctionneras this code very well now I'm on GBPUSD and EURUSD parameter I put the it does not work
I use custom time frames using the Period Converter. My issue is on Sunday night when the Forex opens for the week, all of my custom time frame charts start their bars when they didn't finish their cycle Friday afternoon. A 5 hr chart might be only a couple of hours into its cycle all but to renew...
[Deleted]
Greetings everyone, I have a quick question. I'm trying to rewrite most of my indicators so they work through history (I want to use them in visual testing through history - sort of forward test) and I'm having a royal pain regarding the TimeCurrent function. Seems it works in a way that if you're...