MQL4 and MetaTrader 4 - page 596

To post a new topic, please log in or register
  403 error. (3)
I can not access my account MQL5. This 403 error.
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... }...
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...
I can see a close button next to every open trading position within terminal window of MT4.. Is there any way to disable this close button??
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...
Tradeing
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,
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...
Any value in doing this? Hopefully the contents of this thread can be distilled down to a series of 'must read links' and published as an Article either here or offsite? If we try to keep the chatter down in this thread (maybe discuss the thread in another thread), stick to facts, and avoid...
Can anybody further explain "the seed" and the MathSrand() function. I did read documentation but couldn't understand. In fact I did use MathRand() without MathSrand() and saw that MathRand() worked normally .
I have a indicator here. Please help to create an arrow indicator when both indicators crosses each other. Really appreciate the help
In order to generate different combinations, I believe I need to work with permutations. Every setup has A entries with 2 possibilities ( true/false). Examples: A = 5 entry1 entry2 entry3 entry4 entry 5 Combination 1: false false false false false Combination 2: false false false false true...
Hi My broker in sunday night at 21PM Open New Week bar(for example in this week mt4 not show any bar between 13th@21PM until15@21PM ) So xDayDate count every sunday as Trading day,I want function not count sunday as Trading day!any one can help me! Appendix: 1:xDayDate Function: datetime...
please help, how to change the time period in M2 and the like? Please send me instructions on koma.makomax @ gmail.com thank you
Hi, I've used MathMod() function a lot on my code for rounding off prices. But I recently found out that if the division remainder is zero (i.e. the number is an integer product of the divisor) the MathMod() doesn't return zero, it returns the divisor instead. example: #property show_inputsextern...
Tradeing
I have the feeling that i get often Timeout error when i use HTTP GET functions from windows wininet, have somebody ideas how i can optimize my code to get less or no more Timeout error from Metatarder. Is there any other function maybe that is better then HTTP GET? The HTTP GET function looks so:...
  Boolean combination. (13   1 2)
Today i encountered a problem but i have no idea why it's happen. bool a,b,c;..........//do stuff.......... //now a,b,c are all true. I tested them:if(a){Alert("a");  }if(b){Alert("b");      // All a,b,c true, and these three alert does appear.}if(c){Alert("c");} But when I erased all three if...
Good morning, after learned mlq4 and 6 months of backtest uncertain, I would like to ask help .. Almost all brokers download from the historic metaquotes. So, any backtest is inaccurate because the composition of the candles in the historic metaquotes is different from the real broker. GMT, spreads...
  Trendline in my EA (20   1 2)
Hi i was just wondering if there is any way to draw a trend line with an ea and use it for comparison just like a moving average.The method would be the thumb rule for a trend line: a straight line if touches 3 lows of the price & if the lows are higher than eachother =uptrenda straight line if...