Download MetaTrader 5

MQL4 and MetaTrader 4 - page 163

To post a new topic, please log in or register
How do I keep my code hidden if I want to share it but don't want the source to be seen?
hello dear  Can you help me to put a account number as password in a EA with a expiry date . please help with step by step thanks 
New article Error Handling and Logging in MQL5 has been published on mql5.com: This article focuses on general issues linked to handling software errors. Furthermore, the logging term is brought up and the examples of logging implementation with MQL5 tools are shown. During the operation of most...
Hi,   I'm new to mql4 coding and I understand the basics (very basic).     How do you capture a lagging indicator with iCustom?   i have been playing with the code inside the indicator tester and it seems to work fine. However when on live it never trades.   For example fractals will not always be...
I have the following indicator code. It shows an arrow on the screen when a certain condition exists. I want to have it send an email when the condition exists AFTER I attach it to the chart.  The problem is that it currently tries to send emails for each occurrence when I attach it. Can anyone...
Hi, I'm new with mql4 and coding as a whole so can any of the experts please help me with the following two dilemmas. I need to add an arrow and alert when price breaches an MA from above, but it should repaint as when the price does not close below the MA to disappear again. It draws the arrow and...
Issue: I am calling iCustom to calculate values for several custom indicators within an Expert. When running on historical data, I am flooded with entries like this: <SYSTEM DATE>    <DATE>  Custom indicator <iCustom Name> EURUSDpro,M30: removed Example: 2015.11.16 09:16:11    2015.09.23 08:30...
could you kindly clarify if mt4 has stock screening facility based on customised technical indicators please.    
Hi, I looking for some way to open order (long/short)  at  specific times (Like 14:00, 18:00, 19:00) in the current price of the market with stop loss & take profit that I'll set. Anyone have some EA that can do that? Or any idea? Thanks! 
In EA testing, "Tester memory handler: tester stopped because not enough memory"?
I'm sure it's out there, but I have not found a discussion of this:   Brief: The Custom Indicator runs twice each bar, once on it's own and again when referenced in the EA. Is this a necessary behavior or am I doing something fundamentally wrong? Detail, as short as I can make it: 1. Here's a Custom...
Hello guys, Im here new and also Ive been studying MQL for about a week (no previous experience with programming)... I tried to write a simple EA (only to practice what I've learnt) The idea is to double the lot size if the previous trade didnt work out well... if it again doesnt work out well then...
I have a account at a market maker. Thespread sometimes widens extremely. So I like to program an indicatorto show the spread. I adopted the excellent „Clock_v1_3”indicator from „Jerome  to show the currentspread besides the different time zones. I am new to programming indicators so Ido not know...
Hello Everybody, Please I need your help. I made this ea to pick trades on news release but when the time set is reached it doesn't pick trades. Take a look at the code below maybe there is something I am doing wrong: Thanks in advance extern string        newsdate         = "2015.06.10"; // Date...
Hello forum, Something rather odd is happening, I have this simple order modify for the stoploss (see below). The ADJ in ADJ*Point() is defined as a double on global scope. I am looking at ADJ values of 1 and fractions, say 0.5 (point). The order modification works fine with the Buy orders, both...
Hello, Currently development a program that would use intermarket influence withAI, Program currently extracts forward data prices from Metatrader and has builtin Astrological engine For the past couple of weeks I have been training data with open source Artificialintelligence engine NUPIC www...
I practice to migrate a indicator. like follow. but i find a problem. the value of indicator is fixed to the last value  no matter where mouse focus.  Just like the following 2 pictures, both always shows 13.0497 how to change the indicator's value with the mouse. thank you.              
Hi Guys, Back when I was playing with MQL5 it didn't allow hedging and this was a issue for me so I went back to MQL4. I now see MQL5 is all over your face and taking over MQL4 website links...  Were should I go ? to 5 or can I stay on 4? O NEED HEDGING....its a deal breaker... 
  Is there any difference between to use "Ask" directly  and to use "MarketInfo (Symbol(), MODE_ASK)" instead? In another word,  "MarketInfo (Symbol(), MODE_ASK) " = "Ask"? "MarketInfo (Symbol(), MODE_BID) " = "Bid"? Otherwise, when are they same? When are they different? Thanks. 
Hi,  I'm really struggling with a what is most likely easy piece of code. I'm new to mql 4 so bear with me.   What I'm trying to achieve is this. Wait for the previous bar to close outside of the bollinger bands. Easy enough.  What i'm struggling with is when this has been achieved I then need to...
  MT4 causes computer crash (23   1 2 3)
Hi, Does anyone has a problem with MT4 that causes a computer crash? About 4 hours ago, while I open an trading order by using MT4,  MT4 closed down suddenly and caused my computer crash. When I reboot my computer, the computer looks everything ok, all other software works fine, but as long as I...
Seriously consider forex signals if you are not yet trading profitably, have limited experience, or just don't have much time to devote to your forex trading. From the simple one email a day variety to the forex mentor who sits with you all day holding your hand as you trade, a portfolio of forex...
  Hello All (1)
I am Skylondon and live in United States . I am professional trader .I want to share my trading life . People tend to have many questions when they are presented with something new, especially when it is related to their money. Lots and lots of questions will pop up during the first encounter. The...
PLEASE. Aonde eu encontro o arquivo metaLang.exe?  Where do I find the metaLang.exe file?   Eu quero compilar .mq4 pelo php para .ex4. Ajuda! I want compile .mq4 to .ex4 using php. Help !   Obrigado. Thanks. 
Hi, I'm working on an EA and I'd like to be able to pause trading without deselecting Autotrading Button or deleting it from the chart since it is holding important data in memory in form of arrays that are needed to continue after unpausing: I'm using the following code......
I saw in the MQL4 Document: If FILE_READ is specified, an attempt is made to open an existing file. If a file does not exist, file opening fails, a new file is not created.FILE_READ|FILE_WRITE – a new file is created if the file with the specified name does not exist.FILE_WRITE –  the file is...
Hi, I have written a dll in C# (used dllExport). The dll basically connects to a host and performs sql queries.  This dll works perfectly on my laptop. When I try to run this dll on my VPS which runs on windows server 2012 R2, I receive an error: Unhandled exception 0xE0434352. I know this is a very...
I was hoping someone would know how to check the current chart symbol....for the example below i have tested a couple of variations... such as... if( Symbol()==CADCHF) {gur=gur+1;} thanks in advance.... 
Hi Gurus, Can I get a chart event, when I click on mouse button (BEFORE I release the button)? As I experienced, the event occurs when I release the button. Thanks