MQL4 and MetaTrader 4 - page 858

Hi I am trying to write a custom indicator. The custom indicator draws a single line between highs of some candles and lows of other candles. However sometimes the line needs to join the low and the high of the same candle. As far as I can see, this cannot be done using a buffer as that appears to...
Hi, Im currently using this formula to get the lot size: ThisLot = NormalizeDouble(( (MarketInfo(Symbol(), MODE_TICKVALUE)  * ( (TakeProfit + SPREAD())*Ponto(Symbol()) ) ) / MathAbs(EPTotalBuyProfit) ),lotDigits) ; Function Ponto() double Ponto(string symbol) {        if (StringFind(symbol,"JPY")...
  Silver and Gold mystery  (13   1 2)
Hi: I'm trying to set my EA up to accommodate more than currencies. Instruments like Gold, Silver, Oil, and some Indices like S&P500, etc. I started off with Gold and Silver but ran into trouble due to broker differences in Contract Sizes and Price Quote differences (2 digits after the point vs 3...
prices ~ time graphes are not arawed in un-linear and un-uniform . This happens in all graphes!! So also when graphes drawing in o ther sacle mode. What is wrong? plear check the three bars in graph, their time mark is 2013.09.24 04:50;04:45;04:30; not in 5 minutes intercal ! And pleace check the
Здравствуйте! Нужна помощь! Возможно ли создать индикатор следующего характера: - подсчёт тиков по этому принципу https://www.mql5.com/ru/code/9915 - это уже половина индикатора .... Но доработать следующим образом и изобразить его графически со следующими параметрами: Помогите, для кого плёвое...
How do I change the volume of transactions I get from my "signal" automatic in MT4?I always win 0.001
New article EA Status SMS Notifications has been published: Developing a system of SMS notifications that informs you of the status of your EA so that you are always aware of any critical situation, wherever you may be. My work often interferes with my ability to continuously monitor the terminal....
[Deleted]
What is the most efficient way to test a custom indicator? The only way i know is to attach it to active charts and waiting for it to work. Any suggestion would be great.
[Deleted]
It's strategy is to open orders when there are moving average orders "SMA10-SMA20-SMA50-SMA100-SMA200"either from bottom up or the opposite,and close the order when there is a SMA10-SMA20 cross contrary to the trade direction. But when I put it into MT4,it didn't open orders when the Moving Average
[Deleted]
I wrote the first simplest EA as below. When I attach it to the chart window, I see the alert for init and I see the alert of deinit when I remove it. But I never get any alerts from the start function. What am I doing wrong? int Count=0;...
[Deleted]
  == operation  (22   1 2 3)
Is it accurate to use the == operation to compare two doubles? For example, the average value ( Moving Average ) and the Open value of the Bar
hi I have an ea that sends a 2 pending orders. I cannot modify the ea but would like a delay of 30 seconds between the two orders. the only way i have been able to do this so far is to have two charts open one for buy and one for sell and change the GMT off sett for one. unfortunately this means the...
  403 error.  (3)
I can not access my account MQL5. This 403 error.
[Deleted]
Both MarketInfo(Symbol(), MODE_TICKSIZE) and MarketInfo(Symbol(), MODE_POINT) always give me the same result for a given symbol. Could they be different. I don't really understand the difference.
  Drawing Up/down Arrows!  (12   1 2)
Is there a way to draw just one UP and one DOWN arrow whenever conditions meet? I am trying to accomplish this 1- Draw just one UP arrow when bar's open is greater then 20ma 2- Draw just one DOWN arrow when bar's open is less then 20ma The code i have is drawing arrows on every bar... I want arrow...
Hi, Could anyone help me with the below indicator, It creates an alert only once and I need it to keep repeating the alert (when it rings once and I'm moving about my house I miss the alert, if it could ring like 20 times or in any other way possible?). After the alert I usually either immediately
I am wondering how and where many forex sites like forexfactory.com get the date/times of news releases. I'm assuming it's all automated, and the forex calender isn't updated manually. Is it also possible to retrieve the time and news releases to my own server?
How do I assign a variable into an array (if even possible)? The most obvious way doesn't work. string s = "hello";string test[]= {s, " sir"};
I am trying to develop my first custom indicator. I only want the indicator to show on the charts during the overnight session. Therefore I added a simple IF clause to check for the hour of the day. The problem is that the indicator shows up for each hour of the day. I made a small change shown...
//+------------------------------------------------------------------+//|                                                x.mq4 |//|                        Copyright 2013, MetaQuotes Software Corp. |//|                                        http://www.metaquotes.net...
I want to insert new instructions in my EA. I want to tell it at a certain point that if a close happened, then it shd carry out following instructions. Below is how I want to do it but I do not know if it is correct. if ( CLOSELONG(Symbol()) ) { //instructions here... //instructions here... }...
[Deleted]
  hi newbie here!  (2)
i am new trader at GDMFX,does anyone here trades with them?let me know and can you suggest some good forex broker?Any help will be much appreciated.
Another gap, best way to determine holidays for Sydney, Tokyo, London, NY,? (Frankfurt, Chicago, HK, Wellington)??
I need help in coding an OsMA EA. The EA would be based on the 4 hour and 30 minute OsMA indicator. For a buy execution, the 4 hour OsMA would need to be above zero and the 30 minute OsMA needs to be crossing over zero. Take Profit is 14 pips with no stop loss. For a sell execution, the 4 hour...
HI everyone, i am a news trader and i enter my orders a few bars from news events . I usually enter 10 orders. 5 sellstops and 5 buystops. I need an help with an EA i can automatically use to trade news events based on my aforementioned parameters . Any help would be greatly appreciated. thanks. So
[Deleted]
Hell, when the MetaTrader 4 generate a timeout error and the EA has stop to work, how can i get a notice abouth it? I cannot send me a Email or i cannot make a Alert, how can i let me know when a tieout have happen?
Hi. Is possible to get info about others pairs with an EA in a only chart? I can to create a string with: EURUSD,Time,BID,ASK,HIGH,LOW EURJPY,Time,BID,ASK,HIGH,LOW GBPUSD,Time,BID,ASK,HIGH,LOW AUDUSD,Time,BID,ASK,HIGH,LOW To concat all is easy but Hou Can I take the value for the High for exemple?...
Hi, I want use int GetDlgItem( int hDlg, int nIDDlgItem ) function in script in MT4. Where I can find nIDDlgItem values for different sections same Navigator, Market Watch and another Menus? Is there script to find that or any list? Regards,
[Deleted]
Hi! My question is that if the spread on XAG/USD is about 2 per mille and I try to open a position with my whole balance than the broker will open it and immediately close it because the negative amount of 0,002% spread with 1:1000 leverage is two times bigger than my balance or it just won't allow...