Within OnCalculate, how can I know if the current bar has ended (the last tick was received) without waiting for the start of a next bar?
(13 1 2)
Hi, I'd like to know how can I know, within an indicator's OnCalculate, that the current bar is finished (that is, no new ticks will be send to that bar) without having to wait for a new tick, a new call of OnCalculate, addressed to the next bar. The scenario I have in mind: I have an indicator that
I just downloaded .mq5 from mql forum and when I double clicked it, it opened meta editor. My question is how can I apply the indicator(mq5) to the current chart in MT5 desktop? I'm really clueless
Hello, The OnDeinit () method for an indicator, no longer exists in MQL5? //+------------------------------------------------------------------+//| ttt.mq5 |//| Copyright 2018, Pierre Rougier...
Did anyone had issues with a line of code: if ((int) TerminalInfoInteger(TERMINAL_OPENCL_SUPPORT) == 0) { return 0; } that passes the validation and then on his pc had been debugging that same line and figured out that it always does "return 0" although OpenCL support is enabled? On my own pc
Hi, this is my report on a problem that started to happen with me some days ago and also the solution I found. I hope it might reach Metaquotes so they find a solution to this obvious bug (even though my situation with another of such problems gives me little hope for that). So what happened is that
I've been working with ONNX models and I want to draw my model's forecast on to the chart so that as time goes on I can visually see the difference between what the model was expecting and what actually happened. As trivial as that sounds, I'm having a headache trying to plot into the future. I've
I asked before for help on plotting future values directly on the chart, and I received informative help. I'd like to ask now, how can I plot into the future for your indicators. For example, I've got this indicator, shown in Fig 1, and I'd like to plot my predictions of what the indicator's value
Hi I am trying to convert a pinescript code into mql5 but the indicator values that I am getting on mt5 terminal do not match to the Tradingview Indicator. Any help would be appreciated. Pinescript Code: study ( "Average Force" , "AF" ) af(Series, High, Low, Period , PostSmooth) => period =
I've create a custom symbol ,like 5_second chart which is base on the tick data of XAUUSD. But there's no related functions like iMACD() to get the indicator data of this custom symbol, all of the Technical Indicator Function must be used with predefined standard timeframe. So, is there a good
Hello, everyone. I have a supertrend indicator. I want to set candle color according to supertrend's trend like attached image . could you help me? Thanks
Hello. Is it possible to change timeframe for anytime? Like 7minutes, 26Hours or 96seconds
Hey guys, I wrote a custom indicator that has two buffers, named as VIDYA and OTT. The problem is they show correct values when dropped on the chart, but wrong OTT values when testing in visual mode. VIDYA values are correct in both modes. Does anyone have an idea about the reason and solution
RSI_Test.mq5 | //| Copyright 2024, MetaQuotes Software Corp. | //| https://www.mql5.com | //+------------------------------------------------------------------+ #property strict // Input parameters for the RSI input int
I have attached two order block scripts that I coded. Any kind soul willing to help turn it into a indicator. Am sure the community will benefit from such kindness
Hello The indicator only reads the value for candle 0 and the value for candle 1 only If I change this line: for ( int j = i+ 1 ; j > 0 ; j--) And make it : for ( int j = i+ 2 ; j > 0 ; j--) The data for the indicator values becomes completely wrong My question is how do I make the indicator
https://www.mql5.com/en/docs/runtime/event_fire desperately needs update. Found a statement here: https://www.mql5.com/en/book/applications/indicators_make/indicators_test Attention! When testing indicators in the tester, the OnDeinit event does not work . Moreover, other finalization is not
Hello, I found an interesting indicator on Trading View - Z-Score Heikin-Ashi Transformed by EliCobra (tradingview.com/script/MFW8vsmU-Z-Score-Heikin-Ashi-Transformed) I am trying to create it MQL5 and I think I am almost done but at the end of the day it fails. Plotting regular HeikinAshi on the
Does anyone know any reason why my indicator's graphic objects do not get removed from the chart when the indicator is removed? After the indicator is removed, the objects appear in the chart's object list (CTRL-B). I'm using the latest build 4410 21.06.24 I'm calling ObjectDelete on all graphic
... Improperly formatted code removed by moderator. Please EDIT your post and use the CODE button (Alt-S) when inserting code. Hover your mouse over your post and select " edit " ... ... implicit conversion from 'string' to 'number' Teste.mq5 14 60 'TotalItems' - undeclared identifier Teste.mq5 42
Hi, I just want to know how does this guy was able to develop such an indicator that can be inserted as an object, and also how can he move the object(volume profile indicator) like this? https://www.youtube.com/watch?v=rH1wUSO1iXo (I know he did it in mt4 but I'm using mt5 and want to do it in mt5)
Hello, I found very useful Key Levels indicator from codebase here But the problem is that it draws lot of lines to the charts and during rapid price movements, like news, this indicator laggs candles, price and charts overall. So I would like to know is there any way to reduce the number of those
indicator plot nothing but compile with no error plz highlight my mistake #property indicator_chart_window #property indicator_buffers 2 #property indicator_plots 2 #property indicator_type1 DRAW_ARROW #property indicator_color1 DodgerBlue #property indicator_width1 2 #property indicator_label1 "buy
Hi every body I've wrote this code ObjectCreate ( 0 , "Close_Line" , OBJ_ARROW_DOWN , 0 ,Time_0,Close_0); But the result is : Please guide me how to make it's direction downward arrow
Hello, Is there anyone knowing Cluster Delta's footprint mql5 code for EA? Thank you
Hi everyone. I am currently using Supertrend on TradingView and a similar indicator in MQL5 with the same formula, but the middle line between the two is different. Can someone help me verify which formula is correct to display the middle line similar to the indicator on TradingView? Thank you
Can you help with this indicator cant seem to get it to draw the second timeframe fvg correctly and also not getting alerts for the second time frame //+------------------------------------------------------------------+ //| Fair_Value_Gap.mq5 |
Hi, I was creating an indicator that has 2 buffers. double x_1hr[] , x_30min[]; This indicator has to be used on 4 hr chart (for convenience purpose). But it needs to also populate values in the x_1hr and x_30min buffer array after some calculation in the onCalculate function. The value in these
Right, my patience has snapped. Why is MQL5 falling to realise that I'm trying to code an array? Seriously, it's the most ridiculous, stupid thing I have ever come across. Why am I getting, 'get_high_or_low' - unexpected token, probably type is missing? GlobalNamespace.mqh 342 10 Why am I
Hi,while uploading to metaquotes a new indicator,I receive the following error message:test on EURUSD,H1 (netting)not synchronized with trade serverwhat does it means?thank you
Hello, im trying to make an indicator that extends trendlines to the current time on the chart, this is the code //+------------------------------------------------------------------+ //| HorizontalTrendlines.mq4 | //| Copyright 2024

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.