You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I am trying to use "Indictors" in EA. instead the original iMACD we use.
But get some trouble .. there is no data . After I run on EA. There is no error message as initial., Create buffer there is no update data.
>><
ool CSignalmutiMACD2::InitMACD(CIndicators *indicators) { ... int subWindowId=(int)ChartGetInteger(0,CHART_WINDOWS_TOTAL); if(!indicators.Add(GetPointer(m_MACD1))) { printf(__FUNCTION__+": error adding object"); return(false); } //--- initialize object if(!m_MACD1.Create(m_symbol.Name(),PERIOD_CURRENT,m_period_fast,m_period_slow,m_period_signal,m_applied)) {//m_symbol.Name(),m_period_small,5,3,m_applied)) printf(__FUNCTION__+": error initializing object"); return(false); } chart1=iCustom(_Symbol,PERIOD_CURRENT,"macd_anytimeframe",m_period_small,5,3); if(chart1){ if(!ChartIndicatorAdd(0,1 ,chart1)) PrintFormat("Failed to add MACD(samll) on chart. Error code %d",GetLastError()); }else{ printf(__FUNCTION__+": error initializing small indictor object"); return(false); } //--- ok //--- add object to collection if(!indicators.Add(GetPointer(m_MACD2))) { printf(__FUNCTION__+": error adding object"); return(false); } ChartRedraw(0); //--- ok return(true); }