private bool _checkFeedback(ChartTrendLine myline, string[] directive) { // --> Mi aspetto 5 elementi altrimenti avanti un altro if (directive.Length != 5) { return(false); } // --> L'ultima ha la precedenza, ovvero l'apertura if (directive[2] == Flag.OpenBuyStop) { myline.ToBuy().Stop(); } else if (directive[2] == Flag.OpenBuyStopBar) { myline.ToBuy().StopBar(); } else if (directive[2] == Flag.OpenBuyLimit) { myline.ToBuy().Limit(); } else if (directive[2] == Flag.OpenSellStop) { myline.ToSell().Stop(); } else if (directive[2] == Flag.OpenSellStopBar) { myline.ToSell().StopBar(); } else if (directive[2] == Flag.OpenSellLimit) { myline.ToSell().Limit(); } // --> Le chiusure else if (directive[1] == Flag.Over || directive[1] == Flag.Under) { myline.ToClose(); } else if (directive[1] == Flag.OverBar || directive[1] == Flag.UnderBar) { myline.ToCloseBar(); } // --> Gli alerts else if (directive[0] == Flag.Over || directive[0] == Flag.Under) { myline.ToAlert(); } else if (directive[0] == Flag.OverBar || directive[0] == Flag.UnderBar) { myline.ToAlertBar(); } else if (directive[0] == Flag.DISABLED && directive[1] == Flag.DISABLED && directive[2] == Flag.DISABLED) { myline.ToAllDisabled(); } else { return(false); } return(true); }