MQL4 and MetaTrader 4 - page 978

To post a new topic, please log in or register
MQLmagazine.com's february edition is online! This edition's leading article addresses issues about the implications of MetaTrader5 on the job segment, and the birth of a new quantish backtesting platform. Other topics include the debugger, market data access, file writing functions and indicator...
Hi I need someone to help me please who has a good knowledge of MQL4 coding to program a strategy for metatrader 4. Please message me or reply to this thread. Thanks in advance Carl
Hello Guys! (I do not know in english well so sorry for this.) I have a really big problem! I have an Expert advisor (made by me), and i want to write that open this EA's positions where it get the signal. For now i have that kind of opening code what opens the order at a price + or - 20-30-40-100...
I have several window indicator below my chart, i.e CCI, vol, and RSI. How should i shift the vol indicator to below the RSI? I tried to drag the window, but dont' seem to work. The only way, i tried is to del away and add in order. Any advice how to shift the indicator after adding in? Thanks
Hello I like to take use of third party services for advanced account statements and statistics. But I don't know whether these services are safe and free from security risks, malware and forex scams. I like to use this service http://www.mt4i.com/ from MT Intelligence. I have used this in my demo...
Surely this can be done right? Reading the price level of a user installed horizontal line. By user installed I mean placed on to a chart manually. The following code is something i was playing with trying to learn to do just that. In the end i want to be able to place 2 Horizontal lines on a...
Hello everyone I have a custom indicator, one of the best in my search last 20 months, for swing trading. I need free help -- a EA coder help me convert this to EA. very simple, just follow signals given out by indicator with stop loss/ take profit / trailing stop. I am asking for free help because...
Hi All i want to know if possible to do that sequence in EA. 1-to stop the EA completely from trading when balance is 100 pips less than the balance of 2 days past. 2-then EA starts to do backtesting (on background) everyday from day of stopped trading. when backtest shows balance higher 100 pips...
Hello to all I realize that this post has nothing to do with explaining errors and such. But a word of thanks from me to all of you for the never ending help you all have provided. Today, the system I have been working with compiled yesterday for the first time. The debugging I completed this...
Hi, I want to write an EA which works with the gradient (slope) of the EMA-Indicator. How can I do that? Do you have any examples? Thank you, sunshineh
I having problems with the indicator window in MT4. Normally I would use two screens to look at my MT4 chart, one my laptop and one external monitor. Now, my monitor just blew so I resorted back to my laptop screen. I can see my charts on my laptop but when I open up my indicator window I can't see...
This would remove the 2ea together and add a set sl.
I need help in adding function to execute when any requotes happened. This EA open & close position smoothly when the 1st instant order sent to server executed but if it's fail due to requote (price have changed), this EA didn't execute in the new price offered although the new price is still...
Hello . I am using FileOpen Function just like below: Everything is working fine,but when i use the same for a file with 20MB size it gave me error for openning file? So i think that's because size restrictions, any one know what is maximum file size that we can open with FileOpen Function??? or is...
need a very good and reliable EA... pls tested and trusted. thanx
All, I'm new to the world of MT and mql code writing. I've been using Amibroker for a while now and write AFL's to suit my trading requirements. I wanted to test the logic from one of my AFL's in the MT for the Dow chart. So I started to write an expert advisor after reading a bit about Mql4. My...
I ma trying to count how many pending BUY/SELL stop orders are at any given point. The code I am trying is below, but at the moment it counts nothing. Any ideas about what is it going on, or a different way to do it? Thanks. intOpenBuyOrders=0,OpenSellOrders=0; //Count Pending Stop Orders   for(int...
Dear Mql4.com! I tried to mirror your webpage with winhttrack (nowadays i travel a lot, and I want to access your content in my pendrive). But after some page request the mql4.com blocked me. Site migration (only for personal offline use) is not allowed? (If not it's ok, i not see any restriction in...
I'm testing a EA and every time a run the test, with the same EA, the results change. I don't understans the situation. It should be a simulation with historics ticks and results should be the same every time. What is going on? Thanks
Hi all, i am a newbie and i also have a big problem with my EA. Can everyone help me? When i create demo account for testing my EA. All things is good, notissue any error. But when i use this EA with live/real account. My EAissue the error 133 ERR_TRADE_DISABLED Trade is disabled. I don't know why...
One of my most recent trades went bad to the tune of -89.00 $ US. In the comment section behind that trade is an entry that does not make sense to me. The entry is "so: 49.8% /67.7 /136.0". What does this mean to you, and to me? I keep ignoring the NEWS broadcast, and I assume it is still coming...
I have two questions... 1. I have Apocalypse which apears to be dormant in the account, but who had traded well in Octdover. What should I check or change, or am I being overly concerned, what with this being a weekend and all? 2. With the FAP Turbo install, I am now receiving error messages,...
Hello people in the MQL4 Forum: This is the first time I post any comment on the forum. You see, I have been trading for a while, of course manually up to this moment, but in the last weeks I have come up with strategy, that is really working out for me, since I have various arguments that support...
If you want to follow the flow of your code or are having troubles with an EA, script etc and trying to track it down and find out where and what it is you can use an 'Alert' statement to display it in an Alert message box.
So here's the deal. Today is 2-19-10. If I start the backtest from 1-1-10 to today, it trades well, no major losses, looks good. But then if I trade from 12-1-09 (or any date earlier than mid december) to today, it gives this huge loss on 1-10-10. I didn't change anything else except the dates it's...
Hi, I wrote a simple script that is supposed to calculate a distance (in pips) between moving average and current price. int start() { Alert("++++++++++++++++++"); Alert("Digits: ", Digits); Alert("Bid: "+(Bid)); Alert("MA: ",+(iMA(NULL, 0, 3, 1, MODE_LWMA, PRICE_CLOSE, 0))); if...
Hi, i´m new in this world, sorry if the question is dumb... I´m writting a script. I´m try to fetch prices from period in a Mysql DB. When i execute my script in grahpic only fetch bars in graphic... What i do for return results since May 2007 to September 2007 in a 15 min period? Only i can do...
I work with MetaTrader 4 in Windows 7. The program DannRestart is located in the window EURUSD with M1. In certain cases I let start from my program from the MetaTrader again. With Windows XP everything ran error free. But with Windows 7 this error message comes: DannRestart: absolute file path...
More than n(61?) number of characters and a label is truncated. Anybody have the definition for the limit??? Anyway to call FontMetrics call to start another label where the truncated one finished? Documentation that defined function parameter limits would be useful. Where do I find that? Thanks
Hi, I want to change the TakeProfit of an existing order. But I am getting always the "OrderModify error 1" Here is a part of my code:    for(int i=0;i<=OrdersTotal();i++)     {      if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES)==false) break;      if(OrderSymbol()...