MQL4 and MetaTrader 4 - page 84

To post a new topic, please log in or register
Hi, everybody. Can anybody help me understand how to make things right in my script? I'm trying to use several indicators at once, and naturally I got the problem of "your indicator is too slow..." How can I solve this problem? I NEED TO STUDY 5 PREVIOUS CANDLES. That is why I call [i+n] in each...
Hello, I am new to the MQL language. I am attempting to access and apply past values to my indicator based on certain conditions. My test code looks like: int limit = rates_total-prev_calculated;if(rates_total<=DATA_LIMIT)      return(0);//--- last counted bar will be recounted...
In a perfect world MT4 would let me draw buffers from one indicator into both a separate window and the chart window.  I have an indicator in a separate window that does some calcs and draws a modified MACD.  But I also need to do some calcs on the chart window and display stuff there.  I tried...
  pips away (2)
How can I make a jump of pips against the opening price? (in MQL4) and the TP is the same for open trades with the pips away... but it is getting closer with some formula so that the final result is positive. Example: Buy 1.2500 - Rebuy 1.2000 
Hi I've migrated All Experts etc and Mail is failing to send from VPS where is succeeds in MT4 Desktop 
:: IN10TION NewsReader v09.85 Best Forex news reader for MetaTrader! new software update & added more little useful extras, everything is adjustable. free downloads (no restrictions), all the info & forum/help is here click on image to have better preview
My MT4 Client Terminal won't start and open. I tried uninstalling and installing it again, but that doesn't seem to fix the problem. I can still access and open the MetaEditor, and from there, I tried accessing the MT4 Terminal again, but still I can't access  and open the MT4 Terminal. In the...
Hi all, I was wondering if there was a way to fix myEA, it won't place orders because there are other orders open on other pairs etc, not placed on this chart by the EA. Here's my order code, if you need any more, ask and ill put it up. So i have an array, where the strategies to be used are set to...
Hi all, I just wondered if anyone could see any issues with my trailing stop? For some reason, all the trades seem to close for a small loss, and dont appear to be trailing. Also, would this alter the SL on my other trades, not placed by the EA? If so, can i filter them to this EA on this chart only...
As a forex trader you have recourse to different types of orders in order to enter and exit the forex markets. These different types of orders allow you to specify precisely as to how your broker should fulfill your forex trades. This article explains the different order types that are possible in...
Attached is the indicator from A Samir. But there is a bug in it. See link below row 8  is always blank. https://www.mql5.com/en/charts/9767396/euraud-h1-gain-capital-group.
accountBalanceinEuro = (int)(NormalizeDouble(AccountBalance(), 2) / NormalizeDouble(MarketInfo("EURTRY", MODE_ASK), 5)); I get "zero divide" error for this line. EA is working on EURUSD. How can I make the EA to read the EURTRY prices when working in strategy tester?
Is there any way with which we can encrypt the content of .tpl file generated through MT4. Also, we would like to have the functionality to have it decrypt automatically once user loaded it on MT4 like the .dat files.
Hi, I'm trying to check if all of my strategies in my EA (the ones the user has selected to use) has got a buy or sell signal. Basically, I have an array with the total amount of strategies. For each one, if a buy signal is given, a 1 is placed in the array, sell is 2 and if tno signal is given, its...
Is there a way to use Buy/Sell Stop Limit order type in MetaTrader 4? The broker i use doesnt have MT5, which has that order type. So maybe a script or EA or something like that will do the job on MT4? if you find a way to do it, let me know. thanks.
Hello, I am still learning MQl4. Would someone please explain what the purpose of the moving average shift used in the iMA indicator is? What does it mean to shift the moving average and what is its application? Thanks.
I want to make candle stick delay when place orders. For example, buy condition matched and place order. if (buy_condition==1){Buy_order} How can I code (add) to delay order? For example, if buy_condition is matched and after 5 candle stick later, I want to place order.
Hello, Anybody help me to do that? "Convert from Amibroker to MQL4 (display multi time frame chart in one window chart)" Example like that, can you help me to convert? => Thank you! " _SECTION_BEGIN("Chart mmulti timeframe"); SetChartOptions(0,chartShowArrows|chartShowDates); _N(Title =...
hi, backtesting in visual mode can take forever.  is there anyway to save the visual charts afterwards?  and I'm not talking about a picture, rather, able to load the chart entries and exits back into MT4 to be re-used again for analysis? Thank you
void BreakOut(){//--- Create a button to send custom events   ObjectCreate(0,buttonID,OBJ_BUTTON,0,100,100);   ObjectSetInteger(0,buttonID,OBJPROP_COLOR,clrWhite);   ObjectSetInteger(0,buttonID,OBJPROP_BGCOLOR,clrGray);   ObjectSetInteger(0,buttonID,OBJPROP_XDISTANCE,100);   ObjectSetInteger(0...
Hi all, could you give me an help on how to extract the Hour number from OrderOpenTime() ? I need to compare this to the Hour() function. Thank you!
Hi guys, First of all, thank you to those who help beginners to solve their problems and I appreciate if you help me with this problem. This code is part of my personal indicator and my problem is that the arrow #1 appear after candle closed and after reload of the indicator, arrow #2 appear too and...
  News Trader EA (1263   1 2 3 4 5 ... 126 127)
This is News Trader EA created by Igorad. Besides, we may use this EA to draw the lines with text on the chart when the news coming. Explanation of the settings and how to use this EA you may find in the next posts. ---------------------------------------------- Version 2. - Please find attached the...
Hello All, i am a little new to m4l programming but i have some programming background. someone wrote a trailing stop function for me but i'm not sure if its working properly or maybe its where the function call is in the onTick function. here's the trailing stop code below. Please let me know if it...
Hello programmers!  I am a new programming learner & am very new in MQL4 language... I need to add one command to my EA, But I'm tired of my failed attempts  :( I just need to add one command to the EA: Open new trade in the each new candle      //if current candle has met the same conditions//...
Hello All, I hope you may be able to point me toward an MT4 indicator that allows me to draw a line or series of lines, and labels the difference in time, pips, and possible bars between the points on the line. In essence, I want to draw my own zigzags, but have the labels automatically show up as I...
Hi, Is it possible to create an indicator that can read / scrape text from a dashboard indicator on a chart? Reason I'm asking is because I have a multi timeframe dashboard and I would like to export the numbers to Excel...  
Hi at all, Is it possibile create a function/method use Variable Arguments as c language ? Or using library ? which? Anyone know a good library for this scope ? Or another way for create a function with dynamic number of pamaters input ? Thanks at all !
Hey. I have a problem. I configured anonymous IPVANISH SOCKS5 proxy (it tests OK and it works), but when I created a small expert advisor to test my ip     char result_char[]; string result_headers;   char data_char[];   int res2=WebRequest("GET","https://api.ipify.org/?format=json",NULL,NULL,5000...
I want to be a signal provider. But I can't find the broker server for Meta Trader 4. Meta Trader 5 can find. But Meta Trader 4, Error: Invalid broker server. How to do ? Please.