Download MetaTrader 5

MQL4 and MetaTrader 4 - page 1021

To post a new topic, please log in or register
Is it possible for memory leaks when running the MT4. Is it possible for EAs to use up all memory after some time. My live terminal keeps increasing in memory usage(Task Manager). Have anyone of you seen this? any solutions? Is this because of too many messages in the experts tab? Anyway to keep...
what happen with platinium EA topic?
datetime TimeLocal() Note: At the testing, local time is modeled and is the same as the modeled last known server time. Is there a way using a windows dll (maybe "shell32.dll" ) to get the local time during a test.
Hi, I'm just about to start a new EA based on Pair correlation. Where can I find some information about pairs that correlate with each other? Thanks
  OrdersTotal (1)
I am running an EA on 3 different currency pairs. Can I use (OrdersTotal() ==0) to tell me that there are no open trades on any of the pairs or will it just apply to the pair on which it is operating? I want to be able to tell the EA for each of the pairs to stop trading if the profit level is above...
If so, for what sort of things?
I know that some of the functionality could be obtained using wininet.dll and general file functions; however, I haven't seen anyone really support the concept of a web api for MetaTrader. This could allow mobile devices to interact with the trading platform without needing the binary install. I...
I am new to metatrader 4 wondering if any one can help me step by step how to create forex robot in metatrader 4
Hi, I encountered the strange. My long order was done successfully though it's price was not in the range of the time. Attachment is to show the price. Bule arrow is long order. Pic1 shows order is done @99.24. but bar shows highest price in this time is 99.21. Is there someone can understand...
Has any one any idea if you can get a compatable free hand drawing tool(s) that can be intergrated into Meta? Many Thanks.
Simple question to moderators. How long does it takes for an article to be reviewed and eventually published? I sent one for proofreading last week but still got no feedback. Tnx, Zyp
Hey everbodys, I need help to programm following problem; The Trailingstopp should not follow the close-bid period for period..... (normaly) The TS considering an art of bars, who have a small uncontrolled vola and which are in the red range caught. until/if the next bar, which leave this range....
hello all i have just registered here becasue i am using metaquotes to create my trading system. i have a problem and i hope somebody can help me : i have read the reference regarding MQL4 program but my program continues to give me problems: in the platform there are some experts( MACD, moving...
  Multiple OrderSend (20   1 2)
Hi all, I tried to code 2 ordersend together but only one will be sent OrderSend(Symbol(), OP_BUY, LotSize(Risk), Ask, 3, Ask - StopLoss, 0, "B", 100, 0, Blue); OrderSend(Symbol(), OP_BUY, LotSize(Risk), Ask, 3, Ask - StopLoss, Ask + TakeProfit, "B", 200, 0, Blue); Is there any work ard because my...
Hi, I need to change the maxlots for a project I'm working. I tried hex editing the fxt file, as it's suggested here http://www.metatrader4.com/forum/1763/, with XVI32 but had no luck with it. Anyone tried changing MAXLOTS successfully? Thanks
hi, just wondering if anyone can point me in the direction of how to go about making the trailing stoploss of my EA equal to a moving average value. cheers geoff
I have a question that I want to make my own Function but I don't know how to make it, I guess I have to save my Function code in Library. And then For calling My Function, Using #import. I did that but compiler said there is no function like that . So I didn't understand how to make it. Could...
I purchased an MT4 indicator. I would like a programmer to make a few modifications to it. Assuming i would only use it for my own trading, what are the copyright issues involved, if any? Am I OK altering the code for my own needs? Thank You
i find below sentence At the stage of Registration, we are going to detect such incorrectly written Expert Advisors providing certain test time limitations in theeight-month interval in the "Every tick" mode. If the EA's testing time exceeds 5 minutes, this EA will not be allowed to participate in...
Hi everyone I want to ask a question. I tried to make percent increase or percent decrease indicator. So I made code like that int limit=Bars-IndicatorCounted(); for(int i=limit-i;i>0;i--) { Buffer[i]=close[i]/Close[i+1]; }   but that was never work. I changed above code / to - like that...
Hello fellow traders/coders I have a problem with creating a simple EA. But I am doing my best :( I wish to create an EA that will buy and sell when arrows appear( blue=buy,red=sell),all the time in the game,no stop loss no take profit. My first step was calling the indicator into EA and I did it...
Can anybody tell me please how to read the %K, %D and %D slow? Thanks
Hello, does anybody know, if there is a (practical) method to use costum indicators(i.e.the values) in a ZigZag indicator formula? Example: In the ZigZag we got for example the code: "Low[iLowest(NULL,0,MODE_LOW,ExtDepth,shift)" based on the close price (of the security) How can one replace the...
I have developed an Expert Advisor for MT4, and anyone want to try it in their demo account to test it. I have done the back test, it is quite good? The trading philosophy behind the strategy of the EA is based on the price action. Please PM me if anyone want to try it. I will sell it Ebay later,...
This is an example in the docs, but how do I make multiple lines (new lines) in the body of my message? Is there a \n or something i need to put in the statement to make a new line? SendMail("from your expert", "Price dropped down to "+DoubleToStr(lastclose,Digits));
I prefer to put to use && to combine logical tests in a single if statement and in other programming languages this is usually the faster method because usually if the first part of the if fails, the second part won't even be executed, thus saving time. Unfortunately after doing some times I found...
can any one help me with this please... I am doing a iCustom on a indy called i-Regr ...I have identified the 3 lines that the i-Regr indicator places on the chart and i take trades off the high line and the low line and the Ea is supposed to close the trade if the bid price hits the mid line. The...
In my EA I tried to use a symbol diffrent from the chart symbol and got an error - 4106 that maens - unknown symbol. my question is how do I iuse more than 1 symbol() in an ordersend cmnd in an EA ?
Hi All, Is anybody here could teach me how to make a rectangle diagonal object like the picture below? Any help is very appreciated. I haven't try all of the object's function though, but I'm curious if anybody here could do that because I've never seen any of this before (perhaps I need to surf...
I am not sure about the correct definition of stoplevel... For takeprofit, is the limitation: 1. MathAbs(openprice - takeprofit) >= servers_min_stop ? or is it: 2. MathAbs(closeprice - takeprofit) >= servers_min_stop ? For stoploss, is the limitation: 1....
1...101410151016101710181019102010211022102310241025102610271028...1249