Forum

HMA indicator Of the monthly interval

Hello Folks, I'm new to MQL5 , I have been trying to code the HMA of the monthly timeframe but no success, I coded it to be calculated on the current timeframe then changed the interval to PERIOD_MN1 but no success here's my code, I'd really appreciate it if someone told me what I could be doing

Problem making indicator disappear from the chart

Hello Folks, I'm making an indicators that draws Daily Moving average and a horizontal line at the value of the last bar of the moving average I made a boolean variable (switch) for each line to control when both lines should be drawn (when the value of the switch =True then draw the lines on the

Difficulty understanding loops over bars and SetAsArray

Hello Folks, I have several issues as a newbie in mql5: 1- problem understanding how loops work and how to access the latest bar and the bars before it (is the index of the previous bar i+1 or i-1 how to decide), 2-does SetAsArray function affects how the loop works also are the user defined arrays

What is the equivalent of iMAOnArray on MQL5

Hello Folks, Recently I had to shift from mql4 (which I can code) to mql5 I want to create a moving average on a custom array that I have after some calculations in mql4 I used to calculate it as follows customMA[i] = iMAOnArray(customArray, Bars , maPeriod, 0 ,maMethod, i); I have done my search

Indicator shows wrong results while mt4 connected to the internet

I have a table indicator that shows whether there is a buy or a sell signal on the last bar based on a criteria that I coded, For some reason that I don't know the indicator shows correct signals when the market is closed or the pc isn't connected to the internet and when connected the indicator

How to make a Custom Indicator Produces Multiple Timeframes Signals

Is there a possible way to make a custom indicator that I coded produces combined signals for multiple timeframes at the same time? and if yes how