MQL4 and MetaTrader 4 - page 376

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 
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...
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...
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
  Manual systems discussion  (152   1 2 3 4 5 ... 15 16)
In order to construct a killer ea. I would like an opinion of what is the best indicator all of you "ELITE'S" are using for ALL TIME FRAMES. My View Daily,60min,30min - I give high marks to Squeeze_2006 combined with hist_step_stoch 15Min,10 - I give high marks to Fisher Yurik/combined With Squeeze
int maximumLossPerTrade;int accountBalanceinEuro;double maximumLossPercentage;maximumLossPerTrade = (int)(accountBalanceinEuro / 100 * NormalizeDouble(maximumLossPercentage, 1)); When; accountBalanceinEuro = 14232 maximumLossPercentage = 1.8 I get 255 for maximumLossPerTrade. But, in excel, it is...
  Averaging function  (11   1 2)
Have written averaging function to my new expert but for some reason does not make sense at Strategy Tester. I hope someone could help with this.
Hello, Please I am trying to write an ea that does this: Creates buy order and sell stop order when attached to chart, for example buy order:      entry = 1.1200, sl = 1.1160, tp = 1.1240 sell stop:  entry = 1.1160, sl = 1.1200, tp = 1.1120 after buy trade hit stop loss and sell stop is now active,...
how can i upgrade to meta trader version 600?
I can't sign into MQl5 community using a demo account on MT4 desktop on Ubuntu Linux. It used to worked before but it has stopped working at the moment. I get the error message shown in the attached screenshot which says authorization failed. Please may I know how to solve this issue?