Download MetaTrader 5

MQL4 and MetaTrader 4 - page 1283

To post a new topic, please log in or register
I have a need for a function to call itself and the number of times that itmust do so cant be easily determined before the first function call is made.    Does MQL4 allow a function to call itself (this capabilityis known as recursive calling)???
Hi. I am trying to pull up the sum in dollars of all closed orders in history thatwere from this single EA. After #property link I have extern string EAName = "MyEaName"; double closedProfit = 0; somewhere after int init() I have int i,hstTotal=OrdersHistoryTotal(); for(i=0;i<hstTotal;i++)...
  a bug
Sometime they are a bug when you draw a trend line, it's a different trend linein some time unit
I trade threw FXDD and I’m looking to generate a transaction log at the end of each trading day that gives mea log of all trades in addition to this information: Previous Ledger Balance, Closed Trade P/L, Deposits/Withdrawals,Balance, Floating P/L, Total Credit Facility, Equity, Margin Requirement,...
NorthFinance support tell me that this error is not thier problem? 2007.01.11 18:29:18 '30947': trading by experts is prohibited My Journal Log is full of these errors and as much as I try and tell NorthFinancethat the problem is on thier side, they insist (Gavin from Support) that the problemis a...
Hi. I need to know if datetime is represented as a signed or unsigned long. The typedefinition doesn't say. I'm assuming it's unsigned. BW
Hi, I wrote an MTF Envelopes indicator and it works... sort of... if the line //#property indicator_separate_window is uncommented then it will work just fine, displayed in a separate window. But with this line commented, it simply draws nothing. How do I fix it? What am I forgetting?
Hello I had a problem with one of my custom indicators. after many hours of debugingand summarizing I reached to this piece of code. But this code plots nothing.extern int SlowPeriod=100;extern int FastPeriod=15;extern int MaMethod=MODE_SMA; #property indicator_separate_window#property...
Hi, I am new to the metaquote language and have problems with programing a trailingstop that works. Can anybody help me with the code. Mine is changing the stop correctly when themarket moves up but it also changes it when it moves down even if it shouldn't,this in the case of a Long position....
I use iTime(NULL,0,0) in my EA to print the current time of the current candle. It gives me number like this "1168434000", while on the chart the timereads 2007. 01.10 13:00 for the current candle. Is it possible to convert this number (output of iTime) to the same time formatmentioned above ?
  debuging DLLs (2)
Hello I developed an indicator in MQL language but at the end it was too slow. So i decidedto immigrate to C++ to gain beter speed(hopefully). I know this forum is dedicated to MQL, not c++, but I wish there were some referencesabout debugging dlls. when i define the terminal.exe as external...
Dollar and yen continue to retreat against European majors today in the [url=www.forexyard.com]forex[/url] market after last week's sharp rally. Germany trade surplus and current account surplus both widened more than expectedin November. what do you think about the trend?
Bonjour, Hi, Newbie here, I'd like to design an EA working with a custom indicator BUT i'd likeusing this Ind. on several UT. Eg: Using My Indic with iCustom (...MyIndic....) and getting results with UT M1, M5 & M15. Is there any solution to do that ? If I check how iCustom is designed: double...
Someone emailed me a history file of EURUSD 5m.  How to do I get this intoMT4 so that I can test my EA on this data?
When I am trying to close a trade, I am getting a common error and can't seem toclose the trade. I tried it many times but with no luck. What does common error mean? How do we get around this mess? See attached screen shots.
I have attempted to call the ZigZag custom indicator from my EA using iCustom, but no lines show. If this is possible, can the properties be changed - such as color, width, etc. If it is not possible, and the indicator is placed on the chart, does the codestill get executed twice - once for the...
When was run indicator (script or expert), once the program is started after receivedtick, does the MarketInfo function is making adittional requests (and every time) from server for every callof the MarketInfo(symbol,22) or other MarketInfo(symbol,nn) ?
The program goes well, but the logs have an alarming growth rate!
Hi All I use the screenshot() function in a number of my indicatos. In one indicator,the screenshot generates with blank contents some of the time! It shows the candlechart but all the indicator windows attached to the chart are blank. It only doesit about 50% of the time. Anyone ever encountered...
Dollar weekly analysis last week The dollar fell to the lowest level since March 2005, in the forex market. do you think it will rise to its maximum again in the next few weeks?
Hi, I use the 1 hour MetaTrader Heiken Ashi charts to trade Forex. Im looking for abit of code that will give me an audio alert when a bullish baris formed after a bearish bar and vice versa. Really hope you guys can help me,as this would be so useful. Thanks, John C
may i request OrderPips() function? i see your terminal has the profit column thathas "as point" style but none of this function in mq4 it would be muchbetter to have it ...instead of calculate it myself everytime i want ^_^
if want use the value of a Custom indicator in EA, use double iCustom(string symbol, int timeframe, string name, ..., int mode, int shift) if I want use it in an indicator, how to do ? some time there is a limit 7 buffer in one indicator file. so in an indicator file, if I need reference another...
Hi All , I'm trying to figure out why when I use some indicator like Support andResistance Barry's indicator in an EA , the strategy tester is unusable due toslowly. The EA is something like this : int start() { // Variables double Support,Resistance; // Import Support e Resistance from...
The descriptions of the drawing styles in the manual are not very helpful. Can someoneeither point me to a good reference or explain the various styles and how theyrelate to the related buffers? I am particularly interested in DRAW_SECTION. TIA
Default installations of MT4 contain a Commodity Channel Index indicator found in the built-in indicators section and a CCI indicator found inthe Custom Indicators section. As such, you can access the code for the CCI indicatorbut not the Commodity Channel Indicator. One would figure these two...
Hi, I would like to submit a request to allow you to modify the MagicNumber also whenyou make use of the OrderModify function. Regards Jimmy
Hi, firstly congratulation to a powerful trading platform. I would like to suggest a few improvements, and request. 1. User interface - I suggest changing docking windows/tabs to Navigation Pane.Like MS Outlook, more space, easier access and more controls can be displayed.MS outlook spends...
I'm currently running a EA that has several open trades.  I'd like to transferthe open trades and the EA to a new computer without having to close all of thetrades and re-initiate the positions on the new computer.  Is there anyeasy way to do this?
Hello, I need a program to color barchart in a different color for a different session @+ Golder