Forum

how to get value of this indicator?

when i want to get value of first buffer, it always shows empty value but in Data window shows that it ( buffer 0 ) has a value! this is the code of indicator: //+--------------------------------------------------------------------------------------+ //|

combine two indicator(PVI and Moving Average)

this is the code that i combined PVI and iMA but it doesn't show them correctly like the attached image. how to correct the code? //+------------------------------------------------------------------+ //| Demo_iMA.mq5 | //|

mql4 to mql5

i tried to convert this indicator code from mql4 to mql5. mql5 code shows nothing. what is mql5 code problem? mql4 code: //+------------------------------------------------------------------+ //| WelchHMABB.mq4 | //|

how to use icustom for this indicator?

i want to create an expert that use dark bands indicator? but it is complicated. can any body helps? first problem is icustom function.when i use iCustom ( _Symbol , PERIOD_CURRENT , "Dark Bands MT5" ) it works but i need complete dark bands variable in icustom. because i want to change the

convert pine script to mql5

can anyone help to convert this code to mql5? //@version=5 indicator( "condition counting with valuewhen" , overlay = true ) m1 = ta.ema(close, 30 ) m2 = ta.ema(close, 100 ) plot(m1, color = color .red) plot(m2, color = color .yellow) cond = ta.crossover(m1, m2) var int count = na if cond count

this indicator code runs too slow in testing. how it become faster without affect results of it?

#property link " https://www.mql5.com " #property indicator_chart_window #property indicator_buffers 2 #property indicator_plots 1 #property indicator_label1 "mColorLine" #property indicator_type1 DRAW_COLOR_LINE #property indicator_color1 clrRed , clrGreen , clrGray , clrBlue #property