Download MetaTrader 5

MQL4 and MetaTrader 4 - page 172

To post a new topic, please log in or register
New article Easy Stock Market Trading with MetaTrader has been published on mql5.com: This article raises the issues of automated trading on the stock market. Examples of MetaTrader 4 and QUIK integration are provided for your information. In addition to that, you can familiarize yourself with...
Dear Mql4ers, I would like to create some code that will read all the horizontal price levels that was placed by the user via the horizontal line tool in the terminal. I have some code that knows there are levels on the chart...  int totalLevels;totalLevels = ObjectsTotal((int)...
I do understand that optimizer drops "insignificant results", the results that generated no profit, but that is NOT always correct to do, especially when I am using Custom optimization parameter! I could have an EA which has no parameters combinations that generate profit, but optimizing it is still...
  News blocking module (11   1 2)
Hi guys, Im currently build a News blocking module to plugin to my EA so that when there are major news, my EA will stop maybe 5 hours in advance and resume after 5 hours after the news release. But there isn't timediff or timeadd function to use. Any smart ideas to go about doing this module of...
Does not happen on online charts.. The offline chart's .hst is being 'fed'  by indicator running on a online chart - the usual stuff to feed !Tick<sym><tickCnt>.hst etc. any and all suggestions requested Thanks  
Hello, there is a major problem in the "period converter". Depending on the period and the multiplication factor, the script does not convert some of the latest bars. For example, if we make a conversion from 1H to 3H and now we are in the "hour 2", this bar is not converted. Any solution? Thank you
We need to know the code order withdrawals For example codes: 0 - Purchase 1 - sale 2 - baylimit 3 - selllimit 4 - baystop 5 - sellstop 6 - balance (add to deposit)
Are you facing technical issues in your Yahoo email account if yes so this is the best place to get online help for account related errors like password not working, account not open, account hacked by someone, email not sending or receiving issues. Contact Yahoo customer service department USA for...
Hello. for some reason, i started getting the following message about two weeks ago: Notifications: failed send request (notify.mql5.com:443 failed) everything was working just fine before that. even when i press the "test" button, it does not work. Your help please. Ran.
I am trying to call a C# dll in mql4 but the get the Unhandled exception 0xE0434352. The dll function I am calling is already  using a C# dll. Please help me Thanks in Advance!!
Hello, this is my first post on this forum. I have been having an issue with getting only 1 trade per bar happening, i searched the forums and used similar code to what others suggested but it still places many bars on certain spots. Can anyone explain why this is occurring and how to fix it? My...
Hello , i can get tick bid price use  MarketInfo(Symbol(), MODE_BID); , and tick ask price  MarketInfo(Symbol(), MODE_ASK); , but how can i get last tick price because the  CLOSE[0]  and last tick price is Different
Hey MQL4ers Having trouble with my trailing stop function. Can someone please clarify ALL situations that lead to this error? Aware of traditional Stop too close to market which is definitely not issue and stop in wrong format, which should also not be an issue... I don't think I need help with code...
Hi all, is it posible to write the results of an optimization in a csv file?, and add some statistical informatio ( Avg. trade, Avg. lossing trade..., MAE/MFE), Is there any sample code out there?. Regards, Vince. 
Hi Guys  I have started creating an indicator with Email alert. Kind of stuck halfway. Is there anyone can complete this project. It will be a great help. Also happy to return the favor if  coder can leave his details e.g email or contact along with address.   My file is attached.  Below codes has...
New article How to Develop a Profitable Trading Strategy has been published on mql5.com: This article provides an answer to the question: "Is it possible to formulate an automated trading strategy based on history data with neural networks?". The process of developing successful trading strategies...
Hi, it often happens that I see data gaps in my chart. Then I have to click 'refresh' in the right-mousebutton-menu and the chart is updated and the gaps are filled. Unfortunately it is sometimes a lot of work because each timeframe has to be refreshed individually. Therefore I wanted to make a...
Hi all. I'm wondering how to code my EA so an E-mail will be sent detailing items such as the close price and the Order# from the Trade History, everytime an Open Order is closed (and therefore goes into the History ledger). I will not be having multiple trades open either. Am I correct in thinking...
Good morning,I'm putting together an EA of binary options as a doubt I'm on schedule. I would like theEA checks the size of the current candle and so well in. It would be aconfirmation if the candle is greater than ex 20 pipettes passes for nextconfirmation. Or using this MQ4 that attached to...
I have a problem regarding the number of orders that EA can open simultaneously. I set the code as it follows: sinput string MAXORDERS; // Maximum Number of orders open simultaneouslyextern int buys=5; // Number of buysextern int sells=5; // Number of sell orders opened simultaneouslyint gBuyTicket,...
So basically i want switch the enter-conditions if the last trade was a loss. to check if last trade was a loss i have this code. but i dont know how to proceed. string last="profit";for(int i=(OrdersHistoryTotal()-1); i>=0; i--) {   OrderSelect(i, SELECT_BY_POS,MODE_HISTORY);...
Hi all: I am quite confused about writing a indicator using C++ dll. 1. It seems that the DLL import must have a parameter, MT4 doesn't accept empty paramter function calls? 2. when I try to pass all the parameters in OnCalculate(...) to the dll function, it never works. Eventually, I split all the...
I am writing code for loss recovery trade. when order closed with loss the next coming orders do the multiple orders till it closes with profit(take profit). after loss first trade open = (0.01)*2=0.02 if loss continues second trade open= (0.01+0.02)*2=0.06 if loss continues third trade open=(0.01+0...
Hi,   I come from Java background so apologies if this question is obvious to c/c++  peeps. I have two objects BaseObject and SecondObject . SecondObject is initialised with a  parametrised constructor containing BaseObject or in this world a pointer/reference not the object itself like i do in java...
On MT4, what data I have access to? Can someone point to me to a list of all items? (I've searched quite a bit, but not found anything (I may be searching for the wrong things)) When I say 'data', I am speaking of tick price, tick time and all other pieces of data that indicators use.  ....or is...
Managing the GmailHelpline Phone Number  troubles is easy but the main concernis that where to look for the help when you need it. The best option is thissituation would be to search the web with the respective keywords and thenchoose the suitable number from the list and dial it. 
Hello, traders! This is my first forum post on this forum but I really need this one. I'm having pretty peculiar trouble with the function MathAbs int MQL4. It returns a NEGATIVE number. I have two edits of the particular line and it still returns negative. Here it is. The original one: LotSize =...
Any pro in coding?  I have email alert for set but this indicator sending me non stop emails. So many that my email did not have any more storage capacity and bouncing back. Can anyone modify or advise how to? I would like to have only 1 alert when the criteria met. Its and MFI indicator. Partial...
Hi, I use a script which I drag & drop to a chart. This script adds an object (text) to chart and places 4 trendlines to the chart (depending on the price where I drop the script). These 4 trendlines depend always on that set/dropped text object. So when I move that text object my 4 trendlines...
Just got new laptop that has windows 8.1 When I installed mt4 it was version 400 build 840. I am having an issue with custom indicators. When I attempt to load an Indicator the setup window appears like normal. When I change an input and attempt to select open it does not work. All selections are...
1...165166167168169170171172173174175176177178179...1250