Good day to you all. I have experience coding in other languages so I am not a complete noob. That being said, being so new to MQL5, I know that I am making mistakes and need to learn the proper use and limitations of the language, which I am working on. I am not here looking for code or strategies
I have an EA that uses an indicator. I would like to see the indicator when running the EA. However, each time I change a parameter in the EA, the indicator is doubled in the chart. In the example below the Ibands has 3 lines, when I load the EA for the first time...but if I change any parameter in
I am working on an EA that for the last candle uses, say the value 5 candles ago. To visualize this, I use PLOT_SHIFT with a value of 5, so I can see the value 5 candles ago in the latest candle. Graphically looks fine. The problem I am having is that this ruins the data I get in the CopyBuffer
Hi, I am having difficulty programming a currency strength meter type indicator in python. I would later like to use it for a neural network. Could anyone help me? Thanks a lot
Hi all, I am a beginner and I'm trying to port in MQL5 an indicator I know in Pinescript and MQL4, the G-Channel made by god coder Alex Grover. I think I've done all I had to, but the indicators doesn't work as it should... Here is the code
Why there is not a MTF HULL MT5 inidicator ? There is MA, DEMA, ZERO LAG, JMA (even Bollinger , Dochian and etc ) Multi Time Frame MT5 indicators But when you look for Hull is imposible to find a funtional indicator. Anyone could give me a tecnical (good) explanation whay
I want to know is there an indicator or expert advisor in mt5 that can show candles by contracts e.g. one candle to represent 1000 contracts of any forex pair, metal, energy, etc. ??? If not can it be coded in MT5??? This is because trend lines are more accurate when bars represent contracts rather
Hello everybody, i'm a developer, i've just arrived on mql5 language, i would like to practice on the language, so i've encounter a problem in the mt5 UI it's possible to merge two indicators in a same window, i'm wondering about how can i know that for example, the RSI has cross the MACD
I was brainstorming the other day wondering how one would go about coding something like this logically. I had an idea involving plotting a 1 period sma on the highest highs of each candle (for example's sake) then with a vwap on a higher timeframe create a variable which runs through each possible
Hello, I'm trying to create an indicator to show some basic info but I have problems with text objects. It only draws the last text label like it's overwriting it, I suspect it's because of the indicator buffers but I'm not sure
I am trying to code an indicator (lets say a MA for simplicity) that is calculated in higher time frame data to be displayed in a lower TF chart. For this code, I have recycle several codes available in the code base, but I am falling short to find a way to color code the direction of the line. Say
Hello, I think simple question, how to change the OVB indicator showing the line mirror way. Going the other direction. Thanks
Hello - I have written an indicator that uses the OnChartEvent event that draws lines onto the chart. When this indicator is loaded by an EA using IndicatorCreate, drawing the indicator on the chart is not required. Although not drawn on the chart, the function for drawing the lines is still run
Dear Members I am iBars() in a indicator Class and it was working perfectly fine even on Saturday (Weekend). I than updated MT5 to the latest update released and after starting again, I was getting 0 values from iBars(). I wasted couple of hours to find cause in my code, just to realize that iBar()
Hi! I understand that the Average Daily Range is calculated over several days where each day's range (hi - lo) is averaged. Can someone explain to me what people mean when they say Weekly ADR or Monthly ADR or 180day ADR? How is it calculated? e.g. Does Weekly ADR = last week's ADR of the week's 5...
Hello all, I am unable to change the color of the indicator on my MT5 downloaded on my MAc book Air. Does anyone know how to do this? Would love any assistance. thanks all
I notice a refresh problem in the indicator when switching timeframe. I'm confused at what might be causing it. The buffers don't update properly when switching timeframe, and when right clicking the chart and clicking "refresh", everything updates in just one second. Even if I try ChartRedraw()
Hello,anyone who knows how to track the last bull/bear candle? I kindly ask for your help. simply,am looking forward to create an indicator that gives buy signals whenever the current bull candle closes above the last bear candle AND sell signals whenever a bear candle closes bolow the last bull
Hello, this code should plot some arrows but it doesn't. It only prints the correct values in the journal, please can you help me? #property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 Red #property indicator_color2 Blue // Inputs input int max_bars = 1000 ;
i want to show pivots in histogram in seperated window.i want it shows only recent 100 candles.but it doesnt show anythinh #property indicator_separate_window #property indicator_minimum 0.0 #property indicator_maximum 100.0 #property indicator_buffers 1 #property indicator_color1 Yellow #property
Hello everyone, I recently wrote this indicator to return buffers of the previous weekly high and low, but for some reason, it keeps being off. Some bars on the lower timeframe do not have buffers that correspond to the weekly high/ low. I tried to correct this by using this PeriodSeconds () but it
Hi. I am trying and failing to create custom comparers for generic collections of objects in MQL5. Can someone please help me work out what I'm doing wrong? Here is a minimal example of what I've tried. #property indicator_chart_window #include <Generic/ArrayList.mqh> #include
Dear Members Seeking advise to improve my code writing for the attached file, where I want to find VSA concept Efforts High and REsult Low. Currently I am using if statements and many conditions are repeated in different section of method. I am sure there should be a better way to achieve same
[Deleted]
hi,everybody.
this error what`s the mean?
"no indicator plot defined for indicator"
warning 1
have a good weekend.
created an indicator to move the obj by chartevent mouse move. problem is that object is moving asynchronously and lagging. how to make it faster? #property strict #property indicator_chart_window #property indicator_buffers 0 #property indicator_plots 0 double tmpPrice; datetime tmpTime=- 1 ; int
Hello everyone, How much it's difficult to convert for MT5 this indicator that is wrote in pine script? Seems very good indicator. Anyone have time to translate it? It's open source with Mozilla license. Thanks M
Hi All, I've searched everywhere for the answer to how to draw a MA on a newly opened chart . The chart opens as expected, but no MA. Here is the code, but I'm missing something somewhere. void OnStart () { long _longchart = ChartOpen ( "AUDUSD.a" , 60 ); // Open the chart of interest on the
I'm Looking for help on how to initialize terminal data before OnCalculate is called. Attached is a sample indicator and associated log file showing the errors posted - I thought that after calling CopyRates for an 'old' bar, eventually the data would download and things would start working - but...
Why is the sleep function not working properly within a while loop? bool loaded = false ; while (!loaded) { if ( CopyTime (BCIndex, PERIOD_CURRENT , time[start_pos - 1 ], time[rates_total - 1 ], BCtime) != - 1 && CopyTime (PCIndex, PERIOD_CURRENT , time[start_pos - 1 ], time[rates_total - 1
I am intrigued why among the many properties available to query for any position after closing, its highest Drawdown is no readily available? I noted such a data is plotted in one of the MQL5 reports for an EA, but in the list of entries such data in not available. In TradingView this information is
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.