The DMI indicator in MetaTrader crosses and movement is not like DMI on TradeStation. The EasyLanguage code in TradeStation looks much differnet than the DMI code in MetaTrader4. Does anyone have ideas or code that mimics TradeStation DMI? Without this, I will not be able to use MetaTrader4 as my...
I've discussed this through the support email. But since english is not my native language , guess I didn't make it clear...
Anyway, please have a look at this:
In MT4, after I draw a trendline, say a Arrow Up, I can define on what timeframes it will show by changing "visualization"...
Ok. So I'm working on an expert advisor in MetaTrader 4. I left it running during the night only to find that no trades were placed. I reduced the code to only one line that executes the OrderSend function. Since then, and after reviewing the journal event logs, I found that I was running build...
I have the fallowing code:
int total = OrdersTotal();
for (int i = 0; i < total; i++)
if (OrderClosePrice() <= OrderStopLoss() + 0.0005)
OrderModify( OrderTicket(), NULL, Ask - 40 * Point, OrderTakeProfit(), 0, Aqua);...
is there a feature in metatrader that will automatically calculate and show me the pivot, support and resistance levels based on previous period price action? would be nice to have one implemented, thanks
I developed an indicator and it behaves strangely when changing the timeframe. Find below an indicator that behaves the same way.
In fact the indicator is ok in a given timeframe and while receiving live data. When changing timeframe, sometimes it continues to work properly and sometimes, the...
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.