Code:
// ( Ask - Dist_Loss ) >= OrderOpenPrice()
double CLsel_Lo_D = NormalizeDouble(Ask - Dist_Lo *_Point,_Digits);
// ( Ask + Dist_Profit ) < OrderOpenPrice()
double CLsel_Pr_D = NormalizeDouble(Ask + Dist_Pr *_Point,_Digits);
// ( Bid - Dist_Profit ) > OrderOpenPrice()
double CLbuy_Pr_D = NormalizeDouble(Bid - Dist_Pr *_Point,_Digits);
// ( Bid + Dist_Loss ) <= OrderOpenPrice()
double CLbuy_Lo_D = NormalizeDouble(Bid + Dist_Lo *_Point,_Digits);
Dein SL und TP ist für Buy leider verkehrt, so wäre es richtig:
TP: NormalizeDouble((Bid + Dist_Pr *_Point,_Digits);
SL: NormalizeDouble(Bid - Dist_Lo *_Point,_Digits);