Asesores Expertos: Binario
Expert no funciona. Error al compilar.
adriana cs :
Expert no funciona. Error al compilar.
Expert no funciona. Error al compilar.
El lenguaje MQL5 evoluciona constantemente y, en consecuencia, se vuelve cada vez más estricto. Sustituya la función por la corregida:
//+------------------------------------------------------------------+ //| Lotes o riesgo en porcentaje para un acuerdo de un margen libre | //+------------------------------------------------------------------+ bool LotsOrRisk(const double lots,const double risk,const int digits_adjust) { if(lots<0.0 && risk<0.0) { Print(__FUNCTION__,",ERROR: Parameter(\"lots\" or \"risk\") can't be less than zero"); return(false); } if(lots==0.0 && risk==0.0) { Print(__FUNCTION__,", ERROR: Trade is impossible: You have set \"lots\" == 0.0 and \"risk\" == 0.0"); return(false); } if(lots>0.0 && risk>0.0) { Print(__FUNCTION__,", ERROR: Trade is impossible: You have set \"lots\" > 0.0 and \"risk\" > 0.0"); return(false); } if(lots>0.0) { string err_text=""; if(!CheckVolumeValue(lots,err_text)) { Print(__FUNCTION__,", ERROR: ",err_text); return(false); } } else if(risk>0.0) { if(m_money!=NULL) delete m_money; m_money=new CMoneyFixedMargin; if(m_money!=NULL) { if(!m_money.Init(GetPointer(m_symbol),Period(),m_symbol.Point()*digits_adjust)) return(false); m_money.Percent(risk); } else { Print(__FUNCTION__,", ERROR: Object CMoneyFixedMargin is NULL"); return(false); } } //--- return(true); }
Binario:
Trabajo con órdenes pendientes Buy stop y Sell stop . Canal a base de dos indicadores iMA (Moving Average, MA).
Autor: Vladimir Karputov