Forum

Array out of range

Hi I have an custom EMA that calculate daily HLC/3 as its applied price I get the error " array out of range when it's initializing, then the error disappears when I change the time frame Thank you! datetime time1[]; ArrayCopySeries(time1,MODE_TIME, NULL , PERIOD_D1 ); for (i= 0 ,y= 0

Indicator issue history drawing

Hi, I coded a custom indicator , it works fine until new candle opens, after that indicator stops history drawing what's wrong with it??? thanks #property strict #property indicator_chart_window #property indicator_buffers 1 #property indicator_label1 "Slow" #property indicator_color1 Gold #property

Indicator stops calculating

int OnCalculate ( const int rates_total, const int prev_calculated, const datetime &time[], const double &open[], const double &high[], const double &low[], const double &close[], const

Array out of range

Compiler doesn't get Error but when I attach Indicator to the chart Expert logs Array out of range (116,32) it means Close[z] by the way all of calculation of pprice() function correctly is done and it's drawn on the chart, but it doesn't generate any output

Custom EMA

Hi, I need an EMA on 15M timeframe (period = 96) that calculate dynamic hlc3 daily as each candle price Thanks for your help 🙏🏻🙏🏻