MQL4 and MetaTrader 4 - page 1149

Need a little help. I was looking for an EA or Scrip which writes the statement trade information to a CVS file. I am not a programmer, but looking for a sample EA or Scrip I use as a template. Thank you.
[Deleted]
Ask yourself… 1- Can the risks to your business be identified, what forms do they take and are they clearly understood - particularly if you have a portfolio of activities? 2 - Do you grade the risks faced by your business in a structured way? 3 - Do you know the maximum potential liability of each...
[Deleted]
I'm creating my first indicator in MT4. I think I tracked down where my bug is, and the 1st thing I notice has got me stumped. The first time my indicator runs on Period_M15 the Bar # is 65001 (option max bars in chart is set to 65000) and Time[65001] shows 1970.01.01. BUT I'm looking at the chart...
OK, before you all jump in . . . I know iBarShift CAN return -1 if I set exact to true and there is not an exact match . . but I didn't . . . here is my code. OpenBar = iBarShift ( NULL , PERIOD_M1 , OrderOpenTime ()); if (D3) Print ( "OpenBar = " , OpenBar, " OpenTime: " , TimeToStr ( OrderOpenTime
[Deleted]
Is it possible to get what parameters were used in adding an indicator to a chart? If a user adds the RSI indicator to a chart, is there any way for my Custom Indicator to find what Period & Level(s) the RSI indicator is using?
[Deleted]
I'm new to MT4. Is there any reason I should not write a "time()" function (lower case "t")? I'm tired of writing "NULL", all the time. datetime time(int iBar, int pTimeFrame = 0)   {      if (pTimeFrame == 0)         return Time[iBar];      else         return iTime(NULL, pTimeFrame, iBar);   }
[Deleted]
Dear All, Our company would like to explore development of plug-in modules for the MT4 platform as one of the possible ways to expand our business. In order to evaluate what it takes, we tried to find any available technical documentation but found virtually nothing. So, we decided to post our
When I do backtests and get highly implausible results, including trades being executed at prices outside of the range at the time in question, I am drawn to the strong suspicion that there is at least one serious bug in the backtester. I believe part of this error is that somehow imported data gets...
[Deleted]
In forex since 2007, at the moment has accumulated a set of potentially profitable TS, Terms of Reference (ToR) for their programming can provide, samples of such ToR can be seen here and here . From the programmer is required: 1. the ability to work to TOR; 2. the desire and ability to quickly
[Deleted]
Bizarre problem -- maybe one of you geniuses can solve this: Three computers, all running 3 or 4 instances of MT4. All would send email alerts to my cell phone without fail -- until about 2 wks ago. ONE of the computers ceased to send out email alerts to my cell phone. The other 2 still work...
Are the iHigh or iLow functions or variables? I have charted the high minus the low for a currency using an array. ExtMapBuffer1[i]=High[i]-Low[i]; What I am attempting to do is take the 5 minute high for the EUR_USD and subtract the 5 minute low for the JPY_usd. With this in mind I have made the...
All, I am developing a Custom Indicator and had the following queries. I use two buffers to draw the line indicators. a) Possibility / Workarounds available to draw a line indicator on a single bar, ie the start point and the end point of the indicator line will be on the same bar...
Hi I have started reading the mql book It would appear that some of the language in the book requires me to understand other computer language, as I'm not fully understanding what I"m reading So the question is: Since there does not appear to be extensive information available to learn mql4 in baby...
Hi, I'm reading the Book/Documents and the articles on this site. I'm not completely understanding the built in Bars variable Also I'm super new to programming so much of what I'm learning I have to constantly reference C++ sites to learn those topic first and then come back and re-read what I...
I see video where the presenter will click on one point a chart, and move the other end somewhere else, and it shows what the pip difference is. How do they do that?
[Deleted]
Does this indicator formulae already exist and if not, could someone kindly code it for me please. (Close-Open)/(High-Low)*100 I would like it displayed in a seperate indi window, with an external variable for period.
[Deleted]
  put TimeFrame into variable?  (11   1 2)
Is there a way to put a TimeFrame into a variable? int myFunc(TimeFrame aa)   {      return(iBars(Null,aa));   }      
hello,i will appreciate if any one add trailing stop to this EA,just trailing stop and break even please helpthanks roulette-king@web.de
[Deleted]
  range bars  (4)
does anyone know where to get range charts for mt4
[Deleted]
  price line MA ??  (1)
anyone knows which MA can best indicate the priceline ? EMA 5 ?? EMA 4 ? THANKS IN ADVANCE
New article 3 Methods of Indicators Acceleration by the Example of the Linear Regression is published at mql5.com: The article deals with the methods of indicators computational algorithms optimization. Everyone will find a method that suits his/her needs best. Three methods are described here.One...
[Deleted]
Hi, Anyone can help how to write a code for price crossover MA ? Only open one position for the zero bar during crossover. Thanks a lot !!!!!
[Deleted]
Hello, I need accept only 1 trade (buy or sell) per 1 day (no more). Pls write me code, thx
[Deleted]
Hi! Ok, basically, I need to know how to open a certain URL, so I can send some information through it (the other end is going to receive that information through PHP's GET method). So, the idea is opening an URL using a String. How can I do this? Thanks!
I have a DLL that exchanges data between 2 instances of MT4. It works for about 5 mins, then the DLL locks up; i think. All I know is the data is "frozen" in the MT4 terminals. I'm attaching the experts (1 for each terminal) the cpp and def files. The DLL is compiled in VS2010. all running on...
[Deleted]
  script calls  (1)
Hello. I have a basic question in mq4 scripting. I have already a script that creates a Pending position with S/L. Now when that pending position goes active entry into the market, I would like to call the same script again, for a new Pending with the same criteria (new entry price same pending...
[Deleted]
int myFunc( int & myParameter) { int iVal; // my code return (iVal); } I want myParameter to be passed by reference, I would also like it to be optional, but I accept that I can't have it all. When I don't need to pass a value to myParameter I try this "myVal = myFunc(0)" and I
[Deleted]
I'm just learning MT4 and modifying an Indicator from someone else. I notice that the original author eliminated an awful lot of spaces. Specifically he used if (Counted_Bars< 100 ) instead of if (Counted_Bars < 100 ) I think that putting the spaces in makes it easier to read and debug. I recognize
[Deleted]
I tried doing a search buy I keep getting an error, so I'll post my question and hopefully someone can point me to a thread that answers it. I have an indicator that I'm modifying (it's my first one). It keeps locking up MT4 (an endless loop maybe) and I have to use the Task Manager to shut it down...
[Deleted]
Is there some way to create a function that will allow me to pass an unknown # of Formal Parameters like StringConcatenate()? Specifically I get tired of typing "StringConcatenate" with 2 spaces in between each parameter. I would like to write a function "SC()" that automatically puts 2 spaces in...