When compiling your moving averages custom indicator I get the following errors..
'SetIndexDigits' - function is not defined
'SetIndicatorArray' - function is not defined
C:\Program Files\MetaTrader 4\experts\indicators\moving average.mq4 (30, 4)
Thanks as always.....
Hi, I have a question about the "IsConnected" function with regards to how it works. If this function is used within an Expert, it will obviously provide "true" when MetaTrader is connected to the trading server. However, if the the connection is broken for any reason, MetaTrader won't be receiving...
I want to set up an alert in my candlesticks chart, for example in 5min chart, while the length of the coming candlestick is longer than 30 point. But there is some wrong in my programe,please correct it , or give me a new
#property copyright "mpfx"
#property link "http://www...
I'm currently running MetaTrader v1.65 and with the release of 1.66, was expecting it to carry out the automatic update. However, when I start MetaTrader up, it doesn't carry out the automatic upgrade to version 1.66. I've tried running LiveUpdate.exe manually, which just seems to exit out...
I am creating an indicator with the ARROW style. I want to place my arrows at a certain relative offset below or above the candlestick. But to be visually pleasant, I must know the vertical offset that the price chart spans. Even better, visually pleasant means for example that I should know...
How can I display the line name in the chart?
let's say I add a new horizontal line, at a given price. I want to have its name displayed just above the line.
I don't want to point it with the mouse and wait until the instant box shows me the name and the value. I want its name shown always.
I've noticed a small problem today which I suspect is a bug. If objects placed on a chart when buy/sell/limit orders are placed, are selected with the mouse cursor, the displayed popup text field displays the price level which the mouse pointer is currently on, rather than the price level...
I'm a little confused. Can someone tell me or show me some code snippets to do the following:
I would like to make an expert that would merely follow the trend based upon ASCTrend. Once a signal to buy or sell is generated, on a 15 min chart, as long as the current bar closes below the previous bar...
I notice that there are function calls to some of the indicators like iMA(), iMACD(), etc. I am creating a custom indicator. What is the procedure to add function calls that can be invoked from Expert?
Thanks for your assistance.
I need to get the last two bars from multiple time frames (5min, 30min, 1hr and 4hr). I can only assume the constant ERR_TOO_FREQUENT_REQUESTS as being a possible return code from GetLastError actually means something to the data vendor. I need five of the six numbers (excepting volume) relating to...
I am trying to write an Expert and noticed that there are several interfaces that are used within an Expert - such as: MarketInfo(), Print(), iMACD(), iMA(), etc. I will also be writing some custom indicators. Is there some documentation on these interfaces? I searched for on the MetaQuotes website...
I know this question has already been addressed, but I just want to reiterate the importance of making tick charts organic in MT4. I'm guessing the problem is the design of the data feed and this is what makes the issue problematic; or it could be something else entirely. But knowing that volume in...
I was looking at the MACD Sample expert in MT4 and just noticed something re iMA :
1) somewhere in the expert we have : MaCurrent=iMA(NULL,0,MATrendPeriod,MODE_EMA,0,PRICE_CLOSE,0)
2) in the dictionnary it says the syntax fo iMA should be like :
iMA( string symbol, int timeframe, int period,...
MetaTrader 4. Build 165.
1. Updated data pumping;
2. Updated array reinitialization in MQL programs;
3. Increased pumping time of closed charts up to 30 minutes;
4. Added DRAW_NONE drawing style for custom indicator. You can see an examples in Accelerator.mq4 and Awesome.mq4 custom...
*Is there any User Guide for 1a_bivot?
*Is this based on Leonardo Fibonacci's retracements?
*Does this adjust itself after a period of time when left to run for many periods?
*I deactivated the 1a pivot EA, its still there.
I'm looking to get Yesterday's open price. In the following:
yesterday_close = CLOSE[cnt+1];
yesterday_open = OPEN[cnt+1];
today_open = OPEN[cnt];
OPEN[cnt+1] doesn't give me it. I'm confused. Here's the basic PP code, that's templated across most PP indicators.
Using MT4 I open an Order at 1.29.04, then I modify the Order and press the button for Modidy Take Profit for 5 points and it copy the wrong value 1.2888 as you see in the account history:
Ticket Open Time Type Lots Item Price S/L T/P Close Time Price Commission R/O...
First, how can I submit a very simple example of how to use a DLL in MT4? The example is written in assembly and displays the T3 moving average using a simple moving average filter.
I believe another individual stated having the same problem, but I would like to make sure the issue is addressed in...
There's a missing feature in mql4. Although in my opinion that the mql4 grammar is beutifully written. it tend's to deal with arrays explicitly. Many programmer's prefer to build custom classes to store and manage there data so that it's highly structured. You can't do that with array's. Mql4...
Well what ever you did in build 164
some of my indicators have now died
I never had an issue with the following function before
I use the ArrayCopyRates function and from that I make some calulations to draw objectlines
e.g pivot lines.
The error I get is as follows:
02:09:34 Pivots Daily...