1 Adjunto(s) Necesito esta compra ea solo cuando el precio supere los 300 ema y 700 ema.
Mercado cuando el precio sube 300 ema y 700 ema.
Condici�n correcta por favor cualquier 1
//----------------------- ESTABLECER VALOR PARA VARIABLE
OpenPricePrevious = iOpen (NULL, TimeFrame, 1);
ClosePricePrevious = iClose(NULL,TimeFrame,1);
OpenPriceCurrent = iClose (NULL, TimeFrame, 0);
MAValuePrevious = iMA (NULL,TimeFrame,MAPeriod,0,MAMethod,MAPrice,1);
MAValueCurrent = iMA (NULL,Marco de tiempo,MAPeriod,0,MAMethod,MAPrice,0);
MAValuePrevious700 = iMA (NULL,TimeFrame,MAPeriod700,0,MAMethod,MAPrice,1);
MAValueCurrent700 = iMA (NULL,TimeFrame,MAPeriod700,0,MAMethod,MAPrice,0);
//----------------------- SI NO HAY NEGOCIO
si (completar lt; 1)
{
//----------------------- CONDICI�N DE COMPRA
si(
OpenPriceCurrent gt;MAValueCurrent700
MAValueCurrent gt;MAValueCurrent700
OpenPriceCurrent gt;MAValueCurrent)
ticket = subOrdenAbierta(OP_BUY);/abrir orden de COMPRA
subCheckError(boleto,COMPRAR);
retorno(0);
//----------------------- CONDICI�N DE VENTA
si(
OpenPriceCurrent lt;MAValueCurrent700
MAValueCurrentlt;MAValueCurrent700
OpenPriceCurrent lt;MAValueCurrent)
boleto = subOrdenAbierta(OP_VENTA);/abrir orden de VENTA
subCheckError(boleto,VENDER);
retorno(0);
retorno(0);
https://www.forexycfds.com/attachmen...0152135888.mq4