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
|