ChartRiskRewardFixedRewardType.AmountType
property · ChartRiskRewardFixedRewardType · cAlgo.API Since 5.2
DesktopCLICloud
Gets or sets amount mode.
Definition
public ChartRiskRewardAmountType AmountType {get;}
chartRiskRewardFixedRewardType.AmountType: ChartRiskRewardAmountType
Returns ChartRiskRewardAmountType
Examples
var rewardType = new ChartRiskRewardFixedRewardType(ChartRiskRewardAmountType.EquityPercentage, 2);
Print("Reward amount type: {0}", rewardType.AmountType);
rewardType = ChartRiskRewardFixedRewardType(ChartRiskRewardAmountType.EquityPercentage, 2)
api.Print(f"Reward amount type: {rewardType.AmountType}")