When I call an indicator like the simple moving average it's not the same as the line shows on the chart. Here's my code, Alert ( "Symbole : " , _Symbol ); Alert ( "Timeframe : " , PERIOD_CURRENT ); int handle = iMA ( _Symbol , PERIOD_CURRENT , 21 , 0 , MODE_SMA , MODE_CLOSE ); double ma_arr[];
Hi everyone, I made myself an indicator which, however, needs a lot of time(too much?) for calculation. I like to use it on lower timeframes with many(can be ~1000) intervals to calculate. Indicator values, once calculated in history(index values 1 and higher in time series ) do not change and
Good Day everyone, i have been not been long on this forum but ever since joining and ive been reading some amazing content ya'll is posting. however i yet to find a topic on how to covert a .ex file to a .mq5 file. there is a indicator that i got but its only a .ex file and when i open my
Hello I have this system which is supposed to wait until a number of bars has been loaded on the chart of the indicator. (or that's what i think it achieves) Why ? the calculation that has to "result" in a "signal" has to be done strictly in a sequence and with a minimum required amount of
I would like to ask for your opinion. I am currently analyzing historical data and using it to predict future customer behavior (non-FX industry). This is a so-called big data analysis. I am thinking about a scalping indicator that would be based on historical market behavior. Creating a history of
As from the title, how can I prevent chart objects from being seen in foreground in MQL5? I have also tried with OBJ_RECTANGLE_LABEL by setting different foreground properties of the chart and of the rectangle object, but without success. As soon as I drag my EA (with the rectangle object) onto
I have found that placing one Object within OnInit() exponentially improves the loading of all other Objects created within a custom function or anywhere below OnInit(). Up top in the global scope: bool initialized; Inside OnInit(): ObjectCreate ( 0 , "Initial_Object" , OBJ_LABEL , 0 , 0 , 0 );
Please, I am unable to locate the indicator coloring buffers that I will leave attached, could someone help me
Hi Guys, Metatrader 5 Version: 5.00 Build 1940 02 nov 2018 I Created a trend line by angle like it: #include <ChartObjects\ChartObjectsLines.mqh>CChartObjectTrendByAngle trend;trend.Create(0,"HowGetAngle",0,time1, price1, time2, price2)); When I try get a angle: double trend_angle = trend.Angle();...
Good day fellas Can someone kindly assist me in coding a RSI(10) with a [SMA(10), Apply To: Previous Indicators Data...] Like so: (iRSI(NULL,0,10,PRICE_CLOSE,0)>iMA(NULL,0,10,0,MODE_SMA,.......,0) The blank part I want it to be Applied To: Previous Indicators Data. Your assistance will be highly...
i create Trend line by angle with code ObjectCreate ( 0 , "a" , OBJ_TRENDBYANGLE , 0 , iTime ( _Symbol , PERIOD_H1 , 10 ), iClose ( _Symbol , PERIOD_H1 , 10 ), iTime ( _Symbol , PERIOD_H1 , 15 ), iClose ( _Symbol , PERIOD_H1 , 15 )); ObjectSetInteger ( 0 , "a" , OBJPROP_COLOR , clrBlue );
Hi! What type of data should I have to create my own live graph like the Trading View in MQL5/MQL4? And where can I find the code to display it and make it alive? Thank you for reading my question at least
hi - so possibly an uber-noob question, but i would like the values of the MA's im using to show on the y-axes of my chart - similar like how the current bid/ask is shown in grey/red - but then in the colour of that particular MA. Anybody have an idea on how to go about this? Thanks
Hi, I Add some levels to Fibonacci Retracement but now I can not use F Retracement tool and it is locked. how can I fix the problem
Hello, a function of my indicator is to get history data and visualize the information of the History tab of MT5 to make it easier for me. The thing is that after some tries I realized I was getting double the number of positions that I had in the MT5 history tab. although I was getting the correct
Is there any better way to add custom timeframe rather than creating an indicator for that? The problem with this approach is to modify existing indicators to work/get data of the first indicator
So I wanted to use a Bollinger Band Width indicator in mt5 but the only one available for free measured it in a weird ticksize so using it in optimizations or multisymbol EAs is not possible because of the huge difference in values. So I took the one from tradingview and tried to convert it into a
void drawlr( string points) { string res[]; StringSplit (points, ',' , res); Print ( "res[0]" ,res[ 0 ]); Print ( "res[1]" ,res[ 1 ]); if ( ArraySize (res)== 2 ) { double close_array[ 1 ]; CopyClose ( _Symbol , PERIOD_H1 , 0 , 1 , close_array); datetime todays_time = iTime ( NULL
Hi Traders/Devs, I am trying to create quite a complex indicator that pulls data from the 28 major pairs and I keep getting error 4806 when I try to copy the handle data to the buffer, can you see what is wrong? Pairs is an array with lists of pairs, in this case I tried to get the RSI value for all
Hello everybody, I'm trying to set the color and degree properties for an Elliott Wave object with the following code ObjectSetInteger(0,"ElliottWaveMotive",OBJPROP_COLOR, clrWhite); ObjectSetInteger(0,"ElliottWaveMotive",OBJPROP_DEGREE,ELLIOTT_INTERMEDIATE); However, the color and degree are not
Hi I bought 3 indicators and downloaded them without any problem, but later on I am unable to install my indicators. When I click to download the page go to the payment page, but when I click to download the free indicator they can download fine. Can you help me to solve this problem, I can not
Does anyone have a large collection of oscillators (works best in a trading range) that he/she put together? Maybe we could start a thread where all oscillators are gathered. And let's go a little beyound RSI and Stochastic
i go an error ';' - open parenthesis expected Line 158 column 23 here is the code //+------------------------------------------------------------------+ //| NSNDHistory.mq5 | //| Converted to MQL5 by OpenAI |
Like title , is possible open chart without chart ? or i can do it only if i cover up with colored square ? thanks
Hi , i am new to coding with mql5 and i struggle to find a way of returning the monday high and low . I don't even know where to start from to be honest. Thank you
Hello everyone, I have spent countless hours trying to find the mathematical formulas for the stochastic oscillator both on the web in general, as well as MQL, and I don't seem to be able to find the answers that I am looking for. To be clear, I am not interested in the simple formula that is used
Can someone tell me how to import real volume into MT5? I trade CFDs on crypto, so the Volume Indicator doesn't provide real volume. Is there any way to do this? Thank you
Hello, I am working on a project . Within this project , I need to write a method that uses more than one array. But I couldn't get the result I wanted. Can anyone help me? The pinescript formula: smoothrng( int float , int t, float m) => wper = t * 2 - 1 avrng = ta.ema(math.abs(x - x[ 1 ])
In my current strategy, I want to use the values of the highs and lows of a ZigZag Indicator. Sadly enough, I can't figure out how to return/store these values. I figured since the indicator already draws the lines, finding out the high and lows and storing this would be easy enough. Anyone happens
MT 5.00 build 4755, testing 1 month Dec. 2024 H1 timeframe but the problem is limited to that. I consistently was seeing a custom indicator being incorrect when testing but working when only used as an on-screen indicator. The problem was traced down to a calculation "diff = close[index] -

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.