Vyzkoušejte naše poradenství
Live Trading Asistent
Každý den vás bude čekat naše pomocná ruka
-----------------------
Naše komunita má již
více než 15 000 členů
Zkuste tento kód:
if(TrailingStop>0)
{
OrderSelect(12345,SELECT_BY_TICKET);
if(Bid-OrderOpenPrice()>Point*TrailingStop)
{
if(OrderStopLoss()<Bid-Point*TrailingStop)
{
OrderModify(OrderTicket(),OrderOpenPrice(),Bid-Point*TrailingStop,OrderTakeProfit(),
0,Blue);
return(0);
}
}
}