Forum

trade.buy und trade.sell nicht ausgeführt ?

Hallo @community, wenn ich mit ExpertAdvisor einen trade.buy im Format // Anzahl , auf aktuellem Chart, zum ask-Preis, S/L , T/P , comment trade.Buy((buy_amount), NULL , ask , NULL , (ask*calc_procent), NULL ); erstelle, wird eine Position gekauft und

trade.Buy(amount, NULL, ask, 0, bid, NULL) wird wann verkauft?

Hallo @ community, im Handbuch steht auf Seite 5041 folgendes zu BUY: bool Buy( 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=

SYMBOL_PRICE_CHANGE liefert nur 0.00

Hallo @community, ich beschäftige mich seit erst einer Woche mit der Programmierung im MetaEditor. Ich versuche mittels Comment ( "prozent>>" + string ( NormalizeDouble ( SymbolInfoDouble ( _Symbol ,SYMBOL_PRICE_CHANGE), _Digits ))); den Startwert in % im Vergleich zum Vortag anzuzeigen. Wenn ich