MQL4 and MetaTrader 4 - page 729

int i;                        int  x;                        double BBI[];                        ArrayResize(BBI,20);                        double sum;                        double std;                        double upr;                        double dnr;                        double...
[Deleted]
Hi all! I have a problem in MQ4, that if I call iMAOnArray on an indicator's data (for example Awesome oscill, or Bulls), it doesn't return the same value as the same (exponential 3) MA that I put on the same indicator by hand. The difference is about 0.03 in both direction. My code is (for example)...
If i want to capture Bar1 (closeprice), Bar2 (closeprice), Bar3(closeprice), and Bar4 (closeprice), how to write and what command suppose to use? Somebody can help...Thank q
please help me?? how to make a Fibonacci as shown below, in order to format .mq4,do not auto. thank you
Can anybody code for me a Technical Indicator in a separate window that can tell me the maximum spread Bid/Ask difference that was available for a given candle while trading. It should support all Timeframes.
[Deleted]
Hi! I've been writing and testing my EA on 4 digit broker (insta),and everything worked perfectly,today I've opened pepperstone demo account and it places pending orders too far ... Now, I am a little stuck because I have a function that "adjusts" my ea to any broker(any number of digits), but for...
Hi, In the history center it possible to download quots data with 1M resolution (1 minutes) The strategy tester which works on this downloaded data may be used in "Every tick" mode. In this mode the EA is called on every tick in the history (many ticks per minutes). So how does this "every tick"...
hello, i've been working on a TI that write hist files as range bars. the first version works fairly well but i came across a problem in build509 that didn't arise in previous builds (i think). i was aiming to have a profile with pairs colecting data and building hist files acordingly, in previous...
I write some detect ticket's fuction,but,the forex price have refresh,but my EA not fast run,result my ticket not fast close,why
[Deleted]
  Wrong value in data window  (11   1 2)
Hi, I've encountered a strange behaviour with the display of an indi: The attached screenshot shows different values for the thin red line: the value shown in the data window and in the cross hair is 100.28. While the value shown in the y-axis of the chart is 100.58, which is the correct one. For...
Hi, Can any one tell me how to get OHLC data from mt4, I want to save OHLC any time frame say 1 min or 5 min. I am using MTFOfflineChart5 to collect data in CSV it's working fine and giving me realtime Time,bid,ask in CSV format. But I want OHLC data directly from mt4 either in CSV or json...
[Deleted]
I am writing an EA that uses 4 separate Take Profit levels, so I am using the following code to enter the trades. sv = InitialStopLoss*Point;for (x=0;x<4;x++){   tv = Ask+targetValue[x]*Point;                        longTicket[x] = OrderSend(Symbol(),OP_BUY,tradeSize[x],Ask,slippage,Ask+sv,tv,""...
Hi, please help me. This is what i want: I open order on bar. After 3 new bars, this order will auto close
Hi all, One question, on mt4 on bottom right where is the symbol of connection satus some times this symbol is half red and half green other times is all green. Could you tell me what these colour differences are all about ? Thank you in advance Luis
I made this function to normalize price if it needs to be rounded for pairs like gold with ordersends... What do you guys think about it? Have I gone about it correctly?   double normalizeprice(double price)   {      if(MarketInfo(Symbol(),MODE_TICKSIZE)>MarketInfo(Symbol(), MODE_POINT)) {...
[Deleted]
can i choose the account name when i sign up with a broker or can i change it later on ?
[Deleted]
hi i am placing tp\sl but gets an error invalid stops even when there is a difference of one pip following are some log EURUSD,M1: Sell Order Modify failed with error invalid stops EURUSD,M1: Order open price = 1.32034000 EURUSD,M1: Calculated Stoploss = 1.32048000 | Calculated TakeProfit = 1...
[Deleted]
Hello, There are predefined variables such as Bid and Ask. What about the symbol? Is there a variable for that also? Thanks
[Deleted]
OrderClose(OrderTicket(),..... Sometimes my EA cant close an order. If the system has lost the ticket number, how can I close this order? I need a function like CloseOpenOrder()
[Deleted]
Hi, My EA has a function that does Take profit and a certain points stop loss which is passed in OrderSend. So in my OrderSend for example, TakeProfit = 0, StopLoss = 50. Now I want to identify if a particular order was closed due to take profit function or stoploss triggered. How can I check this?...
[Deleted]
Is anybody notice USDJPY chart has one more bar at the same chart scale? I think this is a bug and I believe this bug isn't exist before Build 482,but I'm not sure.I didn't notice this before until my EA occur strange problem in USDJPY.
Dear guys, I know there lot of topic in this forum about dll. I just need a suggestion which program language easy to learn for me. I am C# coder. I am well know about C#. but MT4 does not allow to use C# dll. Does any one give me suggestion which program language I should learn.
I have no idea why... There is no problem with the functions isLongTermTrend() and isHigherThan(), because I use them in an EA and they work fine there. //+------------------------------------------------------------------+//| LongTermTrend.mq4 |//| Tosh |//|...
I need assistance from anyone who already have the indicator or who can modify/make something that works as follows, please: I need an alert(sound, arrow) whenever the price touches:- 1) 5 EMA high or a 5 EMA low of the 4hour chart and the daily chart 2) 28 EMA close of the 4hour and daily...
[Deleted]
  INDICATOR NEEDED  (3)
Hello to all in the community, I am a newbie be to forex trading. Please I need help with any indicator that can place the chart of two (or more) different timeframes of the same commodity in the same window i.e. a kind of overlaying. Like Place a EURUSD 4hr chart inside EURUSD 1day chart. Thanks.
Hello, For a while now, I have wondered if there is a way for an EA to add objects to a chart that does not have the focus? For example, let's say you have 6 different chart windows open, and then another window for your Expert Advisor... I would like the EA to cycle through each of the 6 windows...
Hello. My expert advisor uses an external dll library, which in turn loads external data. I need to draw some of it on a few charts. I guess it would be easiest to make an indicator that simply reads arrays of values from the expert, using something like an inverted iCustom. Could you tell me what's...
[Deleted]
Hello, I am completely new to this forum. I am looking for a place to report the following bug in MQL4: Consider the following simpliflied code: //*************************************************************************** #property copyright "Copyright 2012, MetaQuotes Software Corp." #property...
Folks, I am trying to make a moving average alert such that when price hits a certain exponential moving average, I get an alert. Say for example, on a 15 min chart, I plot 10,20,30,40 EMA. So everytime the price "touches" any of the EMA, I get an alert. Can a kind soul help me to develop this...