ProtectiveProcessor

StockSharp.Algo.Strategies.Protective

保護戦略プロセッサー。

コンストラクター

ProtectiveProcessor
public ProtectiveProcessor(Sides protectiveSide, decimal protectivePrice, bool isUpTrend, bool isTrailing, Unit protectiveLevel, bool useMarketOrders, Unit priceOffset, TimeSpan timeout, DateTime startedTime, ILogReceiver logs)
protectiveProcessor = ProtectiveProcessor(protectiveSide, protectivePrice, isUpTrend, isTrailing, protectiveLevel, useMarketOrders, priceOffset, timeout, startedTime, logs)

Initialize ProtectiveProcessor.

protectiveSide
保護された位置の側面。
protectivePrice
保護された位置の価格。
isUpTrend
値段が上昇するか、落ちる追跡するため。
isTrailing
トレーリングモード。
protectiveLevel
保護された貿易ティックからの保護レベル オフセット。
useMarketOrders
市場を保護するために使用することかどうか。
priceOffset
レジスタ注文のための価格シフト。それは最高の引用からシフトの量を決定します(買いのために、それが引き算される販売のために、価格に追加されます)。
timeout
制限時間。保護がこの時間によって働かなかった場合、位置は市場で閉鎖されます。
startedTime
保護戦略が始まった時。
logs
ログソース。

メソッド

GetActivationPrice
public decimal? GetActivationPrice(decimal? currentPrice, DateTime currentTime)
result = protectiveProcessor.GetActivationPrice(currentPrice, currentTime)

保護戦略に到達したときに価格の絶対値がアクティブになります。

currentPrice
金融商品の現在の価格。価格が等しい場合は、有効化は必須ではありません。
currentTime
現行時刻

戻り値: 価格は、その価格が等しい場合は、活性化は必須ではありません。