PositionProtectDiagramElement

StockSharp.Diagram.Elements

要素は、ストップロスとテイク・ファシリティを使用して、オープンポジションを自動的に保護するために使われます。

継承元: DiagramElement

コンストラクター

PositionProtectDiagramElement
public PositionProtectDiagramElement()
positionProtectDiagramElement = PositionProtectDiagramElement()

PositionProtectDiagramElement の新規インスタンスを初期化します。

プロパティ

IconName
public override string IconName { get; }
value = positionProtectDiagramElement.IconName

リソース名をアイコン化します。

IsTrailingStopLoss
public bool IsTrailingStopLoss { get; set; }
value = positionProtectDiagramElement.IsTrailingStopLoss
positionProtectDiagramElement.IsTrailingStopLoss = value

トレーリング技術の使用かどうか。

StopLossTimeOut
public TimeSpan StopLossTimeOut { get; set; }
value = positionProtectDiagramElement.StopLossTimeOut
positionProtectDiagramElement.StopLossTimeOut = value

制限時間。保護がこの時間によって働かなかった場合、位置は市場で閉鎖されます。

StopValue
public Unit StopValue { get; set; }
value = positionProtectDiagramElement.StopValue
positionProtectDiagramElement.StopValue = value

ストップロスの保護レベル。デフォルトレベルは0です。これは無効です。

TakeProfitTimeOut
public TimeSpan TakeProfitTimeOut { get; set; }
value = positionProtectDiagramElement.TakeProfitTimeOut
positionProtectDiagramElement.TakeProfitTimeOut = value

制限時間。保護がこの時間によって働かなかった場合、位置は市場で閉鎖されます。

TakeValue
public Unit TakeValue { get; set; }
value = positionProtectDiagramElement.TakeValue
positionProtectDiagramElement.TakeValue = value

取得利益のための保護レベル。デフォルトレベルは0です。これは無効です。

TypeId
public override Guid TypeId { get; }
value = positionProtectDiagramElement.TypeId

id をタイプして下さい。

UseMarketOrders
public bool UseMarketOrders { get; set; }
value = positionProtectDiagramElement.UseMarketOrders
positionProtectDiagramElement.UseMarketOrders = value

市場注文を使用するか。

UseServer
public bool UseServer { get; set; }
value = positionProtectDiagramElement.UseServer
positionProtectDiagramElement.UseServer = value

サーバ側停止注文をconnectorにアンダーリーシングすれば使用して下さい。

メソッド

OnPrepare
protected override void OnPrepare()
positionProtectDiagramElement.OnPrepare()

ダイアグラム要素アルゴリズムの起動の準備

OnReseted
protected override void OnReseted()
positionProtectDiagramElement.OnReseted()

リセットメソッドから呼び出されます。