Download MetaTrader 5

MQL4 and MetaTrader 4 - page 8

To post a new topic, please log in or register
[Help] I created Custom RSI indicator manually but it's don't work. How to calculate Average Gains/Loses?? https://en.wikipedia.org/wiki/Relative_strength_index#Calculation I'm using MQL4. There's no built-in function for Average Gains/Loses. If you know how to code that average gains/loses, please...
Hello to All:  How can I get alert signals when the RSI hits a number, let say 30, for one or many currency pairs?  Must I specify the timeframe?  If yes, how?  It's probably easy, I just don't know how to do it?    Sincerely, Garcia Fong 
  MTF Stochastic (31   1 2 3 4)
Hi, The attached stochastic is an mtf version that is great. However it does not show interim values on higher time frames when used - it only updates the values on close of the higher time frame values. Could you change it to show higher time frame values in the interim before bar close, during...
  Experiments ... (852   1 2 3 4 5 ... 85 86)
Thus thread will be used to post some experiments
Hi, I'm having issue with adding default indicators like ATR, CCI, MACD etc. I found that the indicator is marked with grey symbol. I cannot won't add even i treid to add by clicking Tools>Indicators>Custom. There is nothing shows there Also, when I tried to click metaeditor this error appears.  I...
Hello, I am trying to write a indicator to draw high and low of Last/Current Month andLast/Current Year. With the help of the members here I was able to get the indicatorworking however there are couple of things I would like to get help with: 1. All the lines are drawn RED even though I mentioned...
Each time I make backtest, a plenty of gigabytes destroy my hd; any trick?
  MySIMPLE trading system (670   1 2 3 4 5 ... 66 67)
********************************** New IDEA in MySiMPLE trading system : Scalp with RSI on Major Pairs :: indicator : +JoGET_MultiPairs+ :: ********************************** Hi, this is MySIMPLE Trading System, thanks to administrator and all master, I used your great indicators. --------HOW TO USE...
Sometimes I've come across EAs and indicators that are bundle into a exe file, which makes installation easier by putting all the right files in the all right folders to make it less confusing for the user to install. Apparently there are ones out there which even allow you to select what mt4...
Greetings, I am trying to figure out how to get the price of a horizontal line.E.g. my program is to iterate through all horizontal lines and collect their pricesI.e. int obj_total=ObjectsTotal(); for(int i=0;iobj_total;i++){ if(ObjectType(name)==OBJ_HLINE){//obtaining the price of the line ??? }...
Hi friends I wonder how could it be possible for "MarketInfo(_Symbol,MODE_TICKVALUE)" to be equal to zero? I've written the code below to calculate the broker's commission in point but sometime it takes the zero divide error !    double commission_in_point=((commission_per_lot)/MarketInfo(_Symbol...
Hello, I wonder if it is possible to use EA to open positions at the same time in two different MT terminals (two different brokers), that is, opening poistion in one account can automatically open another position in the seccond account?  Please kindly advise  Thanks. 
  Margin % mql4 (3)
How do i get the value of margin percentage(at symbol properties window) in mql4 code?
Is It possible install data from dukacospy without paying tickstory in mt4? Someone can help me with this? Is It necessary a script?
extern int PeriodoEMARapida = 5;extern int PeriodoEMALenta = 21;int MaximoDeOrdenes = 0;int BarsCount = 0;//+------------------------------------------------------------------+//| Expert initialization function...
Hi I am a newbie to the forex coding...   I have been trying to modify the open price of an order when the pre defined conditions are met. But while executing the order modify function, it is returning false and the error code is showing as 1.   I have observed that order open price and modified...
Hello all, I'm new to coding and I'm really not finding a way to get what I'm looking for. Maybe one cool/savior programmer out there can help. I'm trying to find out the high/low for a certain period. The period is fixed. Let me explain a bit better. I'm trying to find out the highest high and the...
I have a problem in storing my newer files: when I look at the file I am trying to place in storage it is different but the old file has a  > revision number: If I 1/. keep a copy of the files im trying to save as xFileName for FileName (file) 2/. Then delete the files I want to store 3/. Update...
Another one I cannot find info on... Anyone have a function to add the millisecond count to the tick struct? I made one that uses to pc clock instead of broker time, but this is obviously not accurate (broker time diff/network latency)... Any ideas? here's what I have so far... #property...
Hi All, In MetaTrader there are several DEFAULT indicators, that were added along with installation of platform, that I would like to delete, particularly but not only Oscillators which I comment them as extremely unreliable. In one moment they show one trend direction - possibility to enter...
  PlaySound and Alert (17   1 2)
I'm trying to produce some alerting mechanisms in my EA and ran across some funnybehavior. When I use the Alert function and the PlaySound function together, then the Alert function seems to supercede the PlaySound function,which doesn't kick off. So, as an example, if I have the following 3...
Hello Trying out code from https://www.mql5.com/en/forum/130611/3340415#comment_3340415 as I have plotted a series of HLINEs and want to change the font of the descriptions of each:    if(ObjectSetText(_lineName, "What you want to call your line", 8, "Arial", Magenta))...
Hi, When saving a detailed statement from your MT4 account history, I see that there is a small section in the working orders that displays comments from an automated system, in the last column in the working orders section (as shown from account history). These comments would be extremely useful...
Hello everyone, I am not sure how to achieve this ,but should be possible. void ControlPanels(){   string AControlPanel="P",        BControlPanel="1",        CControlPanel="P2",       DControlPanel="P3",        EControlPanel="P4",       FControlPanel="P5",         GControlPanel="P6",...
Hi there, I tried and tried to get the open date of the previous year. Can you help me please ? Now, i do it like this but, it's not "pro" datetime  PREV_YEAR_OPEN_DATE=D'2017.01.001 0:00';     datetime PREV_MONTH_OPEN_DATE=iTime(Symbol(),PERIOD_MN1,1); datetime PREV_WEEK_OPEN_DATE=iTime(Symbol()...
Hello, here is my code why facing error 131 , Do some one help me... Chaiya if().. {         buy_TP=0;         if(StopLoss_In_PIP>0)            buy_SL=Ask-StopLoss_In_PIP*pip;         else buy_SL=0;         buy_TP=NormalizePrice(buy_TP);         buy_SL=NormalizePrice(buy_SL);         //...
Hello All, I'm fairly new to all of this, so I was wondering if there's a way I can add time inputs so that I can leave automatic trading turned on, but the EA will only place trades during certain hours (i.e. between 3 AM and 7 AM). Not sure if it matters, but I'm using MT4 and MQL4. Thank you in...
Hi all. I am trying to extract values from an indicator (assume the name is "ABC_Indicator") that has several input values. I have source code of the indicator. Hence I use the iCustom function to create the following function to extract the buffer values ,as follows....