- LogLevel
- SetExpertMagicNumber
- SetDeviationInPoints
- SetTypeFilling
- SetTypeFillingBySymbol
- SetAsyncMode
- SetMarginMode
- OrderOpen
- OrderModify
- OrderDelete
- PositionOpen
- PositionModify
- PositionClose
- PositionClosePartial
- PositionCloseBy
- Buy
- Sell
- BuyLimit
- BuyStop
- SellLimit
- SellStop
- Request
- RequestAction
- RequestActionDescription
- RequestMagic
- RequestOrder
- RequestSymbol
- RequestVolume
- RequestPrice
- RequestStopLimit
- RequestSL
- RequestTP
- RequestDeviation
- RequestType
- RequestTypeDescription
- RequestTypeFilling
- RequestTypeFillingDescription
- RequestTypeTime
- RequestTypeTimeDescription
- RequestExpiration
- RequestComment
- RequestPosition
- RequestPositionBy
- Result
- ResultRetcode
- ResultRetcodeDescription
- ResultDeal
- ResultOrder
- ResultVolume
- ResultPrice
- ResultBid
- ResultAsk
- ResultComment
- CheckResult
- CheckResultRetcode
- CheckResultRetcodeDescription
- CheckResultBalance
- CheckResultEquity
- CheckResultProfit
- CheckResultMargin
- CheckResultMarginFree
- CheckResultMarginLevel
- CheckResultComment
- PrintRequest
- PrintResult
- FormatRequest
- FormatRequestResult
PositionModify
以指定交易品种名称修改仓位参数。
bool PositionModify(
|
根据指定价格更改持仓参数。
bool PositionModify(
|
参数
交易品种
[输入] 交易工具名称, 即用来修改的。
报价
[in] 持仓报价将被更改。
sl
[输入] 触发止损的新价格 (或之前值, 如果没必要改变)。
tp
[输入] 触发止盈的新价格 (或之前值, 如果没必要改变)。
返回值
true 结构检查基本成功情况下, 否则 false。
注释
成功完成 PositionModify(...) 方法并不意味着总是成功执行交易操作。有必要检查交易请求的结果 (交易服务器返回码), 使用 ResultRetcode() 获取。