Hi everyone, I usually use Average True Range Histogram Color for trading. Now I want use this indicator with other symbol 's parameter in current chart. For example: My current chart is "gbpusd" symbol but Indicator window show ATR histogram of "eurusd" symbol. Or My chart is "USDJPY" but ATR...
[Deleted]
Can anyone help with this code, it compiles and 'works', but only draws the lines when time frames are changed, #property copyright "Coded by Manic Miner"#property indicator_chart_window#property indicator_buffers 0#property indicator_plots 0input ENUM_TIMEFRAMES TimeFrame=PERIOD_M1;input...
I want to convert an EA from MT5 to MT4, the EA works best on some of the non-standard Time Frames, Is there a way to get these non standard TF data in MT4, I found in the documentation it says you can use them in offline charts only(int MQL4)... Is there a workaround for this? Thanks in advance..
Hello, I am using Metatrader 4 I want to be able to do the following: If I draw some lines on a FOREX pair (let's assume we are talking about EURUSD ) When I open another 3 charts of EURUSD I want the same lines to be drawn in the new charts too. How can this be accomplished ? Thanks
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 ??? }...
Is there a better‘formula’ in MQL4 to know if the EA is executing on a 4 digit broker or in a 5digit broker? int digits = (int) MarketInfo("EURUSD", MODE_DIGITS);//digits is expected to be 5 in 5 digits brokers, and 4 in 4 digits brokers
This code is evaluates to true if there is a trend line but not with horizontal line which is what I want as well. How can it be fixed to allow both? Thanks void OnTick() { int obj_total=ObjectsTotal(); for(int i=0;i<obj_total;i++) { string name=ObjectName(i);...
I tried to make RCI (Rank Correlation Index) indicator with updown color (file: RCI in Color). Based on the file "RCI_1Line," by using iCustom. Though there are no errors in Meta Editor, it does not draw any lines on my chart. Does anybody help to solve this problem? I 'm just a beginner learing...
Hello, I 'm looking at an expert based on the High over last 10 Bars (H1) I want to calculate the Low since last High was touched Here's what I did but the problem is it gives me the Low since a time equal to the beginning of the Bar where the High was hit and what I want is the exact time when the...
Hi, I have a compiled indicator. When the indicator is in use I can see in the data window 19 values that I would intercept with the iCustom function in my EA. Is there a way to do this?
Hey guys so last year I developed an EA to automatically take trades for me. My strategy works very well as long as you know how to read price trends. Anyways as you can tell my code is quite basic and I only knew enough to code this EA since my strategy is real easy to understand. So now I would...
'New_Experts' obtains its value from 'Quantity', which obtains its value from 'Experts'... So how can 'New_Experts' and 'Experts' ever have a different value, therefore allowing the condition 'if (Experts!=New_Experts)' to return true?...
Hi everyone, my VPS was working fine. And lately it turns off by itself or stay pending. I start it and turn green. And then few minutes after it goes off. Did anyone already got this issue ? And know where the problem can be ? Thank you for your help !
Hello all third time I post here and need urgent help. It is possible to add 2 datetime if I use of int Year,Month,Day,Hour,Min,Sec. examples of 2 datetime first has setup the all extern int to 2018 for year, 05 for month, 15 for days, 02 for hours 22 for min and 0 for sec and I want to know if I...
Hi, I am trying to code a user defined function in which I would like to calculate the required lot size of the last martingale order in a cycle to achieve breakeven on certain price , upon reversal. For example, Buy orders 0, 1,2, and 3 were already opened while the price going down. Now, I want to...
Hi guys, I have an indicator that exports historical price data to csv files. I'm not much of a coder and am having trouble with this. What I'd really, really appreciate it would be if someone would be able to help where and how to put a loop in the indicator, details are as follows: 1. The
Is using object pointers when creating a graphical panel(using CDialog .mqh), slows down the platform
I came across this solution while searching for trendline strategies. https://www.iexpertadvisor.com/metatrader-mql-course-module-13-using-a-trendline-in-an-expert-advisor/ But I am having a slight issue with the code and I do not know why the problem exist. The logic of the code seems correct. I...
Hi all I have created a DLL that reads the data in a text file on the server and everything works correctly. Now I want to split the URL in the DLL and pass part of the path as an input parameter in my mql code but it does not work. my DLL is: extern "C" { __declspec(dllexport) int
Hi, I need a code that can do the following:Resistance_1 = High [x]1.- Yes High [x] <Close [1] {New_resistance = High [1]}2.- If High [x]> Close [1] {the next candle continues until it breaks the resistance}What I'm looking for is for the candles to continue until the break, respecting the previous...
Hi, Any one can help me with this situation as i'm new to mql4 programing. I would line to find the last red candle as it is showing in the attached photo. I know only one way to do that. But the problem is (What if the Red candle it is not in fifth bar back??) for Ex: if it in 4 or 3 or even in 7?...
Hello I'm mql4 beginner. Now I'm studying about indicator. But I have an error while learning to watch a movie. Error comment is " 'Temp2' is not expert and cannot be executed ". How can i fix it? +) movie link is https://www.youtube.com/watch?v=1C52a0B2sVE and I saw until 17:40 +) Code #property...
Hi. I'm beginner and sorry for the stupid question. I see "[10,10,10]" for the first time and can't infer that. When use it? I saw mql4 manual and attached it bottom Thanks in advance!
Anyone could able to modify my code, so the alert can only be done right after the candle closed?
(6)
Hey guys, I have written a alert indicator. I found out that, the indicator send out alert before the candle closed. Kindly let me know which part of my code need to be amended. Thanks! #property indicator_chart_window#property indicator_buffers 2#property indicator_color1 clrGreen...
The function iCCI https://docs.mql4.com/indicators/icci uses ENUM_APPLIED_PRICE. Which of the this paramter is the one the default CCI indicator uses? so that I can duplicate the same value in my code using the iCCI? the values are here https://docs.mql4...
Hi Everybody, I am trying to install kaufman EA to my MT4 but i couldn't, it says "Tester: Cannot load expert..".. What is the erroe? are you able to use this EA in your MT4? KK
I wanted to convert ExpAverage in thinkorswim to mql4 function. I cannot seem to find any argument to iMA function which takes source. any idea? I want to convert following small code to Mql4 def ap = hlc3; def esa = ExpAverage(ap, 10); def d = ExpAverage(AbsValue(ap - esa), 10); def ci = (ap - esa)...
After getting the indicator name to feed in the code below so that I can get the value, I am getting a compile time error. Any idea how to get the value of the indicator "RSI" printed out? Thanks Print("indicator short name is: " + ChartIndicatorName(0,1,0)); // reported...

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.