Répondre

Lots maximums Protection pas plus de 100

7 réponses

bobotrade

Abonné, bbp_participant, communauté, 6 réponses.

Visiter le profil

Il y a 9 ans #113470

Bonjour,

 

La fonction "Lots maximums" n'accepte pas les nombres supérieurs à 100

 

C'est un problème avec mon courtier (FXCM) sur le DAX qui opère des micro-lots sans décimales.

 

 

Merci de votre aide

0

Mark Fric

Administrateur, sq-ultimate, 2 réponses.

Visiter le profil

Il y a 9 ans #129367

Bonjour,

 

Pouvez-vous me dire ce que vous voulez faire ? S'agit-il d'une erreur dans l'EA Wizard ? Si votre courtier ne supporte pas plus de 100 lots, il me semble qu'il s'agit d'une limitation du courtier.

Marque
StratégieArchitecte de Quantités

0

bobotrade

Abonné, bbp_participant, communauté, 6 réponses.

Visiter le profil

Il y a 9 ans #129389

Bonjour,

 

c'est une erreur avec l'EA Wizard. Lorsque je mets plus de 100 lots dans la protection Maximum Lots 1TP9, l'EA n'ouvre pas les positions.

 

Et mon courtier FXCM n'a pas de limitation, je peux ouvrir manuellement plus de 100 lots sans problème.

0

bobotrade

Abonné, bbp_participant, communauté, 6 réponses.

Visiter le profil

Il y a 9 ans #129421

Bonjour,

 

Une solution, s'il vous plaît ? C'est un problème important pour moi.

 

merci d'avance 😉

0

nolube

Client, bbp_participant, communauté, 115 réponses.

Visiter le profil

Il y a 9 ans #129436

Avez-vous essayé de saisir 999 ?

 

Désolé, je ne sais pas si cela vous aidera ou non, car je n'utilise pas vraiment le logiciel.

0

bobotrade

Abonné, bbp_participant, communauté, 6 réponses.

Visiter le profil

Il y a 9 ans #129453

Bonjour

 

Avez-vous essayé de saisir 999 ?

 

Désolé, je ne sais pas si cela vous aidera ou non, car je n'utilise pas vraiment le logiciel.

 

Bonjour, bonne idée mais qui ne fonctionne pas... :unsure :

 

Une solution, s'il vous plaît ?

0

bobotrade

Abonné, bbp_participant, communauté, 6 réponses.

Visiter le profil

Il y a 9 ans #129576

Bonjour, avez-vous une solution pour mettre plus de 100 lots ?

 

Je ne peux pas utiliser le money management et je suis bloqué dans le développement de mon EA :wacko :

0

bobotrade

Abonné, bbp_participant, communauté, 6 réponses.

Visiter le profil

Il y a 9 ans #129582

peut-être quelque chose à changer dans le code de l'EA ?

//+------------------------------------------------------------------+
//+ Money Management functions
//+------------------------------------------------------------------+

double sqMMGetOrderStopLossDistance(int orderMagicNumber, int orderType) {
   double openPrice = getOrderPrice(orderMagicNumber);
   double slSize = getOrderStopLoss(orderMagicNumber, orderType, openPrice);

   if(slSize == 0) return(0);

   if(orderType == OP_BUY || orderType == OP_BUYSTOP || orderType == OP_BUYLIMIT) {
      return(openPrice - slSize);
   } else {
      return(slSize - openPrice);
   }
}

double sqMMFixedRisk(int orderMagicNumber, int orderType) {
   Verbose("Computing Money Management for order with Magic Number: ", orderMagicNumber," - fixed risk");

   double slSize = sqMMGetOrderStopLossDistance(orderMagicNumber, orderType) * gPointPow;
   if(slSize <= 0) {
      Verbose("Computing Money Management - Stop Loss is zero, using Lots if no MM: ", 5.0);
      return(5.0);
   }

   double _riskInPercent = Risk;
   double _lotsDecimals = 2.0;
   double _maximumLots = 100.0;
   double _exchRate = 1.0;

   if(_riskInPercent < 0 ) {
      Verbose("Computing Money Management - Incorrect RiskInPercent size, it must be above 0");
      return(0);
   }

   double riskPerTrade = (_exchRate * AccountBalance() *  (_riskInPercent / 100.0));
   if(slSize <= 0) {
      Verbose("Computing Money Management - Incorrect StopLossPips size, it must be above 0");
      return(0);
   }
   Verbose("Risk per trade: ", riskPerTrade);

   Verbose("Computing Money Management - SL: ", slSize, ", Account Balance: ", AccountBalance(),", Tick value: ", MarketInfo(Symbol(), MODE_TICKVALUE),", Point: ", MarketInfo(Symbol(), MODE_POINT), ", Lot size: ", MarketInfo(Symbol(), MODE_LOTSIZE),", Tick size: ", MarketInfo(Symbol(), MODE_TICKSIZE));
   double tickValue = MarketInfo(Symbol(),MODE_TICKVALUE);

   double lossPerTick = riskPerTrade / slSize;
   Verbose("Computed lossPerTick: ",lossPerTick);
   double lossPerTick2 = lossPerTick;
   if(Digits == 1 || Digits == 3 || Digits == 5) {
      lossPerTick2 = 0.1 * lossPerTick;
   }
   Verbose("Computing: LossPerTick: ",lossPerTick, ", LossPerTick2: ",lossPerTick2);

   double lotMM1 = lossPerTick2;
   if(tickValue  0) {
      lotMM = lotMM1 - MathMod(lotMM1, lotStep);
   } else {
      lotMM = lotMM1;
   }

   lotMM = NormalizeDouble( lotMM, _lotsDecimals);

   if(MarketInfo(Symbol(), MODE_LOTSIZE)==10000.0) lotMM=lotMM*10.0 ;
   lotMM=NormalizeDouble(lotMM,_lotsDecimals);

   double Smallest_Lot = MarketInfo(Symbol(), MODE_MINLOT);
   double Largest_Lot = MarketInfo(Symbol(), MODE_MAXLOT);

   if (lotMM  Largest_Lot) lotMM = Largest_Lot;

   if(lotMM > _maximumLots) {
      lotMM = _maximumLots;
   }

   Verbose("Computing Money Management - final computed lots: ", lotMM);
   return (lotMM);
}

0

Affichage de 7 réponses de 1 à 7 (sur un total de 7)