Forum

EA using a DEMA indicator

Dear Forum, I've found a DEMA working Indicator, that's working really good by using this code: Working Indicator with DEMA #property indicator_chart_window #property indicator_buffers 1 #property indicator_color1 DodgerBlue //---- inputs extern int MA_Period = 9 ; //--- buffers double

Array Out Of Range error on my custon indicator at line "BU[0]=BU[1]-BU[2]/3.414+(1/3.414)*Close[0]; "

Dear All, after a deep reading of the MQL reference I've started to program and translate an existing indicator from another system (realtimepro) This indicato get an ok from the Compile, but fail when attached to a chart. the fail message is Array Out Of Range , and from the debugger I see is at

OrderClose error on three EMA crosses EA

Dear Forum, I'm trying to program and test a simple base EMA program that buy and sell on the EMA crosses. There is the problema that the program is not opening orders, is only trying to close orders, I've reade the MQL4 references and tutorial for EA creation but till now I've not a clear idea of