General - page 1997

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++) { OrderSelect(i, SELECT_BY_POS); if (OrderClosePrice() <= OrderStopLoss() + 0.0005) { OrderModify( OrderTicket(), NULL, Ask - 40 * Point, OrderTakeProfit(), 0, Aqua);...
dear all, 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 cheers, alimin
IF BarClosed() THEN IF MACD_Signal [0](close 6, 9, 8) > MACD_Signal [1](close 6, 9, 8) and MACD_Signal [1](close 6, 9, 8) < MACD_Signal [2](close 6, 9, 8) AddBuyEntry "Change Direction: Increasing" ENDIF IF MACD_Signal [0](close 6, 9, 8) < MACD_Signal [1](close 6, 9, 8) and MACD_Signal...
MetaTrader 4. Build 167. 1. Updated LiveUpdate service. Please download and install last build of the terminal from our site; 2. Updated "Standard deviation channel" object; 3. Updated internal e-mail service operation; 4. Added index arrays initialization by empty values; 5. Updated Dictionary...
Hi, 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 programe. #property copyright "mpfx" #property link "http://www...
Hi, 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...
Hi, 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. is...
I don't see how it's possible to run an external application from an expert advisor. Is this correct? This is something I think should be included if it isn't.
I would like to know if someone can help me to set up the expert advisors for the williams Percent.
Is it possible to delete everything of ichimoku cloud and keep only chinkou span?
Hi, 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.
MetaTrader 4. Build 166. 1. Updated profit calculation of cross-courses orders; 2. Updated Dictionary of MetaEditor IDE
is everybody allowed to sell his/her expert online without paying any &quot;license-money&quot; to metaquotes?
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
Hi, 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, int
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. var: cnt(0)...
Hello, Can I change the color of an indicator in the code? For example I have an indicator that goes from 1 to -1 and I would like it to be blue for == 1 and red for == -1 Thanks EK
  data feed down?  (5)
is the datafeed for mt4 beta accounts down for everyone else currently?
Hello, 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...