RiskReward

View as Markdown

Definition

Represents an interface that exposes information regarding a Risk Reward IDrawingTool.

Methods and Properties

ParameterDescription
EntryAnchorAn IDrawingTool’s ChartAnchor representing the entry point of the drawing object
RiskAnchorAn IDrawingTool’s ChartAnchor representing the stop loss point of the drawing object
RewardAnchorAn IDrawingTool’s ChartAnchor representing the profit target point of the drawing object
RatioAn int value determining the calculated ratio between the risk or reward based on the entry point

Examples

1// Instantiate a RiskReward object
2RiskReward myRR = Draw.RiskReward(this, "tag1", false, 0, High[0], 10, Low[0], 2, true);
3
4// Change the object's risk/reward ratio to 2:1
5myRR.Ratio = 2;