Forum

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