MQL4 and MetaTrader 4 - page 1648

[Deleted]
Does anyone have the code to get the order count total by currency? Something likeOrdersTotal(Symbol())? This would get the count for open positions for the symbol, not pendingorders. Thanks in advance, Y
[Deleted]
I'm interesting does SWAP value for some pair change dynamically? do I need to checkit on every tick in start() or it's ok to check it only once in init()? thanks.
Hi. My EA places approx 10 buy and 10 sell orders at different intervals. Many timesthey exist together as open orders. I'm looking for code to modify the stop loss for only the order that is the LARGESTin profit in relation to how many orders are open. Example: I have 10 open buy orders and 8 are...
Is there a way to place a SAR on the MACD and get value in mql4? Thanks
I wish to identify a daily price bar that has a range of say, 100 pips i.e. I'monly interested in painting the bar if it's daily range is 100 pips. How do I do this? Can some expert in this forum please help? Many thanks.
On the website of the Automated Trading Championship 2007, an Interview with Roman Zamozhniy (Rich) has been published. Roman Zamozhniy, known as Rich was the Winner of the AutomatedTrading Championship 2006. Regardless his winning in the last-year Championship,Roman completely redesigned his...
[Deleted]
How do I use the offline chart I created when backtesting an EA?
It seems that many same questions surface regularly. Would maintainers of this forumcreate and collect such FAQs so that new comers should read the FAQ first beforeposting their questions? One of such questions is: Q: I want my indicator executed once for every bar, not for every tick arrival.How...
[Deleted]
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.
  Newdigital's EAs  (10)
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...
[Deleted]
i'm looking for something like this order select(highestopenprice,....); if (ask>OrderOpenPrice).....
[Deleted]
Do I have to install the MetaTrader Terminal in a different directory for each account and launch each terminal with it's own expert advisor , or is it possible for EA to switch easyly from one account to an other on the same terminal ? what do you recommand ? thanks
[Deleted]
  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
[Deleted]
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
[Deleted]
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
[Deleted]
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...
[Deleted]
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...
[Deleted]
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";...
[Deleted]
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());...
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...
[Deleted]
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...
[Deleted]
dear elite technical coders is it possible to make an EA that at a set time runs the MT4 optimimizer and updates the 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 quickly learning. 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....
[Deleted]
Is it possible to display the value of a variable as a label inside graph. Please help. Thank you in advance.