I have TS2000i code but don't know how to change it to suit MT4. This is default TradeStation 2000i Easy Language code for the volatility indicator: Input: Length(10); Plot1(Volatility(Length) , "Volatility"); ***************************************************** This is the function needed to power...
Some people might find iFractalsOnArray() useful ...I would. I was able to code this myself, but I think it would have been nice to have it organic to MT4. Along with tick charts, volume charts, 2M, 3M, 2H, etc., etc., etc. ;o) I know this is possible through some engineering; my point is only that
Hi, First gotta say I love MT4. Is it possible to return the index array from a call to iCustom. The call to iCustom could be made once instead of put the call in a loop to build the array values to then be used which forces the custom indicator to be loaded and released for every call. double
How we can insert indicators such as williams s/r, rsi, cci, in main chart window??
Apologies to the English-speaking readers...
Слава,
Это повторение вопроса "Determining if an Order Succeeded"
Мне кажется нам обоим будет легче разговаривать по-русски.
Вот повторение моего вопроса:
Я так понимаю, что MtSendOrder может возратить RET_OK, а брокер до сихпор может отказать в...
Hi, Can anyone confirm that there is a limit on the number of paramenters that can be defined on a function. It would seem that it is 10. If so why? and can this please be increased? Pedro
within a chart, when you point a line with the mouse, after a few seconds, an instant box is opened, and the name & value for that line is shown.
If you move the mouse a few pixels below/upside, you can still get the instant box, but it will show a different value for the line.
I think that if...
Is there any indicator that shows the historic volatility of price for the last n bars?
I am using the MetaTrader API. From what I understand, on a MtSendOrder API call, even if the return value is RET_OK, I am not guaranteed that the order has gone through. Presumably, if/when my order appears on the list from MtGetTradeRecords, I know that my order was successfuly. However, how do...
Hi Everyone, First I would like to say what a great trading platform MT is. I have tried many other trading platforms but they are all full of unnecessary and useless bloat. I find that MT is a very practical trading platform. Anyway... It appears as though you cannot set the size of normal
Dear Ladies and gentlemen
I tried to get the API sample #2 working. I use a demo account. My username and login are correct. The port 443 and 1950 are enabled. In case I use the ip-address from my computer I can connect but not login. The data server “mtdcsrv” is running and tells also “running”...
I have built a speech alert system that runs once every new bar. The alert uses iCustom(). It worked fine even after I recompiled it up to build 167. After I upgraded the MT4 into 168, my signals got reversed. Long signals become short signals, and vice versa. Pls look into this.
I think this is a...
Hi,
Is there any way to toggle or set the state of IsTradeAllowed() in code ?
Cheers
Martin
Is there a way to add price value to retracement levels and maby to change color for individual lines! If anybody know the answer to that or would like to help please I am sure eveyrbody would like to have that tool with fully funcional and customisable!
I am trying to write a code that will close all trades out in the last 10 min of the week.
Is this code correct
exit = (Minute()==50 && Hour()==22 && DayOfWeek()==5);
Thanks
MetaTrader4 is wonderful ! But until now, the strategy tester is not available yet! It is a regret. Would the MetaQuotes group like to tell us when the strategy tester will be available?
how to write trade no more than twice in an hour
Well the forum is a bit dull lately and I've seen it go on and offline alot but nonetheless I think there should be some activity.. So here is the official click-charity help thready. All you need to do is click the give button and you will see lots of banners (shouldnt be any popups) which pay the...
Is there a way to change color for this indicator so when it's in positive to stay green and when it's negative to lets say be red!
Any help is apreciated!
MT4 expert closes orders without a reason. Here is a ticket number:503690
I have an expert running for a month but this week it closed several times without any reason.
OrderClose is based on time, maybe you are playing with the time this week:
if (Hour()>=CloseHour)
{...
I have built a strategy to check for the cross-over of the Ichimoku clouds,i.e., MODE_SENKOUSPANA & MODE_SENKOUSPANB. On the MT3, gave me only 1% return over 7 months. Not so good, but I feel good about the Expert MT4 so far. Only time will tell!
Wonder anyone working with the Ichimoku clouds...
MetaTrader 4. Build 168.
1. Updated data pumping;
2. Updated working through DataCenter;
3. Updated last data viewing in "Data Window";
4. Updated internal news receiving;
5. Updated internal mail working;
6. Updated Dictionary of MetaEditor IDE;
7. Updating based on crash-logs.
New version...
Is the above pair available on the platform? If not, any particular reason?
Also are any indices or indices futures available?
In MT3 you can set the debug mode to ON using this command:
SetDebugMode(MODE_FILE+MODE_VALUES+MODE_DETAILS);
How is it in MT4?
Hi,
I was wondering whether it's possible to code an alert based on an simple moving average crossing a trendline ?
There would be 2 trendlines (triangle). Is it possible for mq4 and/or mql language to identify a generic trendline?
Ideally I'd like the same script on a number of currency pairs,...
Hi,
It would be nice if an MT4 user had the ability to select any time period. However, until that is possible it would be extremely helpful if Metatrader added both the 10 Minute period and the 2 Hour period.
Thanks.
Hi, everybody, I interest to learn more on expert script, where can I get the manual or userguide, by the way, i have use metatrader to trader forex since 2 years ago, i am tired with continuing monitoring the market, my eyes get red, i wonder if i can learn to write an expert advisor program that...
How do you calculate OHLC with MT3 api ? Is it consistent across all MT3 servers or a broker based setting ?
For example, I got tick data :
bid/ask
1.2921/1.2924
...
1.2919/1.2922
with the in between ticks being one of those 2.
When I got the server data for that same period it gave me :
O =...
I have an expert advisor running with just one line of code: OrderSend(Symbol(),OP_BUY,1,Ask,3,Ask-20*Point,Ask+2*Point, NULL, 0, 0, Aqua); What's suppose to happen is that it should keep buying until I'm broke. I'm just testing it this way because this function is not being executed by MetaTrader4...
I keep getting this error in my experts log continually..
ArrayInitialize function internal error
The funny thing is the code works fine and does exactly what I want it to do, it is just these errors in the log.
This is an extract from the code I am using.
double array_price[][6];
double...

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.