Why is this happening? do I need to re-install Metatrader/MetaEditor completely from scratch? Am I supposed to add an #include file? What's going on here? I searched the internet and I can't seem to find a similar issue anywhere. I'm using it in the OnCalculate area. I've tried typing it in other
im trying to add this value of the indicator: speed as buffer , please help! i did SetIndexBuffer , but then what i have to do ? //+------------------------------------------------------------------+ //| Speedometr.mq5 | //|
Hello,
my MTF (multi-timeframe) indicator works fine on opened market (when new ticks are received -> starting OnCalculate() function).
E.g.: I see D1 moving average values on 10min chart...
Problem is on the closed market where no new ticks are received. I get error 4806 (BarsCalculated function...
Please how can I fix the following errors in the below code? 1.'if' expressions are not allowed on a global scope. 2.'}'expressions are not allowed on a global scope. 3.'if'open parentheses expected. 4.'first'-undeclared identifier 5.'}'-not all control paths return a value
I used the default MetaTrader Parabolic SAR and ADX in an EA but wasn’t working. Then I backtests each indicator and observed that neither of the indicators are reading data. The data window is blank even the ADX didn’t load at all only the ADXW did. What could be wrong
Hi there? Please inform me how I can solve these 9 errors Line 1: OnCalculate function not found in the custom indicator Line 52: 'AbsMOMBuffer'- undeclared identifier Line:52: ' AbsMOMBuffer'- variable expected Line 52
This indicator will simply be a list of 5-6 different indicator values, each followed by a Green up arrow or a Red down arrow. This indicator should show in the window below the chart
Hello I start in programming mode under mql5 I look at the following code https://www.mql5.com/en/code/491 and I look for the line number where the program draws the blue or pink point in the function int OnCalculate(const int... thanks
Hi, I use daily timeframe to display indicators like MACD etc. For this purpose the iMACD-function uses the daily bars of the underlying equity. How do I calculate a new MACD that uses daily bars (24h) where the bar starts at an arbitrary hour, e.g. 10:00 and lasts until 09:59 the next day? Thanks
Good Day all, So I've plotted an RSI indicator to the main chart and on the same window (of the RSI), I've plotted several MA's. Anyone know if there's a way of getting the MA values relative to the subwindow? I was able to get the MA handles from the subwindow but when retrieving the values, I get
#property strict #property indicator_chart_window #property indicator_buffers 10 #property indicator_plots 4 #property indicator_label1 "Start FVG Bull" #property indicator_label2 "End FVG Bull" #property indicator_label3 "Low FVG Bull" #property indicator_type3 DRAW_ARROW #property indicator_color3
Hi I am trying to change the following code so it does outputs (like in picture) symbols that satisfy the adx cross and/or ma cross If a symbol just satisfies one condtion it will put 1 after them like in the picture If the symbol satisfies both it will put 2 after the symbol . x number for x number
Hi guys,
I used iRSI function in following format
int iRSI(
string symbol, // symbol name
ENUM_TIMEFRAMES period, // period
int ma_period, // averaging period
ENUM_APPLIED_PRICE applied_price // type of price or...
Hi guys! I'm a bit new to the MT5 system and would like your help. I've recently come across a free indicator on the library and really enjoyed it. I've saved the .ex5 file because I want to have it in case it disappears from the indicators library. My question is: having this .ex5 file would still
We cannot see the codes of paid or free downloads from the market in the "MetaEditor". Is this security a facility provided by the "Market" or is there an algorithm for it
double Array_MA10[]; int OnInit () { //--- indicator buffers mapping SetIndexBuffer ( 0 ,ShiftedMABuffer, INDICATOR_DATA ); //--- return ( INIT_SUCCEEDED ); } //+------------------------------------------------------------------+ //| Custom indicator iteration function
//+------------------------------------------------------------------+ //| Nad_Envelope.mq5 | //| Copyright 2022, MetaQuotes Ltd. | //| https://www.mql5.com |
Hi All I have created custom iSuperTrend and want to remove the line which is drawn when trend changes. The attached screenshot will explain it better. PlotIndexSetString (_BufferSuperTrend, PLOT_LABEL , "ST Fast (" + IntegerToString (ATRPeriod)+ "," + DoubleToString (ATRMultiple, 2 )+ ")" );
Hello I wander what is the mistake in this indicator because it isn't update the data on chart every candle? #property strict #property indicator_chart_window #property indicator_buffers 1 #property indicator_plots 1 #property indicator_type1 DRAW_LINE #property indicator_width1 1 #property
Please how can i lock an indicator to an account number and also add expiry date to the indicator
Hello, i would like to ask someone to help me. I have two ''Support and Resistance'' indicators. One indicator has no alert but works fine and the other one has an alert (it does not work though) and also when you change indicator colour or width it returns back to default settings. So, I would like
1)when we add the same indicator to a chart The oninit function of the first added indicator is working. 2) When Oninit is not running, I cannot use the ChartWindowFind() function. How will it be possible to control the window with the objects that I will add to the indicator
In order to stop some things : Daily data is a simple tool to show information I find useful in my trading It is not and it was not an elite section indicator (indicators in elite section are much more serious than this one) This one is simply a tool that does not take too much space, looks rather
Hello im new to this kinda stuff, wanted to ask if it is possible to take data from, mt5 or mt5 indicator from an API or websocket, or another way i might not know. I want to build an algorithm and automate an indicator
Hi, does anyone have indicator that show how much time in precentage price spend in lower and upper half of the candle? I think we could get nice result if we could compare that value to volume of upper and lower half of candle
Hi all looking for a script so that I can set a maximum ADR and once this is breached the candle is highlighted, For instance if I wanted to see all previous daily candles where the ADR breached 300 pips on XAU it would highlight the candle Thank you in advance :)
Hi, I'm a JavaScript/TypeScript dev with some Java, C experience. I'm interested in creating custom indicator/indicators. I wish to manipulate the main chart to have some indicators on candle side and on the bottom of the chart. I want to ask more experience MQL devs on what approach would be
Hello all Does anyone know how to setup alert for the indicators? Thanks
as any one experienced promblem with exness terminal to use any indicator? is there a special code to make it work with exness terminal
Hello Does anyone know how to install customed indicators on the charts in mobile app? Thanks
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.