Class ProtectionChange
- Namespace
- ATAS.Indicators.Trading
- Assembly
- ATAS.Indicators.dll
The change of a position's protection that a ChangeProtection operation asks for,
as ITradingManager.SetStopLoss, SetTakeProfit and SetBreakeven take it.
Not in ATAS 8.0.15 yet: available from the next version.
public sealed class ProtectionChange
- Inheritance
-
objectProtectionChange
- Extension Methods
Constructors
ProtectionChange()
Initializes a change; the platform sets the values.
public ProtectionChange()
Properties
Kind
Which protection is set.
public ProtectionChangeKind Kind { get; init; }
Property Value
Value
The new stop-loss or take-profit; null for Breakeven. With
Price it is the price of the protective order itself. With
Tick, Percent (of the entry price) or
Money it is a distance from the average entry price of the position: a positive one
is on the losing side for a stop-loss and on the profitable side for a take-profit (a negative stop-loss distance
puts the stop beyond the entry, in profit).
public PriceUnit? Value { get; init; }
Property Value
Examples
For a long position entered at 5000.00 with a tick of 0.25, a stop-loss of new PriceUnit(4990m, PriceUnitTypes.Price)
and one of new PriceUnit(40m, PriceUnitTypes.Tick) both place the stop at 4990.00.