almu08
23/10/2012, 17h20
1 pièce(s) jointe(s) bonjour
peut-être une question stupide, mais où dans le code le code obtient-il son signal. J'ai lu :
BuyCondition = vrai ;
TradeDirection = HAUT ;
CrossTime = iTime(NULL,TimeFrame,0);
mais où sont les UP référencés, comment ça se passe maintenant et le signal up?
désolé d'être apparu comme un débutant, mais je n'ai jamais vu ce style de codage auparavant, il est brillant dans sa simplicité et je veux apprendre.
Kenny
Code inséré if(ConfirmedOnEntry==true) { if(CheckTime==iTime(NULL,TimeFrame,0)) return(0); sinon CheckTime = iTime(NULL,TimeFrame,0); FastMACurrent = iMA(NULL,TimeFrame,FastMAPeriod,FastMift,FastMATyp e,FastMAPrice,1); SlowMACurrent = iMA(NULL,TimeFrame,SlowMAPeriod,SlowMift,SlowMATyp e,SlowMAPrice,1); } else { FastMACurrent = iMA(NULL,TimeFrame,FastMAPeriod,FastMift,FastMATyp e,FastMAPrice,0); SlowMACurrent = iMA(NULL,TimeFrame,SlowMAPeriod,SlowMift,SlowMATyp e,SlowMAPrice,0); } CrossDirection = subCrossDirection(FastMACurrent,SlowMACurrent);/---------------------- VÉRIFICATION DE CONDITION if(ReverseCondition==false) {/--------------------- ---------- CONDITION D'ACHAT if(CrossDirection==UP) { BuyCondition = true ; TradeDirection = HAUT ; CrossTime = iTime(NULL,TimeFrame,0); }/---------------------- CONDITION DE VENTE if(CrossDirection==DOWN) { SellCondition = true; TradeDirection = BAS ; CrossTime = iTime(NULL,TimeFrame,0); } }
évaluation environnementale complète ci-jointe
https://www.sundytrading.com/attachments/1529191336967697469.2 (modified by simtese to manage maximum lots)
peut-être une question stupide, mais où dans le code le code obtient-il son signal. J'ai lu :
BuyCondition = vrai ;
TradeDirection = HAUT ;
CrossTime = iTime(NULL,TimeFrame,0);
mais où sont les UP référencés, comment ça se passe maintenant et le signal up?
désolé d'être apparu comme un débutant, mais je n'ai jamais vu ce style de codage auparavant, il est brillant dans sa simplicité et je veux apprendre.
Kenny
Code inséré if(ConfirmedOnEntry==true) { if(CheckTime==iTime(NULL,TimeFrame,0)) return(0); sinon CheckTime = iTime(NULL,TimeFrame,0); FastMACurrent = iMA(NULL,TimeFrame,FastMAPeriod,FastMift,FastMATyp e,FastMAPrice,1); SlowMACurrent = iMA(NULL,TimeFrame,SlowMAPeriod,SlowMift,SlowMATyp e,SlowMAPrice,1); } else { FastMACurrent = iMA(NULL,TimeFrame,FastMAPeriod,FastMift,FastMATyp e,FastMAPrice,0); SlowMACurrent = iMA(NULL,TimeFrame,SlowMAPeriod,SlowMift,SlowMATyp e,SlowMAPrice,0); } CrossDirection = subCrossDirection(FastMACurrent,SlowMACurrent);/---------------------- VÉRIFICATION DE CONDITION if(ReverseCondition==false) {/--------------------- ---------- CONDITION D'ACHAT if(CrossDirection==UP) { BuyCondition = true ; TradeDirection = HAUT ; CrossTime = iTime(NULL,TimeFrame,0); }/---------------------- CONDITION DE VENTE if(CrossDirection==DOWN) { SellCondition = true; TradeDirection = BAS ; CrossTime = iTime(NULL,TimeFrame,0); } }
évaluation environnementale complète ci-jointe
https://www.sundytrading.com/attachments/1529191336967697469.2 (modified by simtese to manage maximum lots)