MQL4 and MetaTrader 4 - page 120

To post a new topic, please log in or register
Hello everyone, I have been slowly making additions to code my EA. I only have 1 GB (Type-DDR1) on my laptop. The problem I am experiencing is that MetaTrader4/ MetaQuotes4 crash. I think I know the answer, but is there any way to use external ram..
Hello ,, i want ask how can read String From API if i send String from C# by(WIN32 API) to Desktop Like This  "|EUR_USD|1.2323|1.233" i use char | to split this string first name pair second price bid and third price ask   now how read this line in mql4 from my Desktop .!  thank you :)
either in tester or live chart EA/indicator/script, I would like to know how long it takes for a section of code or the entire EA to run through complete sequence.  I checked a thread here which had a speedtest.mq4 attached, but I could not ascertain how to apply it to my situation. Could use MQ's...
Can I use ihigh and i low for stoploss in an EA, and which part of the code should I add it too?  Thanks!
My computer is four core. But only one core is used when tested in the ea test. It takes a lot of time to test or optimize. Is there a way to use all four cores, or accelerate the speed of testing or optimization?
I have a EA and is in back testing in MT4.  While the chart result shown only after the testing ended. If I want to see how my EA works from bar to bar, how can I do it? Thanks in advance
Hi all, I would like to program my EA to detect if an object appears (an arrow... put there by an indicator) on the current bar of my chart. Is this possible? Thanks! Shawn
I want to use high/ low of previous bar for SL. Right now I have it set at static value in extern int.  I want to add sl = iHigh(NULL,0,1) and I understand that the change needs to come after order send, but whatever I try it will compile with no errors but not run properly on backtester... Please...
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?
  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!
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...
free417
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.