MQL4 and MetaTrader 4 - page 41

To post a new topic, please log in or register
Hi, I've searched the internet in general and this forum and I cannot find an answer to my problem(s). I am trying to run an EA (M1) in the Strategy Tester (ST) and have an offline chart (M5) update beside it but I am getting no-where after several weeks of trying to figure this out.  HELP! Select...
Hi guys, I'm trying to debug my EA on history data and the option on the menu is always disabled. I see it works fine with real data. I already did the necessary setting under Tools -> Options -> Debug tab and the menu option is still grayed out. I found some old topics about this subject but they...
I am trying to download historical indicator data and open/high/low/close values to a .csv file.  When I run the following code on an offline GBPUSD 5 minute chart (see screen shot) I am not getting the values I see in the chart.   Here is the last line in the .csv file which matches the datetime of...
Hi Newbie here... I'm trying to write an EA that returns two values from a function. Can't seem to get it working... Any help will be much appreciated. Thanks.
Hello,  i am having trouble with my trades. I dont know if it's the EA or the broker am using that causing me problems. All my trades are opened 4 to 5 pips away from the previous bar's close. I understand there's slippage but 5 pips away from the close is just too much. the ea reads a decision from...
Grid switched off as default when opening a new chart. If possible i want to customize the default color of candles too.
Hi everyone, I need help to build up my strategy. I used that Idea with manual trading andit`s profitable. So now I need to have it automatic. I would really thankful if anyonecan code given below strategy. Basic Trading Strategy : # Check previous candle high value. Place pending buy order...
Hi, For the past week weeks I have been observing very weird look of candles on different trading symbols' charts. The problem seems to be that candles don't even form or barely start to form correctly. I haven't seen any major internet connection problem with MT server so I don't understand what...
  Order event (1)
I would like to know to handle an order event. For example, when an order is close then it will automatically alert a message. Thanks!
Hello all, my question is if this function is stated correctly? int Pips(){                double Pips = Point;             if(Digitos == Cinco)         {           Pips = Point*10;            return(10);          }        else if(Digitos == Cuatro)         {            Pips = Point;...
I've got an EA set up against a demo account (and then uploaded to the MQL VPS service) It should be using iHigh and iLow based on the first Candle to determine a range and then uses these as SLs (plus a few pts) to set up 2 orders But as you can see from the picture it seems to be using wrong...
Hi, can someone explain me difference between "Bid" and MarketInfo(Symbol(),MODE_BID) ? I used "Bid" value for some open positions and when I wanted to check opened position with OrderSelect it didn't find it and that order was opened with that price "Bid". After that I started to use...
i can not able to create OBJ_ARROW in  indicator_separate_window. But i can able to create OBJ_LABEL. please help me to fix the problem. I found reason for that. OBJ_ARROW still at Time 1970.01.01 00:00 and Value: 0. it not taken OBJPROP_XDISTANCE and OBJPROP_YDISTANCE. my codes is: #property...
Hi all, I have download mt4 from MTrading, it work well but is not perfect. Now I'm trying to add a new indicator (advanced adx) but when I drag file into the folder it's not possible to drop it, it's like mt4 doesn't recognize the validity of the indicator that I want to add. I ask you if someone...
Hi Found a strange problem... The strategy tester works fine on 4hr chart but as soon as I want to test it on 1hr. It runs but has absoutely no result. Running the same EA on visual mode does actually create trades so it does work but for some reason on 1hr chart just doesn't give me any data to...
Hi there, can anyone inform me how to have two MACD indicators with different settings in one window on MT4 please ? Many thanks
I would like to know that , Can I call a variable in a ex4(Libraries) into mq4 file ?  For example : If I put this in Libraries and compile it  //+------------------------------------------------------------------+//|                                                        Happy.mq4...
  Currency heat map (153   1 2 3 4 5 ... 15 16)
CP6 directed me to a site with something like this on their web page, and asked if it can be made as indicator. Well, here it is (changed their approach ) PS : if you, by chance, get a display like on the lower displayed indicator, download and install the MS LineDraw font in the attachment and...
Hello, I´d like to humble request if any of the coders in this forum can help me : In my trading i use cycles ( with cycles i mean i hedge some positions in order to breakeven the trades). I get the attached indicator which is excellent to provide the breakeven level , although as i can have...
Hello, Some help needed on the code below. The EA gives me a different stop loss on each trade yet i want to be fixed at 10pips for the 1hr timeframe. I dont know if it's the sleep function causing it or it's something else.input double MaximumRisk   =0.012;//--- parameters for data readinginput...
Hi, I'm trying for the first time to write an indicator, I have a function that works, like a sort of "density" calculation, but converting it in similar indicator still not working...maybe i still miss some passages, function double density(string currency, int timeframe, int period, int...
Hi all, I try to create my own indicator. Part of my indicator has to calculate the average value (example for last 5 bars) from CCI. int start() {    int counted_bars = IndicatorCounted();    if(counted_bars > 0) counted_bars--;    int limit = Bars - counted_bars;    for(int i = limit - 1; i >= 0;...
Hi Can I Add Account in my profile which uses Oanda MT4 server? The reason for this question is that I could not find it on the list of the server when I type "Oanda". Thanks
Why this is happened to me help please 0 error(s), 17 warning(s), compile time: 114 msec 1 18
What is the best way to calculate prices/volumes "every 1 day" in any timeframe? My idea is to count candles for 1 day, for example in 15 mins timeframe there's 96 candles. It means 96 candles is 1 day of data in 15 mins timeframe. I'm thinking till now if this is correct way or if there's an easy...
hi, i'm interested in optimizing EA's for accuracy rather profitability - particularly I want to optimize for higher % successful trades vs losing trades as shown in the strategy testers report (% of longs and shorts won) My reason is that I'm ultimately more interested in the long term accuracy of...
Hi there, I just found a bug in drawing an arrow by using the "OrderDelete()" function. Maybe somebody can check if it is a bug or a feature :). First the system specs: - Windows 10 PRO 64 - MetaTrader 4 v1090 What happens?First I place pending orders - fine! Then I delete them with OrderDelete() -...
I have downloaded the Free PSAR to test but am trying to change the parameters. Is this possible and where can I do it ? I cant seem to open it in the Editor ? Also I wanted to use the PSAR to execute INTRADAY rather than at OHLC would this be possible ? Thanks   
Hello Community, I have built an indicator which sums up the values of the ADX ad Aroon indicator and writes it into an array called "sum[]". Now i want to colorize the bars in the chart depending on the indicator value. Is the indicator value above a certain limit (double ext trendlimit) the bars...