Thema: Hedge EA
Einzelnen Beitrag anzeigen
  #26 (permalink)  
Alt 06.05.20
MA-EA MA-EA ist offline
Elite Mitglied
 
Registriert seit: Sep 2015
Beiträge: 1.178
MA-EA befindet sich auf einem aufstrebenden Ast
Standard

So müsste es ja eigentlich funktionieren...
Code:
//        Close-Buy-Distance anpassen
//        LotsBuy mal hundert:
          double LBuy_Mh = LotsBuy * 100.0; 
          Print( "-LotsBuy x 100.0=",LBuy_Mh );
          
//        Ergebnis mal Dist(GV)
          double LBuyMh_Dist = LBuy_Mh * Dist;
          Print( "-LotsBuyMh x Dist=",LBuyMh_Dist , "-Old Buy Dist=",Dist );
          
//        Neuer Dist-Wert durch 100
          Dist = LBuyMh_Dist / 100.0;
          Print( "-New Buy Dist=",Dist );
Code:
//        Close-Sel-Distance anpassen
//        LotsSel mal hundert:
          double LSel_Mh = LotsSel * 100.0; 
          Print( "-LotsSel x 100.0=",LSel_Mh );
          
//        Ergebnis mal Dist(GV)
          double LSelMh_Dist = LSel_Mh * Dist;
          Print( "-LotsSelMh x Dist=",LSelMh_Dist , "-Old Sel Dist=",Dist );
          
//        Neuer Dist-Wert durch 100
          Dist = LSelMh_Dist / 100.0;
          Print( "-New Sel Dist=",Dist );
Angehängte Dateien
Dateityp: mq4 PrintVers_LoSh_AlwInv_Dist_LP_v2.mq4 (30,2 KB, 0x aufgerufen)