AlgoConditionValues
StockSharp.Sbe
Reads and writes the values an algo order carries on a condition held as a plain OrderCondition.
Métodos
GetAlgoCode
public static string GetAlgoCode(OrderCondition condition)
result = AlgoConditionValues.GetAlgoCode(condition)
Which algorithm works the order.
- condition
- The condition, which may be .
Devuelve: The algorithm's code, or an empty string when it names none.
GetAlgoEndAt
public static DateTime? GetAlgoEndAt(OrderCondition condition)
result = AlgoConditionValues.GetAlgoEndAt(condition)
When the algorithm gives the order up.
- condition
- The condition, which may be .
Devuelve: The moment, or when it states none.
GetAlgoParametersJson
public static string GetAlgoParametersJson(OrderCondition condition)
result = AlgoConditionValues.GetAlgoParametersJson(condition)
What the algorithm was told to work the order with.
- condition
- The condition, which may be .
Devuelve: The parameters as they were sent, or an empty string when none were.
GetAlgoStartAt
public static DateTime? GetAlgoStartAt(OrderCondition condition)
result = AlgoConditionValues.GetAlgoStartAt(condition)
When the algorithm starts working the order.
- condition
- The condition, which may be .
Devuelve: The moment, or when it states none.
GetTrailingOffset
public static decimal? GetTrailingOffset(OrderCondition condition)
result = AlgoConditionValues.GetTrailingOffset(condition)
How far behind the best price seen the level follows, when it follows.
- condition
- The condition, which may be .
Devuelve: The offset, or when it states none.
SetAlgoWindow
public static void SetAlgoWindow(OrderCondition condition, DateTime startAt, DateTime endAt)
AlgoConditionValues.SetAlgoWindow(condition, startAt, endAt)
States the window the algorithm works the order in.
- condition
- The condition.
- startAt
- When it starts.
- endAt
- When it gives up.