Skip to content

HasTrailingStop Property

Summary

When HasTrailingStop set to true,server updates Stop Loss every time position moves in your favor.

Signature

1
public abstract bool HasTrailingStop {get;}

Return Value

bool

Declaring Type

cAlgo.API.PendingOrder

Examples

1
2
 ExecuteMarketOrder(TradeType.Buy, Symbol, 10000, "myLabel", 10, 10, 2, "comment", true);
 Print("Position was opened, has Trailing Stop = {0}", result.Position.HasTrailingStop);

Last update: July 1, 2022

Comments