Antwort

Höchstzahl der Lose Protection nicht mehr als 100

7 Antworten

bobotrade

Abonnent, bbp_participant, Gemeinschaft, 6 Antworten.

Profil besuchen

vor 9 Jahren #113470

hallo,

 

Die Funktion "Maximale Lose" akzeptiert keine Zahlen größer als 100

 

Es ist ein Problem mit meinem Broker (FXCM) auf dem DAX, die Mikro-Lose ohne Dezimalstellen arbeiten

 

 

Danke für die Hilfe

0

Mark Fric

Administrator, sq-ultimate, 2 Antworten.

Profil besuchen

vor 9 Jahren #129367

Hallo,

 

Können Sie mir sagen, was Sie erreichen wollen? Ist dies ein Fehler im EA-Assistenten? Wenn Ihr Broker nicht mehr als 100 Lots unterstützt, scheint es mir eine Broker-Beschränkung zu sein.

Mark
StrategyQuant Architekt

0

bobotrade

Abonnent, bbp_participant, Gemeinschaft, 6 Antworten.

Profil besuchen

vor 9 Jahren #129389

hallo,

 

es ist ein Fehler mit EA Wizard. Wenn ich mehr als 100 Lose in Maximum Lots Protection setzen, der EA nicht öffnen Positionen

 

Und mein Broker FXCM hat keine Beschränkung, ich kann ohne Probleme manuell mehr als 100 Lots öffnen

0

bobotrade

Abonnent, bbp_participant, Gemeinschaft, 6 Antworten.

Profil besuchen

vor 9 Jahren #129421

hallo,

 

Gibt es eine Lösung? Dies ist ein wichtiges Problem für mich.

 

danke im Voraus 😉

0

nolube

Kunde, bbp_participant, Community, 115 Antworten.

Profil besuchen

vor 9 Jahren #129436

Haben Sie versucht, 999 einzugeben?

 

Ich bin mir nicht sicher, ob das hilft, da ich die Software nicht wirklich benutze.

0

bobotrade

Abonnent, bbp_participant, Gemeinschaft, 6 Antworten.

Profil besuchen

vor 9 Jahren #129453

hallo

 

Haben Sie versucht, 999 einzugeben?

 

Ich bin mir nicht sicher, ob das hilft, da ich die Software nicht wirklich benutze.

 

hallo, gute Idee, aber nicht funktionieren... :unsicher:

 

Gibt es eine Lösung?

0

bobotrade

Abonnent, bbp_participant, Gemeinschaft, 6 Antworten.

Profil besuchen

vor 9 Jahren #129576

Hallo, haben Sie eine Lösung, um mehr als 100 Lose zu platzieren?

 

Ich kann die Geldverwaltung nicht nutzen und ich stecke in der Entwicklung meines EAs fest :wacko:

0

bobotrade

Abonnent, bbp_participant, Gemeinschaft, 6 Antworten.

Profil besuchen

vor 9 Jahren #129582

vielleicht etwas zu ändern in den Code des 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

Ansicht von 7 Antworten - 1 bis 7 (von insgesamt 7)