Download MetaTrader 5

MQL4 and MetaTrader 4 - page 14

To post a new topic, please log in or register
Hello,   Ihope somebody can help me.   Becausethe Nasdaq moves in $ 0.25 increments, I look for my expert a way to round anumber like 5812.66 to 5812.50 or 5812.45 to 5812.25 etc    Who can give me an exemple how to do this? Thanks!   Hans Blancke
Hello to everyone, I have encountered problems with the code written before the build versione 1599 of Mediaeditor. The code for casting between structures is no longer accepted. What I'm saying is verifed. I still have a version of Metaeditor build 1562 and if I compile the following code is...
I'm created an EA and backtesting it... Can someone please look at trades 5 & 6 and tell me how that trade resulted in losing $20?  I can't figure it out.  The trade was closed under where it started by 20 handles and it still resulted in a loss.  That doesn't make sense to me.
Hi, SymbolInfoDouble, GetSymbolInfoTick, all those functions are answered with error 4106 in testing mode. Symbol unkown or not selected. SelectSymbol fails because of backtest mode. In my expert i use multiple symbols and need bid and ask of extern symbols also in backtest. How to achieve this ?...
Hello, I would like to know how to continue drawing indicator after the last bar, is it possible to continue drawing an indicator in future date? Thank you
Hi There, I'm wondering something, now I'm developing EA that would normally check Daily Trend and calculate many things with H1,M15. mostly data come from iClose(), iHigh() by multi Timeframe, then it will check with current opened order and process with some Indicator.  I notice sometimes market...
Is it possible to edit some files to get more currency options in the strategy tester?
I want to add additional symbols to MT4 and upload custom market data in offline mode for building and testing EAs. How can I edit symbols.raw symbols.sel symgroups.raw ? This is only for offline testing and optimization purposes. I am using MT4 as the engine to build/test/optimize these symbols,...
  CANT ADD CUSTOM INDICATORS (27   1 2 3)
PLEASE I JUST GOT A NEW SET OF CUSTOM INDICATORS BUT THEY ARE NOT ON THE LIST OF CUSTOM INDICATORS EVEN AFTER APPLYING THEM CORRECTLY IN THE EXPERTS-INDICATORS FOLDER. PLEASE I NEED HELP TO GET THESE INDICATORS ON MY CHARTS. SEEMS THERE IS SOME CHANGES ON THE MT4 PLATFORM THAT AFFECTS THIS...
hi at all, is this a parameter or method, for get minimal size of my lot (example 1 lot; 0.1 lot; 0.01 lot) ? Or, i must calculate it, every time with my input value (example: 0=1 lot; 1=0.1 lot; 2=0.01 lot) ? Thanks a lots! at all!
  Dynamic zone indicators ... (1568   1 2 3 4 5 ... 156 157)
It seems that David Stendahl can not help him self Where his name appears "attached" to some indicator or TA way, it sure is worth trying it out and studying it. The basis for these were originally published in the Stocks & Commodities July 1996 issue (attached the original article here). Do not be...
Hi all I faced an issue with mql4 when I tried to write a simple code triggering a signal for entering into a position based on specific set of rules (the simplified code is below). the problem is that despite the set rules EA enters in wrong positions (it opens one candle after the rules become...
hey im trying to upload some new indicators but they wont seem to show up after i restarted mt4.a few others i already had inside my custom tab also are greyed out and wont let me click them.has this happen to anyone? any suggestions? thanks in advance
Hi Mt4 is still extending features but I think in standard mode without installing extra plugins should be possible to see current profit or loss value on those lines which show order entry next to order number. [example:     #24538549 buy  +72 $ or -72 $]  because currently it's visible just in...
ArrayBsearch Searches for a specified value in a multidimensional numeric array sorted in the ascending order. The search is performed in the first dimension taking into account the AS_SERIES flag. I need to be able to individually search every each individual one of the 5 dimensions in my 5...
I'm creating a function to try and return the PriceRank of the current symbol.  By using the IV Rank calculation, I want want to calculate the Price Rank. I've used it, but some how, I'm getting higher current Closing prices than the Highest within the last 52 weeks. Can someone tell me what I'm...
Hi forum, for me it's inconvinient to disable autoscroll before I can scroll backwards. So I thought if it is possible to disable it automatically if WindowFirstVisibleBar() is above a certain number. I use chart scale 4 with a shift on the right side. So with enabled autoscroll the...
I want to get the highest point on the histogram every time it cycles above and then below the 0 line (or vice versa). Since I cannot use iHighest I do not understand how to approach the logic on this? Also, should I use static and break in order to determine movement across the 0 line?
Hello, I have this error in OrderModify fuction when run my code, can you help me? Thanks // Modifica TP per gli ordini a mercato SELL         if (OrderSelect(ticket2,SELECT_BY_TICKET)){  // verifica presenza ordine in SELL e lo seleziona           if ( EntryPointBuy > OrderTakeProfit())...
Is compile in editor followed by refresh in mt4 enough or should I always reload the whole mt4 while editing mq4 files back and forth? Both equally effective?
is there option to modify sl and tp of different pairs running in mt4?
Hi, I want to copy history folders and files from one computer to the other one. What folders and files should I copy? Regards,
Hello Members, I was backtesting "MACD sample EA" then adding an "order status indicator" which shows numbers of active open orders data on the visual chart. But in spite of having active open orders from the EA, the order status Indicator is failed to show any open orders data on the chart. So does...
Hello, Can anyone help me to write an ea that will delete pending orders if no open order exits? What i want is an ea that will delete a pending order if my open order (buy or sell) has been closed, due to taking profit achieved. Example: I have a opened buy order with tp and i also have a pending...
Hello, everyone. Can't a horizon and a vertical be shown to the location of the arrow of an indicator of this MA crossing? Is there such indicator? The one devised suitably is fine for onoff and a small place. Thank you for seeing it, I have that, it was done.
Hi all, I am new to MQL4 coding. I need to write an indicator where it shows the value of previous MA 20 and 8. also if 20 is above 8 then it should be sell else if 8 is above 20 then it should be buy. cant understand how to write, My Indicators keeps coming up with problems. I am hoping for a...
Hi, i created an ea that increments the order volume after it has stopped and resets from the initial value after taking the take profit.I have to say it works, but sometimes (especially if I get more charts) goes crazy and returns to the value of initial multiplication without taking the takeprofit...
Hey everyone, I want to know how to load more historical data in the PC windows version thank u
Hi everyone. I realize that this is probably a very stupid question, but I am still learning and very much a beginner.  I have the MQL course by Forex Boat and I'm in the second lesson about integers. I keep on getting an error but cannot for the life of me figure it out. Please see screenshot...
  Decompilation (7)
Hi, I would like to have access to decompilers. I do not want to stole anyone code, I just want to look how my EA looks like when decompiled. Someone could point me the direction or this is prohibited subject here? (if it is, I will understand)
1...789101112131415161718192021...1244