MQL4 and MetaTrader 4 - page 1275

To post a new topic, please log in or register
When I try to modify an order using OrderModify, it is not working when I use a variable as a parameter. How can I do this. Please help Thanks in advance.
Hi new digital, I've seen you have implemented lots of EAs and I wanted to ask you if you could tell us which ones you like, which ones are giving the best results, which ones are more secure, ... Only a small summary. I don't ask for all the statements ;-) Actually I'm testing Predator. It's a...
i'm looking for something like this order select(highestopenprice,....); if (ask>OrderOpenPrice).....
Do I have to install the MetaTrader Terminal in a different directory for each accountand launch each terminal with it's own expert advisor, or is it possible for EAto switch easyly from one account to an other on the same terminal ? what do you recommand ? thanks
  Run EA every few seconds (16   1 2)
I find that running an EA on every tick would be very "noisy". Is therea way to run an EA every n seconds? Does anyone have the code? Thanks in advance, Ed
I have several demo accounts that have expired and I would like to remove them fromthe list of accounts. Do you know how to do that? Thanks
For all you hot shot EA programmers: I work full-time and I want to test my EA over the weekend when the market is close,how do I do that? Thanks in advance, Y
Hello all, I am trying to close opened order at the next day end. ie. suppose open order at17/7, then will close it at 18/7 day end or when touch stoploss. Can anyone help me withthis coding? It stucks me a few days. Thank a Lot!! Nick
Hi, I have a system (EA) that I want to trade live but I don't want to sit in frontof the screen and do this whole stuff manually. The system needs to be optimized after each trade and continue the automatic tradingwith new values. I heard WinExec or some other DLL call might be able to do this...
for example. i want the program to search history and if there is no trade withingthe last 6 hours then run the script. help please?
Hello Traders I'd like to change the color of a custom indicator ( MACD) like this : if the current MACD >Previous MACD : the color is green if the current MACD < Previous MACD : the color is red if the current signal> Previous signal : the color is green if the current MACD < Previous signal : the...
How can I find the highest or lowest value after a specified time. Please help.......
Gidday I am not a coder by any stretch of the imagination but you have to start somewhere. Could someone please look over the code and point out where I have gone wrong. extern double Lots = 0.1; extern double MaximumRisk = 0.05; extern double DecreaseFactor = 0; extern string i3="DeltaStop";...
When I try to Print the OrderOpenTime, it is displaying a 10 digit number which is not at all related to date. How canI convert this to real Date and time. Please help...thanks in advance. if(OrderSelect(OrderSymbol(), SELECT_BY_POS)==true) Print("open time for the order ",OrderOpenTime());...
New MetaTrader 4 Client Terminal Build 207: Fixed considering of leap days when setting data in inputs and in Expert Advisor'ssource codes.MQL4: Fixed error names in stderror.hMQL4: Added optimization when working with strings.MQL4: Fixed processing of literals for date D' and color С' when using...
Sending Trading Signals in a Universal Expert Advisor The article describes different ways of sending trading signals from a signal programunit of a universal Expert Advisor into the positions and orders controlling unit.It dwells on serial and parallel interfaces....
A new article by dmitriy, Interaction between MT 4 and Matlab via CSV Files, has been translated and published. Abstract: "Engineering system Matlab's computational power is known to be considerablysuperior to that of any programming language including MQL. Wide range of mathematicalfunctions...
i made this EA for modify TP when all position will make a certain profit, but it looks like there is a delay from the system to the EA so on a fast marketthe TP changes all the time because of a wrong data it receive from the market.
On the Automated Trading Championship 2007 website, article "List of Symbols Is Reduced" has been published. Unfortunately, the list of symbols will be reduced from 23to 12 on technical grounds. Now, this list is absolutely the same as that of theAutomated Trading Championship 2006. The full text of...
dear elite technical coders is it possible to make an EA that at a set time runs the MT4 optimimizer and updatesthe EA parameters with optimized new ones? yes?  no? also if it is possible pointers would be greatly appreciated. i am a new programmer but i am quicklylearning. thanks!
I started a contest Demo and I get this message in Journal. 2007.07.16 14:58:41 '449118': trading attempt in the investor mode I used the Demo password. Account number: xxxxxxxx Server address: demo.metaquotes.net:443 Master password: xxxxxxx Demo password: xxxxxx Please advise corrective action....
Is it possible to display the value of a variable as a label inside graph. Please help. Thank you in advance.
I'm not able to store values in a variable received via iCustom (of same data type). Is this not supported?
Can someone help me here please? I have some flags set in my EA which need to becleared every time an order is closed. But I don't know how to catch the signalwhen an order is closed by system, not my EA. Anyone had the same experience? Thanks, Tiger
Does anyone have a report template or other method to report total time that orderswere open? In Statement, DetailedStatement and StrategyTesterReport, it would beuseful to scan a report that has a column that shows the total time that orderswere open. Thanking yoiu in advance, Wackena
Can anyone point me in the right direction? I have been successfully hedging currenciesfor a while now, but because most of the action happens in the middle of the night(I live in Australia) I am not able to close out positions when overall profitreaches a certain level. I tried to find an EA in...
I reinstalled MetaTrader and i don`t have all pairs available like they were before,GBP/USD is missing ,I can only open it when I press profiles and then it`s blank,nothing is on the chart,what shall I do?Thanks
  Crash Report (1)
I was moving a trendline, and my code may have tried to delete it while I was manually moving it There has been a critical errorTime : 2007.07.13 12:05Program : Client TerminalVersion : 4.00 (build: 206, 06 Jun 2007)Owner : MetaQuotes Software Corp. (MetaTrader)OS :...
Hi, I am adding some labels to my charts using a custom indicator, and the items areprovided timestamped for GMT. However I am in GMT+1, and would like to handle theconversion on the fly as the labels are added. However to do that I need to accessthe client terminals local GMT offset - and add to...
Hi all, I have this EMA: double MA=iMA(NULL,0,2,-3,MODE_EMA,PRICE_TYPICAL,0); If I set a negative value in MA_Shift (-3 in my case), in the EA my MA value is0. Why? Could you help me about this? Thanks.