Einzelnen Beitrag anzeigen
  #2 (permalink)  
Alt 04.10.23
Benutzerbild von Indikator-Trading
Indikator-Trading Indikator-Trading ist offline
Premium Mitglied
 
Registriert seit: May 2020
Ort: Bielefeld
Beiträge: 345
Indikator-Trading befindet sich auf einem aufstrebenden Ast
Standard

Hier ist die Funktion, welche du aufrufen willst:

bool Sell(
double volume, // Volumen der Position
const string symbol=NULL, // Symbol
double price=0.0, // Ausführungspreis
double sl=0.0, // Preis von Stop Loss
double tp=0.0, // Preis von Take Profit
const string comment="" // Kommentar
)

d.h. dein Aufruf von

trade.Sell(0.10,NULL,Bid,(Bid+200 * _Point),(Bid-150 * _Point),NULL, stopLoss, takeProfit, trailingStop);

hat zuviele und falsche Parameter:

volume = 0.10;
symbol = NULL;
price = Bid;
sl = (Bid+200 * _Point);
tp = (Bid-150 * _Point);
comment = NULL;
Diese sind so ok, allerdings sind da jetzt noch "stopLoss, takeProfit, trailingStop);" mit dran und damit kann die Funktion nichts anfangen