MQL4 and MetaTrader 4 - page 284

Hi, When debugging EA's, you have the handy-dandy Expert tab to send Print() output to. Is there an equivalent way to easily output values when debugging indicators? Cheers and thanks.
I cannot seem to find an option on how to change the time. The candles are 2 hours in advance. When I installed MT4 I was in a different country that was 2 hours ahead. Is there an option to change the time, I wouldnt want to reinstall MT4
I planned an EA trading with grid.i explained grid like this: bool buypoints(){double m[201];for(int k=0;k<=200;k++){m[k]=NormalizeDouble(((uppervalue*1000-steppips*(k+1))/1000),Digits());//uppervalue and steppips are external values for usd/jpy.if(m[k]==Ask) return(1);}} if (buypoints()&&some...
Is it possible to apply custom indicators to mobile metatrader? Is there anyway at all to import custom indicator into MetaTrader 4 Mobile? As far as I know you can't, but I was wondering if there have been any updates or custom updates that allow custom indi? If can, How can I load custom...
I use current month+ current day+account number as a seed for MathSrand() to generate a pseudo-random magic number each day. I would want to be able to look at trade history and create a report of all trades that hit SL (for example), so I would want to get a new seed for each day in history to be...
Is there a method to capture an objects name from the cursor position? All i seen to be able to capture is the price and time I was thinking something along the lines of placing the cursor at Time1 and Price1 and then iterating through all the chart objects until I find a match for Time1 and Price1...
Hi i`m trying to build a trailing stop, and it's working fine but sometimes i get a nasty order modify error 1.I don't know if it's harmful i've read the documentation it is when the value is unchanged i guess,but the question is how to resolve it :D .Hew is my code: double TRAILSTOP;extern int...
  Excel bridge  (4)
Is anyone aware of a MT4 script which would read from and write to Excel?   I know that there's one product easily found with googling.   But the reviews aren't that great.  I can get python or other code written for this but I assume someone else already has the pieces. Thanks
  Brainwashing EAs  (287   1 2 3 4 5 ... 28 29)
Statement for Brainwashing 1c, H1 timeframe. 4 main pairs. This is Brainwashing EA with i_Trend filer. This i_Trend indicator is used for enter and exit as well. It was estimated during the development of this EA to catch big trade. The level of i_Trend filter should be estimated once per week but I...
Hello all! :) I need loop for this, it is strong to me... I want to find the range for the last two bars and search for 5 bars And get the result in print, please check picture for understanding. better to explain I do not know, so I believe it will be understandable from picture. I need this...
[Deleted]
Can somebody tell me how to turn that annoying sound off?????? I've disable all 'alert' but that disgustingly annoying sound keeps beeping every 2 to 3 seconds. Help!!!
Hi, not sure if this exist, but am after a RSI level alert indicator (currently using this indicator) but am looking for one where the alert can trail the actual position. In example, if RSI hits 50 as an example I set me alerts 15 and 85, but if RSI moves to 60 then I want my alerts to change based...
Hello mates I am new at MT4 I made some orders on MT4 but now I can't close my orders. Please help me. I want to know how to close an order on MT4. thank you. Asad Jamal
Hi, Firstly I would like to emphasize being aware that possible solutions are hiring a developer in Freelancer section of your forum or looking at Marketplace of available custom tools. I already reviewed everything in Marketplace, however needed giant tool is not there. Would like to enquire about...
I'm looking for a very good web host who offers MT4 hosting on a VPS any suggestions?   
Hi, I am curious to find out: Those indicators / EAs that display text and lines which are not clickable or draggable, not the standard MT4 text labels that you can right click for properties or drag them around, how do they code those?  Thanks!
I want the code to ensure all trades are closed.  Will this while loop function?  Do I run the risk of becoming stuck? bool result=false;   while(!result && !IsStopped())   {      result=true;      for(int cnt=OrdersTotal()-1; cnt>=0; cnt--)      {         if(!OrderSelect(cnt,SELECT_BY_POS))...
Hello, I just coded an EA and I'd like to add a Trailing SL to it but I'm not sure if MQL4 includes a function for that.
  Help with my EA.  (33   1 2 3 4)
I just ended up a MQL4 course and started to mess around with Meta Editor, just a simple MA crossover EA, but I'm having a few problems: 1- I want the EA to open a trade on the next crossover, not on the current one. 2- I can't get the EA to close the first order and then open another one. The...
hi, i want to access next values inside a loop. As an example i = 100, 90, 80, 70, 60, 50, 40 for(int j=i; j>=i; --j)            {} inside this for loop i want to use, get 100 and 90, get 100 and 80, get 100 and 70, get 100 and 60, get 100 and 50, get 100 and 40 etc.... Next i want to use it like...
//+------------------------------------------------------------------+datetime send_ha_order_bartime;//+------------------------------------------------------------------+void send_ha_order(ENUM_TIMEFRAMES ha_TF, double lots,int magic)  //{int stop_level=(int)SymbolInfoInteger(_Symbol...
  Trend look back  (4)
Hello everyone, I just started this code today, but I'm having some problems understanding the error message. "could be one of 3 function(s)"  isn't particularly helpful.  Some ideas please. void Draw_Trendline()  {   datetime StartDate=TimeLocal();   datetime FinishDate=TimeLocal();   PriceClose =...
Hi! I would like to create an indicator which can show two line of two different currency pair in the same time. I've created the two timeseries, adjusted them togehter, but the indicator show only one of them. What can be the problem? #property copyright "Copyright 2017, Roland Szarka."#property...
  Volume  (4)
What is this volume here?
Hi friends, Is there any indicator in the market which is free... that shows a Bar close at how many % of the whole body?  When my mouse point at that bar, it will review at the right top side of the Chart. Very small with number percentage showing in colour Setting. Red = Bear  Example 40% Green =...
Please, I have a little problem on my MetaTrader 4 app on my android phone. I mistakenly removed my indicator window on the chart section of my MetaTrader 4 Platform on my android phone, now only the main chart window displays on the chart section. I want to bring the indicator window back. Where do
HI together! I want to write eg the spread in a csv file line by line for different times (eg every 10 min), but cannot set the pointer to the correct line (= the next free line). It always writes the data into the same line. nevertheless i can read an open the file with notepad or Excel. But I...
All my experts do not work under 600 Compilation... what did you do? What should I do in order to work under my old mq4 files? I need Meta Trader 4 editor not Meta Trader 5 editor.
Im getting this 1 error after compiling, I am new with MQL4 coding, Can anyone see the problem so I can correct it ? Thanks 'interval' - undeclared identifier Test 1.mq4 81 38 see attatched picture
  Trailing Stop  (5)
Hi All, Any suggestions and/or criticism for why my trailing stop isn't working? void TrailingStop(){      if (OrdersTotal() == 1)   {      for (int i = OrdersTotal() - 1; i >=0; i--)      {         if (OrderSelect(i, SELECT_BY_POS, MODE_TRADES) == True)         {            if (OrderType() ==...