MQL4 and MetaTrader 4 - page 171

To post a new topic, please log in or register
Hello!   having downloaded and compiled accurate history data, MT4 turns them into a gigantic file when importing it via the history centre. So large in fact that it easily eats up the free 80 GB on my system HDD. So I tried reinstalling a copy of MT4 on an external HDD with 2 TB of free space. That...
[Indicator] What are the cause of this vertical lines in main chart? I tried to put the indicator lines in main chart but I don't understand why this happen.  
  Backtest help (2)
Hi,I'm quite new with mt4 and I'm looking for a way to control history data. What I want is go to a past date and move period by period like a live chart with indicators, graphical tool,... but where I choose when add the next periods.  What I want to test need subjective choices so I need to move...
My indicator is supposed to draw lines from and to bars in the M1 timeframe, which it does fine using the Time[] arrays etc. However, I'd like to view the same lines when switching to a higher timeframe, say, M5. Instead, my indicator will deinit and init again, when switching timeframes, redrawing...
  Arráy help (7)
My array dont work for lots   help me please  //+------------------------------------------------------------------+ //                        DO NOT DELETE THIS HEADER //             DELETING THIS HEADER IS COPYRIGHT INFRIGMENT // //                   Copyright ©2011, ForexEAdvisor.com...
I am trying to debug EA code in MQL4 and I can only debug on the real time data. The option to do debugging on the historical data is disabled (Under Debug / Start on History Data). Does anyone know how I can get historical data in the Meta Editor?
Hello, Can anybody help me with this error? I am sending an Order using this command: Ticket = OrderSend(Symbol(), OP_BUY, 1, Ask, 3, 30, 30, "Buy_Order", 0, 0, Green); I want to buy 1 lot and set StopLoss and TakeProfit to 30 pips and I am receivingthe error #130 - Invalid stops. I have AlpariUK...
I have hunted hi and lo, but I cannot find anywhere that can guide me in how to programatically pull off a chart the MA value of a manually added MA.  I can easily get it if I know what the period etc is just using the iMA function, but how can you search a chart for MAs and then check their current...
The following EA is from the "Simple Expert Advisor" section of the book. By downloading the tradingexpert.mq4 program from the book, and running it in my MetaEditor, I can compile it without errors . However, when I tried typing out the tradingexpert.mq4 file, I get 2 error messages:- ..... these...
Hi guys ;) i made a greate indicator for Binary Options. is it possible to connect the mt4 with a website like 24option.com . if i got a signal, i want that the mt4 make a option via a web-browser? or a is there another way to connect the mt4? best regards
Hi. I'm a Binary Options EA developer, but I can't test them properly in MT4's Strategy Tester because of some problems when closing BO orders. I always get some kind of error like "tester cannot calculate prices". The point here is that I suppose that MT4 is not a BO-oriented tool, and so what I've...
Hi Folks, Last week a position went somewhat wrong and I wanted to stop my EA, but as my EA sits on a VPN, I was not able to stop it. Can someone advise me if there is a way to send an email kill message to EAs? Thanks,  
  Candle Change (4)
Hi everyone, I'm looking for a push notification  after the current candle closes opposite colour of the previous candle (ie. bull to bear or vice versa). I've searched but cannot find one. Thank you.
Hi, Is it true, that mt4-Comment() cannot show the Wingdings (while it show e.g. the greak letters like: α,β,ø,µ while others like δ ε appear as d e) on the chart in an easy way like: string OK   = WingdingToString(252),        NO   = WingdingToString(251),        Bomb = WingdingToString(77),...
How do you get the PIP's in every ticks? Is there any standard way to calculate the PIP? What do you think of my formula? I used the formula for 5 digit broker:  (close - open) * 10000 /* Example: (1.12555 - 1.12545) * 10000 = 1 PIP */
Hi, I am trying to import a dynamic library coded in C++ in my EA. Only problem is that despite the functions being exported, my EA does not load them properly. The C++ code is as follows: CONSOLEAPPLICATION2_API bool AsciiToUnicode(const char * szAscii, wchar_t * szUnicode) CONSOLEAPPLICATION2_API...
Hi,  I'd like to find a way to download automatically daily historical prices from MT4 to excel. Is it possible to use a DDE formula ?  Thank you ! Cheers  
Hi, I amnew to this forum and have a couple of questions. I don’t know if this has beenasked before, so sorry for possible duplication. I will have difficulties toname the English expressions for the interface since mine is in German. Maybeyou can help. Besides I use MT4. Thesequestions mainly...
Hello, I am new to MetaTrader and have been trying to write my first EA. I've done plenty of programming in the past (Java, php, etc) so I have no issues with that aspect, but I've been really stuggling with things like money management, optimising trade entry and exit. Anyway, to cut a long story...
Hi, I wanted to develop an indicator that when RSI is below 30 on H1 interval I can see blue arrows on other intervals - ex. M5, M15, H1, even H4. But I have a problem - on live data it draws correctly - but when I attach my idicator to the window it doesn't show arrows in some places on H1...
Hi, i have an issue. I add text to my chart and then switch timeframes, come back and the text is gone. How can i make it stay?
Hi guys,   so i'm attempting to create code for a Take Profit on a buy trade. code will be a user function to be called upon when order placement happens. The rules are: Take Profit to be set at the closest institutional level 00 , 20 , 50 , 80 as long as it's more than the Stop Loss ie greater than...
Hi,   I am running a simple grid/martingale EA.  However, on trades that are "old", when the price eventually returns to the levels where they should become profitable, ie the take profit price should give a positive amount, the EA produces a large cash loss.  This loss is proportionately bigger the...
I would like to create a lots list if there are consecutive losses. Example: 1 trial - lot 0.01 - Lost. 21 trial - lot 0.02 - Lost. 26 trial - lot 0.03 - Lost 31 trial - Lot 0.07 - Won Then, since the ea won back to the 1 attempt. Remembering that lots do not follow a multiplication order or...
  Hi guys, how can i fix this?  
  Decrypt (23   1 2 3)
Hi Gurus! Here is the mql example of using of CryptEncode/CryptDecode. Based on that example, let's say: string my_string=ArrayToHex(dst); I'd like to get the original text string ("The quick brown ... ") from my_string. How can I get it? Thank you 
How to revive "Popular" template in the Templates? I somehow removed it.
Hello brothers, I would like to know how to convert a order commission + swap value into PIP and I need to add that PIP value with Open order value... (So i'll get exact open order price value) Thanks in Advance.
Hi Guys,  I have been looking for an EA or inidcator that can plot or display RSI support or resistance... I have been searching and everytime I get the support and resistance for the cadle chart , I was hoping for a similar one as below but for RSI window:    
Hello, I have a problem whereby I am running the standard "MACD Sample" EA in the optimizer but getting different results than when I "Set input parameters" and do a back-test.  Here is some of the background:   1) Environment: MT4 Build 1010, Using MACD Sample EA, Windows 10  2) Spread set to "20"...