RelativeTakeProfitProtections.ThirdTakeProfit
property · RelativeTakeProfitProtections · cAlgo.API Since 5.8
DesktopCLICloud
Gets the third partial take profit, if any.
Definition
public RelativeTakeProfitProtection ThirdTakeProfit {get;}
relativeTakeProfitProtections.ThirdTakeProfit: RelativeTakeProfitProtection
Returns RelativeTakeProfitProtection
Examples
var ladder = new RelativeTakeProfitProtections(new RelativeTakeProfitProtection(10000, 15), new RelativeTakeProfitProtection(10000, 25), new RelativeTakeProfitProtection(10000, 35), new RelativeTakeProfitLastProtection(50));
Print("Third take profit at {0} pips", ladder.ThirdTakeProfit.Distance);
ladder = RelativeTakeProfitProtections(RelativeTakeProfitProtection(10000, 15), RelativeTakeProfitProtection(10000, 25), RelativeTakeProfitProtection(10000, 35), RelativeTakeProfitLastProtection(50))
api.Print(f"Third take profit at {ladder.ThirdTakeProfit.Distance} pips")