Einzelnen Beitrag anzeigen
  #8 (permalink)  
Alt 24.07.18
Tullermore Tullermore ist offline
Neues Mitglied
 
Registriert seit: Jan 2014
Beiträge: 16
Tullermore befindet sich auf einem aufstrebenden Ast
Standard

Wenn ich s so schreibe, dann läuft es ohne Probleme aber ich möchte halt nicht immer einen feste Größe als SL und TP.

if(checkGD()=="sell" && checkKerzen() == "sell" && checkADX() == "sell" && checkOBV() == "sell")
{
double entry=NormalizeDouble(Bid,_Digits);
double sl = NormalizeDouble(entry + Stop * _Point,_Digits);
double tp = NormalizeDouble(entry - Profit * _Point,_Digits);
orderTicket=OrderSend(_Symbol,OP_SELL,Lots,entry,S lippage,sl,tp,Commentary,Magic);
}
else if(checkGD()=="buy" && checkKerzen() == "buy" && checkADX() == "buy" && checkOBV() == "buy")
{
double entry=NormalizeDouble(Ask,_Digits);
double sl = NormalizeDouble(entry - Stop * _Point,_Digits);
double tp = NormalizeDouble(entry + Profit * _Point,_Digits);
orderTicket=OrderSend(_Symbol,OP_BUY,Lots,entry,Sl ippage,sl,tp,Commentary,Magic);