ロボット

cBots (自動売買)

概要

すべてのcBotの基本クラス。

備考

cBotの作成を容易にするフレームワークを提供し、注文の作成、変更、キャンセル、ポジションのクローズ、各ティックおよび各バーごとにトリガーされるメソッド、組み込みインジケーターへのアクセスなどを提供します。

シグネチャ

1
public class Robot : Algo

 

名前空間

cAlgo.API

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
 namespace cAlgo.Robots
 {
 [Robot]
 public class myCBot : Robot
 {
     protected override void OnStart()
     {
         //このメソッドは、cBotが開始されるときに一度だけ呼び出されます。
     }
     protected override <span="k">void OnBar()
     {
         // 各バーが来るたびに呼び出されます。
     }
     protected override <span="k">void OnTick()
     {
         // 各ティックが来るたびに呼び出されます。
     }
     protected override void OnError(Error error)
     {
         Print("エラーが発生しました");
     }
     protected override void OnStop()
     {
         //このメソッドは、cBotが停止されるときに呼び出されます。
     }
}

メソッド

Stop

概要

cBotを停止します。cBotは完全に停止され、シグナルの送受信を行いません。

シグネチャ

1
public void Stop()

 

戻り値

void

1
2
3
4
5
 // アカウントの残高が1000を下回るとcBotを停止します
 if(Account.Balance < 1000)
 {
     Stop();
 }

ToString

概要

cBotクラスの名前を返します。

シグネチャ

1
public string ToString()

 

戻り値

string

1
2
3
4
 protected override void OnStart()
 {
     Print(ToString());
 }

PlaceLimitOrder (19)

PlaceLimitOrder (19つのうち1つ)

概要

指値注文を出します

シグネチャ

1
public TradeResult PlaceLimitOrder<span="p">(TradeType tradeType<span="p">, string symbolName<span="p">, double volume<span="p">, double targetPrice)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引のボリューム(単位)
targetPricedouble注文が約定する価格(またはそれ以上)

戻り値

TradeResult

PlaceLimitOrder (19つのうち2つ)

概要

指値注文を出します

シグネチャ

1
public TradeResult PlaceLimitOrder(TradeType tradeType, string symbolName, double volume, double targetPrice, string label)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引のボリューム(単位)
targetPricedouble注文が約定する価格(またはそれ以上)
labelstring注文を表すラベル

戻り値

TradeResult

PlaceLimitOrder (19つのうち3つ目)

概要

指値注文を出します

シグネチャ

1
public <span="n">TradeResult <span="nf">PlaceLimitOrder<span="p">(TradeType <span="n">tradeType<span="p">, string symbolName<span="p">, double volume<span="p">, double targetPrice<span="p">, string label<span="p">, double? stopLossPips, double? takeProfitPips<span="p">)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引のボリューム(単位)
targetPricedouble注文が約定する価格(またはそれ以上)
labelstring注文を表すラベル
stopLossPipsdouble?ストップロスのピップ数
takeProfitPipsdouble?テイクプロフィットのピップ数

戻り値

TradeResult

PlaceLimitOrder (19つのうち4つ目)

概要

指値注文を出します

シグネチャ

1
public <span="n">TradeResult <span="nf">PlaceLimitOrder<span="p">(TradeType <span="n">tradeType<span="p">, string symbolName<span="p">, double volume<span="p">, double targetPrice<span="p">, string label<span="p">, double? stopLossPips<span="p">, double? takeProfitPips<span="p">, DateTime? expiration<span="p">)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引のボリューム(単位)
targetPricedouble注文が約定する価格(またはそれ以上)
labelstring注文を表すラベル
stopLossPipsdouble?ストップロスのピップ数
takeProfitPipsdouble?テイクプロフィットのピップ数
expirationDateTime?注文の有効期限

戻り値

TradeResult

PlaceLimitOrder (19つのうち5つ目)

概要

指値注文を出します

シグネチャ

1
public <span="n">TradeResult <span="nf">PlaceLimitOrder<span="p">(TradeType <span="n">tradeType<span="p">, string <span="n">symbolName<span="p">, double <span="n">volume<span="p">, <span="kt">double <span="n">targetPrice<span="p">, <span="kt">string <span="n">label<span="p">, <span="kt">double? <span="n">stopLossPips<span="p">, <span="kt">double? <span="n">takeProfitPips<span="p">, <span="n">DateTime? expiration<span="p">, string comment<span="p">)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引のボリューム(単位)
targetPricedouble注文が約定する価格(またはそれ以上)
labelstring注文を表すラベル
stopLossPipsdouble?ストップロスのピップ数
takeProfitPipsdouble?テイクプロフィットのピップ数
expirationDateTime?注文の有効期限
commentstring注文コメント

戻り値

TradeResult

PlaceLimitOrder (11 of 19)

概要

非同期実行モードで指値注文を行います

シグネチャ

1
public TradeResult PlaceLimitOrder(TradeType tradeType, Symbol symbol, double volume, double targetPrice, string label)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolSymbol 
volumedouble取引のボリューム
targetPricedouble注文が約定する目標価格
labelstring注文を表すラベル

戻り値

TradeResult

PlaceLimitOrder (12 of 19)

概要

非同期実行モードで指値注文を行います

シグネチャ

1
public TradeResult PlaceLimitOrder(TradeType tradeType, Symbol symbol, long volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolSymbol 
volumelong取引のボリューム
targetPricedouble注文が約定する目標価格
labelstring注文を表すラベル
stopLossPipsdouble?目標価格からのストップロスのピップ数
takeProfitPipsdouble?目標価格からのテイクプロフィットのピップ数

戻り値

TradeResult

PlaceLimitOrder (13 of 19)

概要

非同期実行モードで指値注文を行います

シグネチャ

1
public TradeResult PlaceLimitOrder(TradeType tradeType, Symbol symbol, double volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolSymbol 
volumedouble取引のボリューム
targetPricedouble注文が約定する目標価格
labelstring注文を表すラベル
stopLossPipsdouble?目標価格からのストップロスのピップ数
takeProfitPipsdouble?目標価格からのテイクプロフィットのピップ数

戻り値

TradeResult

1
2
 PlaceLimitOrderAsync(TradeType.Buy, Symbol, 10000,
                     Symbol.Bid - 10* Symbol.PipSize,"myLabel");

PlaceLimitOrder (14 of 19)

概要

非同期実行モードで指値注文を行います

シグネチャ

1
public TradeResult PlaceLimitOrder(TradeType tradeType, Symbol symbol, long volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolSymbol 
volumelong取引のボリューム
targetPricedouble注文が約定する目標価格
labelstring注文を表すラベル
stopLossPipsdouble?目標価格からのストップロスのピップ数
takeProfitPipsdouble?目標価格からのテイクプロフィットのピップ数
expirationDateTime?注文の有効期限

戻り値

TradeResult

1
2
 PlaceLimitOrderAsync(TradeType.Buy, Symbol, 10000,
                     Symbol.Bid - 10* Symbol.PipSize,"myLabel");

PlaceLimitOrder (15 of 19)

シグネチャ

1
public TradeResult PlaceLimitOrder(TradeType tradeType, Symbol <span="n">symbol, double volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration)

 

パラメータ

名前説明
tradeTypeTradeType 
symbolSymbol 
volumedouble 
targetPricedouble 
labelstring 
stopLossPipsdouble? 
takeProfitPipsdouble? 
expirationDateTime? 

戻り値

TradeResult

PlaceLimitOrder (16 of 19)

シグネチャ

1
public TradeResult PlaceLimitOrder(TradeType tradeType, Symbol symbol, long volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, string comment)

 

パラメータ

名前説明
tradeTypeTradeType 
symbolSymbol 
volumelong 
targetPricedouble 
labelstring 
stopLossPipsdouble? 
takeProfitPipsdouble? 
expirationDateTime? 
commentstring 

戻り値

TradeResult

PlaceLimitOrder (17 of 19)

シグネチャ

1
public TradeResult <span="nf">PlaceLimitOrder(TradeType tradeType, Symbol <span="n">symbol, double volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, string comment)

 

パラメータ

名前説明
tradeTypeTradeType 
symbolSymbol 
volumedouble 
targetPricedouble 
labelstring 
stopLossPipsdouble? 
takeProfitPipsdouble? 
expirationDateTime? 
commentstring 

戻り値

TradeResult

PlaceLimitOrder (18 of 19)

シグネチャ

1
public TradeResult <span="nf">PlaceLimitOrder(TradeType tradeType, <span="n">Symbol <span="n">symbol, double volume<span="p">, double <span="n">targetPrice<span="p">, string <span="n">label<span="p">, double? stopLossPips<span="p">, <span="kt">double? takeProfitPips, <span="n">DateTime? expiration<span="p">, string comment<span="p">, bool hasTrailingStop<span="p">)

 

パラメータ

名前説明
tradeTypeTradeType 
symbolSymbol 
volumedouble 
targetPricedouble 
labelstring 
stopLossPipsdouble? 
takeProfitPipsdouble? 
expirationDateTime? 
commentstring 
hasTrailingStopbool 

戻り値

TradeResult

PlaceLimitOrder (19 of 19)

シグネチャ

1
public TradeResult <span="nf">PlaceLimitOrder<span="p">(TradeType <spanのn">tradeType<spanのp">,Symbol symbol, <spanのkt">double volume, <spanのkt">double <spanのn">targetPrice<spanのp">, <spanのkt">string <spanのn">label<spanのp">, <spanのkt">double? stopLossPips<spanのp">, <spanのkt">double? <spanのn">takeProfitPips<spanのp">, <spanのn">DateTime<spanのo">? expiration<spanのp">, <spanのkt">string comment<spanのp">, bool hasTrailingStop<spanのp">, <spanのn">StopTriggerMethod<spanのo">? stopLossTriggerMethod<spanのp">)

 

パラメータ

名前説明
tradeTypeTradeType 
symbolSymbol 
volumedouble 
targetPricedouble 
labelstring 
stopLossPipsdouble? 
takeProfitPipsdouble? 
expirationDateTime? 
commentstring 
hasTrailingStopbool 
stopLossTriggerMethodStopTriggerMethod? 

戻り値

TradeResult

PlaceLimitOrder (11 of 19)

Summary

非同期実行モードでリミット注文を発注する

Signature

1
public TradeResult PlaceLimitOrder(TradeType tradeType, Symbol symbol, double volume, double targetPrice, string label)

 

Parameters

NameTypeDescription
tradeTypeTradeType取引の方向
symbolSymbol 
volumedouble取引量
targetPricedouble注文が執行される目標価格(またはそれ以上)
labelstring注文を表すラベル

Return Value

TradeResult

PlaceLimitOrder (12 of 19)

Summary

非同期実行モードでリミット注文を発注する

Signature

1
public TradeResult PlaceLimitOrder(TradeType tradeType, Symbol symbol, long volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips)

 

Parameters

NameTypeDescription
tradeTypeTradeType取引の方向
symbolSymbol 
volumelong取引量
targetPricedouble注文が執行される目標価格(またはそれ以上)
labelstring注文を表すラベル
stopLossPipsdouble?目標価格からのストップロス
takeProfitPipsdouble?目標価格からのテイクプロフィット

Return Value

TradeResult

Examples

1
2
 PlaceLimitOrderAsync(TradeType.Buy, Symbol, 10000,
                     Symbol.Bid - 10* Symbol.PipSize,"myLabel");

PlaceLimitOrder (13 of 19)

Summary

非同期実行モードでリミット注文を発注する

Signature

1
public TradeResult PlaceLimitOrder(TradeType tradeType, Symbol symbol, double volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips)

 

Parameters

NameTypeDescription
tradeTypeTradeType取引の方向
symbolSymbol 
volumedouble取引量
targetPricedouble注文が執行される目標価格(またはそれ以上)
labelstring注文を表すラベル
stopLossPipsdouble?目標価格からのストップロス
takeProfitPipsdouble?目標価格からのテイクプロフィット

Return Value

TradeResult

Examples

1
2
 PlaceLimitOrderAsync(TradeType.Buy, Symbol, 10000,
                     Symbol.Bid - 10* Symbol.PipSize,"myLabel");

PlaceLimitOrder (14 of 19)

Summary

非同期実行モードでリミット注文を発注する

Signature

1
public TradeResult PlaceLimitOrder(TradeType tradeType, Symbol symbol, long volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration)

 

Parameters

NameTypeDescription
tradeTypeTradeType取引の方向
symbolSymbol 
volumelong取引量
targetPricedouble注文が執行される目標価格(またはそれ以上)
labelstring注文を表すラベル
stopLossPipsdouble?目標価格からのストップロス
takeProfitPipsdouble?目標価格からのテイクプロフィット
expirationDateTime?注文の有効期限

Return Value

TradeResult

PlaceLimitOrder (15 of 19)

Signature

1
public TradeResult PlaceLimitOrder(TradeType tradeType, Symbol symbol, double volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration)

 

Parameters

NameTypeDescription
tradeTypeTradeType取引の方向
symbolSymbol 
volumedouble取引量
targetPricedouble注文が執行される目標価格(またはそれ以上)
labelstring注文を表すラベル
stopLossPipsdouble?目標価格からのストップロス
takeProfitPipsdouble?目標価格からのテイクプロフィット
expirationDateTime?注文の有効期限

Return Value

TradeResult

PlaceLimitOrder (16 of 19)

Signature

1
public TradeResult PlaceLimitOrder(TradeType tradeType, Symbol symbol, long volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, string comment)

 

Parameters

NameTypeDescription
tradeTypeTradeType取引の方向
symbolSymbol 
volumelong取引量
targetPricedouble注文が執行される目標価格(またはそれ以上)
labelstring注文を表すラベル
stopLossPipsdouble?目標価格からのストップロス
takeProfitPipsdouble?目標価格からのテイクプロフィット
expirationDateTime?注文の有効期限
commentstringコメント

Return Value

TradeResult

PlaceLimitOrder (17 of 19)

Signature

1
public TradeResult PlaceLimitOrder(TradeType tradeType, Symbol symbol, double volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, string comment, bool hasTrailingStop)

 

Parameters

NameTypeDescription
tradeTypeTradeType取引の方向
symbolSymbol 
volumedouble取引量
targetPricedouble注文が執行される目標価格(またはそれ以上)
labelstring注文を表すラベル
stopLossPipsdouble?目標価格からのストップロス
takeProfitPipsdouble?目標価格からのテイクプロフィット
expirationDateTime?注文の有効期限
commentstringコメント
hasTrailingStopboolトレーリングストップを有効/無効にする

Return Value

TradeResult

PlaceLimitOrder (18 of 19)

Signature

1
public TradeResult PlaceLimitOrder(TradeType tradeType, Symbol symbol, double volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, string comment, bool hasTrailingStop, StopTriggerMethod? stopLossTriggerMethod)

 

Parameters

NameTypeDescription
tradeTypeTradeType取引の方向
symbolSymbol 
volumedouble 
targetPricedouble 
labelstring 
stopLossPipsdouble? 
takeProfitPipsdouble? 
expirationDateTime? 
commentstring 
hasTrailingStopbool 
stopLossTriggerMethodStopTriggerMethod? 

Return Value

TradeResult

PlaceLimitOrderAsync (19)

PlaceLimitOrderAsync (1 of 19)

Summary

非同期実行モードでリミット注文を発注する

Signature

1
public TradeOperation PlaceLimitOrderAsync(TradeType tradeType, string symbolName, double volume, double targetPrice, Action<TradeResult> callback)

 

Parameters

NameTypeDescription
tradeTypeTradeType取引の方向
symbolNamestring取引シンボル名
volumedouble取引量
targetPricedouble注文が執行される目標価格(またはそれ以上)
callbackActionポジションがクローズされた時のアクション

Return Value

TradeOperation

PlaceLimitOrderAsync (2 of 19)

Summary

非同期実行モードでリミット注文を発注する

Signature

1
public TradeOperation PlaceLimitOrderAsync(TradeType tradeType, string symbolName, double volume, double targetPrice, string label, Action<TradeResult> callback)

 

Parameters

NameTypeDescription
tradeTypeTradeType取引の方向
symbolNamestring取引シンボル名
volumedouble取引量
targetPricedouble注文が執行される目標価格(またはそれ以上)
labelstring注文を表すラベル
callbackActionポジションがクローズされた時のアクション

Return Value

TradeOperation

PlaceLimitOrderAsync (3 of 19)

Summary

非同期実行モードでリミット注文を発注する

Signature

1
public TradeOperation PlaceLimitOrderAsync(TradeType tradeType, string symbolName, double volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips, Action<TradeResult> callback)

 

Parameters

NameTypeDescription
tradeTypeTradeType取引の方向
symbolNamestring取引シンボル名
volumedouble取引量
targetPricedouble注文が執行される目標価格(またはそれ以上)
labelstring注文を表すラベル
stopLossPipsdouble?ストップロス(ピップス単位)
takeProfitPipsdouble?テイクプロフィット(ピップス単位)
callbackActionポジションがクローズされた時のアクション

Return Value

TradeOperation

PlaceLimitOrderAsync (4 of 19)

Summary

非同期実行モードでリミット注文を発注する

Signature

1
public TradeOperation PlaceLimitOrderAsync(TradeType tradeType, string symbolName, double volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, Action<TradeResult> callback)

 

Parameters

NameTypeDescription
tradeTypeTradeType取引の方向
symbolNamestring取引シンボル名
volumedouble取引量
targetPricedouble注文が執行される目標価格(またはそれ以上)
labelstring注文を表すラベル
stopLossPipsdouble?ストップロス(ピップス単位)
takeProfitPipsdouble?テイクプロフィット(ピップス単位)
expirationDateTime?注文の有効期限
callbackActionポジションがクローズされた時のアクション

Return Value

TradeOperation

PlaceLimitOrderAsync (5 of 19)

Summary

非同期実行モードでリミット注文を発注する

Signature

1
public TradeOperation PlaceLimitOrderAsync(TradeType tradeType, string symbolName, double volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, string comment, Action<TradeResult> callback)

 

Parameters

NameTypeDescription
tradeTypeTradeType取引の方向
symbolNamestring取引シンボル名
volumedouble取引量
targetPricedouble注文が執行される目標価格(またはそれ以上)
labelstring注文を表すラベル
stopLossPipsdouble?目標価格からのストップロス
takeProfitPipsdouble?目標価格からのテイクプロフィット
expirationDateTime?注文の有効期限
commentstring注文のコメント
callbackActionポジションがクローズされた時のアクション

Return Value

TradeOperation

Examples

1
2
 PlaceLimitOrderAsync(TradeType.Buy, Symbol, 10000,
                     Symbol.Bid - 10* Symbol.PipSize,"myLabel");

PlaceLimitOrderAsync (6 of 19)

Summary

 

Parameters

NameTypeDescription
tradeTypeTradeType取引の方向
symbolSymbol取引シンボル
volumelong取引量
targetPricedouble注文が執行される目標価格(またはそれ以上)
callbackActionポジションがクローズされた時のアクション

Return Value

TradeOperation

PlaceLimitOrderAsync (9 of 19)

Signature

1
public TradeOperation PlaceLimitOrderAsync(TradeType tradeType, Symbol symbol, double volume, double targetPrice, Action<TradeResult> callback)

 

Parameters

NameTypeDescription
tradeTypeTradeType取引の方向
symbolSymbol取引シンボル
volumedouble取引量
targetPricedouble注文が執行される目標価格(またはそれ以上)
callbackActionポジションがクローズされた時のアクション

Return Value

TradeOperation

PlaceLimitOrderAsync (10 of 19)

Signature

1
public TradeOperation PlaceLimitOrderAsync(TradeType tradeType, Symbol symbol, long volume, double targetPrice, string label, Action<TradeResult> callback)

 

Parameters

NameTypeDescription
tradeTypeTradeType取引の方向
symbolSymbol取引シンボル
volumelong取引量
targetPricedouble注文が執行される目標価格(またはそれ以上)
labelstring注文を表すラベル
callbackActionポジションがクローズされた時のアクション

Return Value

TradeOperation

PlaceLimitOrderAsync (11 of 19)

Signature

1
public TradeOperation PlaceLimitOrderAsync(TradeType tradeType, Symbol symbol, double volume, double targetPrice, string label, Action<TradeResult> callback)

 

Parameters

NameTypeDescription
tradeTypeTradeType取引の方向
symbolSymbol取引シンボル
volumedouble取引量
targetPricedouble注文が執行される目標価格(またはそれ以上)
labelstring注文を表すラベル
callbackActionポジションがクローズされた時のアクション

Return Value

TradeOperation

PlaceLimitOrderAsync (12 of 19)

Signature

1
public TradeOperation PlaceLimitOrderAsync(TradeType tradeType, Symbol symbol, long volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips, Action<TradeResult> callback)

 

Parameters

NameTypeDescription
tradeTypeTradeType取引の方向
symbolSymbol取引シンボル
volumelong取引量
targetPricedouble注文が執行される目標価格(またはそれ以上)
labelstring注文を表すラベル
stopLossPipsdouble?ストップロスの値幅(pips)
takeProfitPipsdouble?テイクプロフィットの値幅(pips)
callbackActionポジションがクローズされた時のアクション

Return Value

TradeOperation

PlaceLimitOrderAsync (13 of 19)

Signature

1
public TradeOperation PlaceLimitOrderAsync(TradeType tradeType, Symbol symbol, double volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips, Action<TradeResult> callback)

 

Parameters

NameTypeDescription
tradeTypeTradeType取引の方向
symbolSymbol取引シンボル
volumedouble取引量
targetPricedouble注文が執行される目標価格(またはそれ以上)
labelstring注文を表すラベル
stopLossPipsdouble?ストップロスの値幅(pips)
takeProfitPipsdouble?テイクプロフィットの値幅(pips)
callbackActionポジションがクローズされた時のアクション

Return Value

TradeOperation

PlaceLimitOrderAsync (14 of 19)

Signature

1
public TradeOperation PlaceLimitOrderAsync(TradeType tradeType, Symbol symbol, long volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, string comment, Action<TradeResult> callback)

 

Parameters

NameTypeDescription
tradeTypeTradeType取引の方向
symbolSymbol取引シンボル
volumelong取引量
targetPricedouble注文が執行される目標価格(またはそれ以上)
labelstring注文を表すラベル
stopLossPipsdouble?ストップロスの値幅(pips)
takeProfitPipsdouble?テイクプロフィットの値幅(pips)
expirationDateTime?注文の有効期限
commentstring注文のコメント
callbackActionポジションがクローズされた時のアクション

Return Value

TradeOperation

PlaceLimitOrderAsync (15 of 19)

Signature

1
public TradeOperation PlaceLimitOrderAsync(TradeType tradeType, Symbol symbol, double volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, string comment, Action<TradeResult> callback)

 

Parameters

NameTypeDescription
tradeTypeTradeType取引の方向
symbolSymbol取引シンボル
volumedouble取引量
targetPricedouble注文が執行される目標価格(またはそれ以上)
labelstring注文を表すラベル
stopLossPipsdouble?ストップロスの値幅(pips)
takeProfitPipsdouble?テイクプロフィットの値幅(pips)
expirationDateTime?注文の有効期限
commentstring注文のコメント
callbackActionポジションがクローズされた時のアクション

Return Value

TradeOperation

PlaceLimitOrderAsync (16 of 19)

Signature

1
public TradeOperation PlaceLimitOrderAsync(TradeType tradeType, Symbol symbol, long volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, string comment, Action<TradeResult> callback)

 

Parameters

NameTypeDescription
tradeTypeTradeType取引の方向
symbolSymbol取引シンボル
volumelong取引量
targetPricedouble注文が執行される目標価格(またはそれ以上)
labelstring注文を表すラベル
stopLossPipsdouble?ストップロスの値幅(pips)
takeProfitPipsdouble?テイクプロフィットの値幅(pips)
expirationDateTime?注文の有効期限
commentstring注文のコメント
callbackActionポジションがクローズされた時のアクション

Return Value

TradeOperation

PlaceLimitOrderAsync (17 of 19)

Signature

1
public TradeOperation PlaceLimitOrderAsync(TradeType tradeType, Symbol symbol, double volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, string comment, Action<TradeResult> callback)

 

Parameters

NameTypeDescription
tradeTypeTradeType取引の方向
symbolSymbol取引シンボル
volumedouble取引量
targetPricedouble注文が執行される目標価格(またはそれ以上)
labelstring注文を表すラベル
stopLossPipsdouble?ストップロスの値幅(pips)
takeProfitPipsdouble?テイクプロフィットの値幅(pips)
expirationDateTime?注文の有効期限
commentstring注文のコメント
callbackActionポジションがクローズされた時のアクション

Return Value

TradeOperation

PlaceLimitOrderAsync (18 of 19)

Signature

1
public TradeOperation PlaceLimitOrderAsync(TradeType tradeType, Symbol symbol, double volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, string comment, bool hasTrailingStop, Action<TradeResult> callback)

 

パラメーター

名前説明
tradeTypeTradeType 
symbolSymbol 
volumedouble 
targetPricedouble 
labelstring 
stopLossPipsdouble? 
takeProfitPipsdouble? 
expirationDateTime? 
commentstring 
hasTrailingStopbool 
callbackAction 

戻り値

TradeOperation

PlaceLimitOrderAsync (19 of 19)

署名

1
public TradeOperation PlaceLimitOrderAsync(TradeType tradeType, Symbol symbol, double volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, string comment, bool hasTrailingStop, StopTriggerMethod? stopLossTriggerMethod, Action<TradeResult> callback)

 

パラメーター

名前説明
tradeTypeTradeType 
symbolSymbol 
volumedouble 
targetPricedouble 
labelstring 
stopLossPipsdouble? 
takeProfitPipsdouble? 
expirationDateTime? 
commentstring 
hasTrailingStopbool 
stopLossTriggerMethodStopTriggerMethod? 
callbackAction 

戻り値

TradeOperation

ExecuteMarketOrder (18)

ExecuteMarketOrder (1 of 18)

概要

マーケットオーダーを実行する

署名

1
public TradeResult ExecuteMarketOrder(TradeType tradeType, Symbol symbol, double volume, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, string comment, bool hasTrailingStop, StopTriggerMethod? stopLossTriggerMethod)

 

パラメーター

名前説明
tradeTypeTradeType 
symbolSymbol 
volumedouble 
labelstring 
stopLossPipsdouble? 
takeProfitPipsdouble? 
expirationDateTime? 
commentstring 
hasTrailingStopbool 
stopLossTriggerMethodStopTriggerMethod? 

戻り値

TradeResult

1
 ExecuteMarketOrder(TradeType.Sell, Symbol, 10000);

ExecuteMarketOrder (5 of 18)

概要

マーケットオーダーを実行します

シグネチャ

1
public TradeResult ExecuteMarketOrder(TradeType tradeType, string symbolName, double volume, string label, double? stopLossPips, double? takeProfitPips, string comment, bool hasTrailingStop)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引のボリューム(単位)
labelstring表すラベル
stopLossPipsdouble?ストップロス(ピップス)
takeProfitPipsdouble?テイクプロフィット(ピップス)
commentstring注文のコメント
hasTrailingStopboolポジションのトレーリングストップを有効/無効にする

戻り値

TradeResult

1
 ExecuteMarketOrder(TradeType.Sell, Symbol, 10000);

ExecuteMarketOrder (6 of 18)

概要

マーケットオーダーを実行します

シグネチャ

1
public TradeResult ExecuteMarketOrder(TradeType tradeType, string symbolName, double volume, string label, double? stopLossPips, double? takeProfitPips, string comment, bool hasTrailingStop, StopTriggerMethod? stopLossTriggerMethod)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引のボリューム(単位)
labelstring表すラベル
stopLossPipsdouble?ストップロス(ピップス)
takeProfitPipsdouble?テイクプロフィット(ピップス)
commentstring注文のコメント
hasTrailingStopboolポジションのトレーリングストップを有効/無効にする
stopLossTriggerMethodStopTriggerMethod?ポジションのストップロスのトリガーメソッド

戻り値

TradeResult

1
 ExecuteMarketOrder(TradeType.Sell, Symbol, 10000);

ExecuteMarketOrder (7 of 18)

概要

非同期実行モードでマーケットオーダーを実行します

シグネチャ

1
public TradeResult ExecuteMarketOrder(TradeType tradeType, Symbol symbol, long volume)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolSymbol 
volumelong取引のボリューム(単位)

戻り値

TradeResult

ExecuteMarketOrder (8 of 18)

概要

非同期実行モードでマーケットオーダーを実行します

シグネチャ

1
public TradeResult ExecuteMarketOrder(TradeType tradeType, Symbol symbol, double volume)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolSymbol 
volumedouble取引のボリューム(単位)

戻り値

TradeResult

ExecuteMarketOrder (9 of 18)

概要

非同期実行モードでマーケットオーダーを実行します

シグネチャ

1
public TradeResult ExecuteMarketOrder(TradeType tradeType, Symbol symbol, long volume, string label)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolSymbol 
volumelong取引のボリューム(単位)
labelstring注文を表すラベル

戻り値

TradeResult

ExecuteMarketOrder (10 of 18)

概要

非同期実行モードでマーケットオーダーを実行します

シグネチャ

1
public TradeResult ExecuteMarketOrder(TradeType tradeType, Symbol symbol, double volume, string label)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolSymbol 
volumedouble取引のボリューム(単位)
labelstring注文を表すラベル

戻り値

TradeResult

1
 ExecuteMarketOrderAsync(TradeType.Buy, Symbol, 10000);

ExecuteMarketOrder (11 の 18)

概要

非同期実行モードでマーケット注文を実行します

シグネチャ

1
public TradeResult ExecuteMarketOrder(TradeType tradeType, Symbol symbol, long volume, string label, double? stopLossPips, double? takeProfitPips)

 

パラメーター

名前説明
tradeTypeTradeType取引の方向
symbolSymbol 
volumelong取引のボリューム(単位)
labelstring注文を示すラベル
stopLossPipsdouble?ストップロス(ピップ)
takeProfitPipsdouble?テイクプロフィット(ピップ)

戻り値

TradeResult

1
 ExecuteMarketOrderAsync(TradeType.Buy, Symbol, 10000);

ExecuteMarketOrder (12 の 18)

概要

非同期実行モードでマーケット注文を実行します

シグネチャ

1
public TradeResult ExecuteMarketOrder(TradeType tradeType, Symbol symbol, double volume, string label, double? stopLossPips, double? takeProfitPips)

 

パラメーター

名前説明
tradeTypeTradeType取引の方向
symbolSymbol 
volumedouble取引のボリューム(単位)
labelstring注文を示すラベル
stopLossPipsdouble?ストップロス(ピップ)
takeProfitPipsdouble?テイクプロフィット(ピップ)

戻り値

TradeResult

1
 ExecuteMarketOrderAsync(TradeType.Buy, Symbol, 10000);

ExecuteMarketOrder (13 の 18)

シグネチャ

1
public TradeResult ExecuteMarketOrder(TradeType tradeType, Symbol symbol, long volume, string label, double? stopLossPips, double? takeProfitPips, double? marketRangePips)

 

パラメーター

名前タイプ説明
tradeTypeTradeType 
symbolSymbol 
volumelong 
labelstring 
stopLossPipsdouble? 
takeProfitPipsdouble? 
marketRangePipsdouble? 

戻り値

TradeResult

ExecuteMarketOrder (14 of 18)

シグネチャ

1
public TradeResult ExecuteMarketOrder(TradeType tradeType, Symbol symbol, double volume, string label, double? stopLossPips, double? takeProfitPips, double? marketRangePips)

 

パラメーター

名前タイプ説明
tradeTypeTradeType 
symbolSymbol 
volumedouble 
labelstring 
stopLossPipsdouble? 
takeProfitPipsdouble? 
marketRangePipsdouble? 

戻り値

TradeResult

ExecuteMarketOrder (15 of 18)

シグネチャ

1
public TradeResult ExecuteMarketOrder(TradeType tradeType, Symbol symbol, long volume, string label, double? stopLossPips, double? takeProfitPips, double? marketRangePips, string comment)

 

パラメーター

名前タイプ説明
tradeTypeTradeType 
symbolSymbol 
volumelong 
labelstring 
stopLossPipsdouble? 
takeProfitPipsdouble? 
marketRangePipsdouble? 
commentstring 

戻り値

TradeResult

ExecuteMarketOrder (16 of 18)

シグネチャ

1
public TradeResult ExecuteMarketOrder(TradeType tradeType, Symbol symbol, double volume, string label, double? stopLossPips, double? takeProfitPips, double? marketRangePips, string comment)

 

パラメーター

名前タイプ説明
tradeTypeTradeType 
symbolSymbol 
volumedouble 
labelstring 
stopLossPipsdouble? 
takeProfitPipsdouble? 
marketRangePipsdouble? 
commentstring 

戻り値

TradeResult

ExecuteMarketOrder (17 of 18)

シグネチャ

1
public TradeResult ExecuteMarketOrder(TradeType tradeType, Symbol symbol, double volume, string label, double? stopLossPips, double? takeProfitPips, double? marketRangePips, string comment, bool hasTrailingStop)

 

パラメーター

名前タイプ説明
tradeTypeTradeType 
symbolSymbol 
volumedouble 
labelstring 
stopLossPipsdouble? 
takeProfitPipsdouble? 
marketRangePipsdouble? 
commentstring 
hasTrailingStopbool 

戻り値

TradeResult

ExecuteMarketOrder (18 of 18)

シグネチャ

1
public TradeResult ExecuteMarketOrder(TradeType tradeType, Symbol symbol, double volume, string label, double? stopLossPips, double? takeProfitPips, double? marketRangePips, string comment, bool hasTrailingStop, StopTriggerMethod? stopLossTriggerMethod)

 

パラメーター

名前タイプ説明
tradeTypeTradeType 
symbolSymbol 
volumedouble 
labelstring 
stopLossPipsdouble? 
takeProfitPipsdouble? 
marketRangePipsdouble? 
commentstring 
hasTrailingStopbool 
stopLossTriggerMethodStopTriggerMethod? 

戻り値

TradeResult

ExecuteMarketOrderAsync (18)

ExecuteMarketOrderAsync (1 of 18)

概要

非同期実行モードで市場注文を実行する

Signature

1
public TradeOperation ExecuteMarketOrderAsync(TradeType tradeType, string symbolName, double volume, Action<TradeResult> callback)

 

Parameters

NameTypeDescription
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引のボリューム(単位数)
callbackActionポジションがオープンしたときに発生するイベント

Return Value

TradeOperation

ExecuteMarketOrderAsync (2 of 18)

Summary

非同期実行モードでマーケット注文を実行します

Signature

1
public TradeOperation ExecuteMarketOrderAsync(TradeType tradeType, string symbolName, double volume, string label, Action<TradeResult> callback)

 

Parameters

NameTypeDescription
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引のボリューム(単位数)
labelstring注文を表すラベル
callbackActionポジションがオープンしたときに発生するイベント

Return Value

TradeOperation

ExecuteMarketOrderAsync (3 of 18)

Summary

非同期実行モードでマーケット注文を実行します

Signature

1
public TradeOperation ExecuteMarketOrderAsync(TradeType tradeType, string symbolName, double volume, string label, double? stopLossPips, double? takeProfitPips, Action<TradeResult> callback)

 

Parameters

NameTypeDescription
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引のボリューム(単位数)
labelstring注文を表すラベル
stopLossPipsdouble?ストップロス(ピップス)
takeProfitPipsdouble?テイクプロフィット(ピップス)
callbackActionポジションがオープンしたときに発生するイベント

Return Value

TradeOperation

ExecuteMarketOrderAsync (4 of 18)

Summary

非同期実行モードでマーケット注文を実行します

Signature

1
public TradeOperation ExecuteMarketOrderAsync(TradeType tradeType, string symbolName, double volume, string label, double? stopLossPips, double? takeProfitPips, DateTime? expirationDate, Action<TradeResult> callback)

 

Parameters

NameTypeDescription
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引のボリューム(単位数)
labelstring注文を表すラベル
stopLossPipsdouble?ストップロス(ピップス)
takeProfitPipsdouble?テイクプロフィット(ピップス)
expirationDateDateTime?注文の期限日
callbackActionポジションがオープンしたときに発生するイベント

Return Value

TradeOperation

1
 ExecuteMarketOrderAsync(TradeType.Buy, Symbol, 10000);

ExecuteMarketOrderAsync (6 の 18)

概要

非同期実行モードでマーケット注文を実行します。

シグネチャ

1
public TradeOperation ExecuteMarketOrderAsync(TradeType tradeType, string symbolName, double volume, string label, double? stopLossPips, double? takeProfitPips, string comment, bool hasTrailingStop, StopTriggerMethod? stopLossTriggerMethod, Action<TradeResult> callback)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引のボリューム(単位)
labelstring注文を表すラベル
stopLossPipsdouble?ストップロス(ピップス単位)
takeProfitPipsdouble?テイクプロフィット(ピップス単位)
commentstring注文のコメント
hasTrailingStopboolポジションのトレーリングストップを有効/無効にする
stopLossTriggerMethodStopTriggerMethod?ポジションのストップロスのトリガー方法
callbackActionポジションがオープンしたときに発生するイベント

戻り値

TradeOperation

1
 ExecuteMarketOrderAsync(TradeType.Buy, Symbol, 10000, "Test Order", 50, 100, "This is a test order.", true, StopTriggerMethod.Bid, OnTradeOpened);

ExecuteMarketOrderAsync (7 の 18)

概要

非同期でマーケット注文を実行します。

シグネチャ

1
public TradeOperation ExecuteMarketOrderAsync(TradeType tradeType, string symbolName, double volume, string label, double? stopLossPips, double? takeProfitPips, string comment, bool hasTrailingStop, StopTriggerMethod? stopLossTriggerMethod, Action<TradeResult> callback)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引のボリューム(単位)
labelstring注文を表すラベル
stopLossPipsdouble?ストップロス(ピップス単位)
takeProfitPipsdouble?テイクプロフィット(ピップス単位)
commentstring注文のコメント
hasTrailingStopboolポジションのトレーリングストップを有効/無効にする
stopLossTriggerMethodStopTriggerMethod?ポジションのストップロスのトリガー方法
callbackActionポジションがオープンしたときに発生するイベント

戻り値

TradeOperation

1
 ExecuteMarketOrderAsync(TradeType.Sell, Symbol, 5000, "Sell Order", 10, 20, "This is a sell order.", false, StopTriggerMethod.Ask, OnTradeOpened);

ExecuteMarketOrderAsync (12 の 18)

シグネチャ

1
public TradeOperation ExecuteMarketOrderAsync(TradeType tradeType, Symbol symbol, double volume, string label, double? stopLossPips, double? takeProfitPips, Action<TradeResult> callback)

 

パラメータ

名前説明
tradeTypeTradeType 
symbolSymbol 
volumedouble 
labelstring 
stopLossPipsdouble? 
takeProfitPipsdouble? 
callbackAction 

戻り値

TradeOperation

ExecuteMarketOrderAsync (13 の 18)

シグネチャ

1
public TradeOperation ExecuteMarketOrderAsync(TradeType tradeType, Symbol symbol, long volume, string label, double? stopLossPips, double? takeProfitPips, double? marketRangePips, Action<TradeResult> callback)

 

パラメータ

名前説明
tradeTypeTradeType 
symbolSymbol 
volumelong 
labelstring 
stopLossPipsdouble? 
takeProfitPipsdouble? 
marketRangePipsdouble? 
callbackAction 

戻り値

TradeOperation

ExecuteMarketOrderAsync (14 の 18)

シグネチャ

1
public TradeOperation ExecuteMarketOrderAsync(TradeType tradeType, Symbol symbol, double volume, string label, double? stopLossPips, double? takeProfitPips, double? marketRangePips, string comment, Action<TradeResult> callback)

 

パラメータ

名前説明
tradeTypeTradeType 
symbolSymbol 
volumedouble 
labelstring 
stopLossPipsdouble? 
takeProfitPipsdouble? 
marketRangePipsdouble? 
commentstring 
callbackAction

戻り値

TradeOperation

ExecuteMarketOrderAsync (15 の 18)

シグネチャ

1
public TradeOperation ExecuteMarketOrderAsync(TradeType tradeType, Symbol symbol, long volume, string label, double? stopLossPips, double? takeProfitPips, double? marketRangePips, string comment, string tag, Action<TradeResult> callback)

 

パラメータ

名前説明
tradeTypeTradeType 
symbolSymbol 
volumelong 
labelstring 
stopLossPipsdouble? 
takeProfitPipsdouble? 
marketRangePipsdouble? 
commentstring 
tagstring 
callbackAction

戻り値

TradeOperation

ExecuteMarketOrderAsync (12 of 18)

Signature

1
public TradeOperation ExecuteMarketOrderAsync(TradeType tradeType, Symbol symbol, double volume, string label, double? stopLossPips, double? takeProfitPips, Action<TradeResult> callback)

 

Parameters

NameTypeDescription
tradeTypeTradeType 
symbolSymbol 
volumedouble 
labelstring 
stopLossPipsdouble? 
takeProfitPipsdouble? 
callbackAction 

Return Value

TradeOperation

ExecuteMarketOrderAsync (13 of 18)

Signature

1
public TradeOperation ExecuteMarketOrderAsync(TradeType tradeType, Symbol symbol, long volume, string label, double? stopLossPips, double? takeProfitPips, double? marketRangePips, Action<TradeResult> callback)

 

Parameters

NameTypeDescription
tradeTypeTradeType 
symbolSymbol 
volumelong 
labelstring 
stopLossPipsdouble? 
takeProfitPipsdouble? 
marketRangePipsdouble? 
callbackAction 

Return Value

TradeOperation

ExecuteMarketOrderAsync (14 of 18)

Signature

1
public TradeOperation ExecuteMarketOrderAsync(TradeType tradeType, Symbol symbol, double volume, string label, double? stopLossPips, double? takeProfitPips, double? marketRangePips, Action<TradeResult> callback)

 

Parameters

NameTypeDescription
tradeTypeTradeType 
symbolSymbol 
volumedouble 
labelstring 
stopLossPipsdouble? 
takeProfitPipsdouble? 
marketRangePipsdouble? 
callbackAction 

Return Value

TradeOperation

ExecuteMarketOrderAsync (15 of 18)

Signature

1
public TradeOperation ExecuteMarketOrderAsync(TradeType tradeType, Symbol symbol, long volume, string label, double? stopLossPips, double? takeProfitPips, double? marketRangePips, string comment, Action<TradeResult> callback)

 

Parameters

NameTypeDescription
tradeTypeTradeType 
symbolSymbol 
volumelong 
labelstring 
stopLossPipsdouble? 
takeProfitPipsdouble? 
marketRangePipsdouble? 
commentstring 
callbackAction 

Return Value

TradeOperation

ExecuteMarketOrderAsync (16 of 18)

Signature

1
public TradeOperation ExecuteMarketOrderAsync(TradeType tradeType, Symbol symbol, double volume, string label, double? stopLossPips, double? takeProfitPips, double? marketRangePips, string comment, Action<TradeResult> callback)

 

Parameters

NameTypeDescription
tradeTypeTradeType 
symbolSymbol 
volumedouble 
labelstring 
stopLossPipsdouble? 
takeProfitPipsdouble? 
marketRangePipsdouble? 
commentstring 
callbackAction 

Return Value

TradeOperation

ExecuteMarketOrderAsync (17 of 18)

Signature

1
public TradeOperation ExecuteMarketOrderAsync(TradeType tradeType, Symbol symbol, double volume, string label, double? stopLossPips, double? takeProfitPips, double? marketRangePips, string comment, bool hasTrailingStop, Action<TradeResult> callback)

 

Parameters

NameTypeDescription
tradeTypeTradeType 
symbolSymbol 
volumedouble 
labelstring 
stopLossPipsdouble? 
takeProfitPipsdouble? 
marketRangePipsdouble? 
commentstring 
hasTrailingStopbool 
callbackAction 

Return Value

TradeOperation

ExecuteMarketOrderAsync (18 of 18)

Signature

1
public TradeOperation ExecuteMarketOrderAsync(TradeType tradeType, Symbol symbol, double volume, string label, double? stopLossPips, double? takeProfitPips, double? marketRangePips, string comment, bool hasTrailingStop, StopTriggerMethod? stopLossTriggerMethod, Action<TradeResult> callback)

 

Parameters

NameTypeDescription
tradeTypeTradeType 
symbolSymbol 
volumedouble 
labelstring 
stopLossPipsdouble? 
takeProfitPipsdouble? 
marketRangePipsdouble? 
commentstring 
hasTrailingStopbool 
stopLossTriggerMethodStopTriggerMethod? 
callbackAction 

Return Value

TradeOperation

ExecuteMarketRangeOrder (6)

ExecuteMarketRangeOrder (1 of 6)

Summary

Execute a Market Order

Signature

1
public TradeResult ExecuteMarketRangeOrder(TradeType tradeType, string symbolName, double volume, double marketRangePips, double basePrice)

 

Parameters

NameTypeDescription
tradeTypeTradeTypeDirection of trade
symbolNamestringSymbol name of trade
volumedoubleVolume (in units) of trade
marketRangePipsdoubleThe market range (slippage) in Pips
basePricedoubleBase price to calculate relative slippage price

Return Value

TradeResult

ExecuteMarketRangeOrder (2 of 6)

Summary

Execute a Market Order

Signature

1
public TradeResult ExecuteMarketRangeOrder(TradeType tradeType, string symbolName, double volume, double marketRangePips, double basePrice, string label)

 

Parameters

NameTypeDescription
tradeTypeTradeTypeDirection of trade
symbolNamestringSymbol name of trade
volumedoubleVolume (in units) of trade
marketRangePipsdoubleThe market range (slippage) in Pips
basePricedoubleBase price to calculate relative slippage price
labelstringRepresenting label

Return Value

TradeResult

ExecuteMarketRangeOrder (3 of 6)

概要

マーケットオーダーを実行する

シグネチャ

1
public TradeResult ExecuteMarketRangeOrder(TradeType tradeType, string symbolName, double volume, double marketRangePips, double basePrice, string label, double? stopLossPips, double? takeProfitPips)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引のボリューム(単位)
marketRangePipsdouble市場範囲(スリッページ)ピップス
basePricedouble相対的なスリッページ価格を計算するための基準価格
labelstringラベルを表す
stopLossPipsdouble?ストップロスのピップス
takeProfitPipsdouble?テイクプロフィットのピップス

戻り値

TradeResult

ExecuteMarketRangeOrder (4 of 6)

概要

マーケットオーダーを実行する

シグネチャ

1
public TradeResult ExecuteMarketRangeOrder(TradeType tradeType, string symbolName, double volume, double marketRangePips, double basePrice, string label, double? stopLossPips, double? takeProfitPips, string comment)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引のボリューム(単位)
marketRangePipsdouble市場範囲(スリッページ)ピップス
basePricedouble相対的なスリッページ価格を計算するための基準価格
labelstringラベルを表す
stopLossPipsdouble?ストップロスのピップス
takeProfitPipsdouble?テイクプロフィットのピップス
commentstring注文コメント

戻り値

TradeResult

1
 ExecuteMarketRangeOrder(TradeType.Sell, Symbol, 10000);

ExecuteMarketRangeOrder (5 of 6)

概要

マーケットオーダーを実行する

シグネチャ

1
public TradeResult ExecuteMarketRangeOrder(TradeType tradeType, string symbolName, double volume, double marketRangePips, double basePrice, string label, double? stopLossPips, double? takeProfitPips, string comment, bool hasTrailingStop)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引のボリューム(単位)
marketRangePipsdouble市場範囲(スリッページ)ピップス
basePricedouble相対的なスリッページ価格を計算するための基準価格
labelstringラベルを表す
stopLossPipsdouble?ストップロスのピップス
takeProfitPipsdouble?テイクプロフィットのピップス
commentstring注文コメント
hasTrailingStopboolポジションにトレーリングストップを有効/無効にする

戻り値

TradeResult

1
 ExecuteMarketRangeOrder(TradeType.Sell, Symbol, 10000);

ExecuteMarketRangeOrder (6 of 6)

概要

マーケットオーダーを実行する

シグネチャ

1
public TradeResult ExecuteMarketRangeOrder(TradeType tradeType, string symbolName, double volume, double marketRangePips, double basePrice, string label, double? stopLossPips, double? takeProfitPips, string comment, bool hasTrailingStop, StopTriggerMethod? stopLossTriggerMethod)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引のボリューム(単位)
marketRangePipsdouble市場範囲(スリッページ)ピップス
basePricedouble相対的なスリッページ価格を計算するための基準価格
labelstringラベルを表す
stopLossPipsdouble?ストップロスのピップス
takeProfitPipsdouble?テイクプロフィットのピップス
commentstring注文コメント
hasTrailingStopboolポジションにトレーリングストップを有効/無効にする
stopLossTriggerMethodStopTriggerMethod?ポジションのストップロスのトリガー方法

戻り値

TradeResult

1
 ExecuteMarketRangeOrder(TradeType.Sell, Symbol, 10000);

ExecuteMarketRangeOrderAsync (6)

ExecuteMarketRangeOrderAsync (1 of 6)

概要

非同期実行モードでマーケットオーダーを実行する

シグネチャ

1
public TradeOperation ExecuteMarketRangeOrderAsync(TradeType tradeType, string symbolName, double volume, double marketRangePips, double basePrice, Action<TradeResult> callback)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引のボリューム(単位)
marketRangePipsdouble市場範囲(スリッページ)ピップス
basePricedouble相対的なスリッページ価格を計算するための基準価格
callbackActionポジションが開かれたときに発生するイベント

戻り値

TradeOperation

ExecuteMarketRangeOrderAsync (2 of 6)

概要

非同期実行モードでマーケットオーダーを実行する

シグネチャ

1
public TradeOperation ExecuteMarketRangeOrderAsync(TradeType tradeType, string symbolName, double volume, double marketRangePips, double basePrice, string label, Action<TradeResult> callback)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引のボリューム(単位)
marketRangePipsdouble市場範囲(スリッページ)ピップス
basePricedouble相対的なスリッページ価格を計算するための基準価格
labelstringオーダーを表すラベル
callbackActionポジションが開かれたときに発生するイベント

戻り値

TradeOperation

ExecuteMarketRangeOrderAsync (3 of 6)

概要

非同期実行モードでマーケットオーダーを実行する

シグネチャ

1
public TradeOperation ExecuteMarketRangeOrderAsync(TradeType tradeType, string symbolName, double volume, double marketRangePips, double basePrice, string label, double? stopLossPips, double? takeProfitPips, Action<TradeResult> callback)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引のボリューム(単位)
marketRangePipsdouble市場範囲(スリッページ)ピップス
basePricedouble相対的なスリッページ価格を計算するための基準価格
labelstringオーダーを表すラベル
stopLossPipsdouble?ストップロスのピップス
takeProfitPipsdouble?テイクプロフィットのピップス
callbackActionポジションが開かれたときに発生するイベント

戻り値

TradeOperation

ExecuteMarketRangeOrderAsync (4 of 6)

概要

非同期実行モードでマーケット注文を実行します。

シグネチャ

1
public TradeOperation ExecuteMarketRangeOrderAsync(TradeType tradeType, string symbolName, double volume, double marketRangePips, double basePrice, string label, double? stopLossPips, double? takeProfitPips, string comment, bool hasTrailingStop, Action<TradeResult> callback)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引のボリューム(単位)
marketRangePipsdoubleマーケットレンジ(スリッページ)のピップ数
basePricedouble相対スリッページ価格を計算するための基準価格
labelstring注文を表すラベル
stopLossPipsdouble?ストップロスのピップ数
takeProfitPipsdouble?テイクプロフィットのピップ数
commentstring注文のコメント
hasTrailingStopboolポジションのトレーリングストップを有効/無効にする
callbackActionポジションがオープンされたときに発生するイベント

戻り値

TradeOperation

1
 ExecuteMarketRangeOrderAsync(TradeType.Buy, Symbol, 10000);

ExecuteMarketRangeOrderAsync (6 / 6)

概要

非同期実行モードでマーケット注文を実行します

シグネチャ

1
public TradeOperation ExecuteMarketRangeOrderAsync(TradeType tradeType, string symbolName, double volume, double marketRangePips, double basePrice, string label, double? stopLossPips, double? takeProfitPips, string comment, bool hasTrailingStop, StopTriggerMethod? stopLossTriggerMethod, Action<TradeResult> callback)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引のボリューム(単位)
marketRangePipsdoubleマーケットレンジ(スリッページ)のピップ数
basePricedouble相対スリッページ価格を計算するための基準価格
labelstring注文を表すラベル
stopLossPipsdouble?ストップロスのピップ数
takeProfitPipsdouble?テイクプロフィットのピップ数
commentstring注文のコメント
hasTrailingStopboolポジションのトレーリングストップを有効/無効にする
stopLossTriggerMethodStopTriggerMethod?ポジションのストップロスのトリガー方法
callbackActionポジションがオープンされたときに発生するイベント

戻り値

TradeOperation

1
 ExecuteMarketRangeOrderAsync(TradeType.Buy, Symbol, 10000);

CancelPendingOrder

概要

保留中の注文をキャンセルします

シグネチャ

1
public TradeResult CancelPendingOrder(PendingOrder pendingOrder)

 

パラメータ

名前説明
pendingOrderPendingOrder影響を受ける保留中の注文

戻り値

TradeResult

1
2
3
4
 foreach (var order in PendingOrders)
 {
     CancelPendingOrder(order);
 }

ModifyPendingOrder (10)

ModifyPendingOrder (1 of 10)

Summary

Modify a Pending Order

Signature

1
public TradeResult ModifyPendingOrder(PendingOrder pendingOrder, double targetPrice)

 

Parameters

NameTypeDescription
pendingOrderPendingOrderPending Order which is affected
targetPricedoubleNew target price

Return Value

TradeResult

Examples

1
2
3
4
5
 foreach (var order in PendingOrders)
 {
     if (order.StopLossPips == null)
         ModifyPendingOrder(order, order.TargetPrice);
 }

ModifyPendingOrder (2 of 10)

Summary

Modify a Pending Order

Signature

1
public TradeResult ModifyPendingOrder(PendingOrder pendingOrder, double targetPrice, double? stopLossPips, double? takeProfitPips)

 

Parameters

NameTypeDescription
pendingOrderPendingOrderPending Order which is affected
targetPricedoubleNew target price
stopLossPipsdouble?New stop loss pips value from target price
takeProfitPipsdouble?New take profit pips value from target price

Return Value

TradeResult

Examples

1
2
3
4
5
 foreach (var order in PendingOrders)
 {
     if (order.StopLossPips == null)
         ModifyPendingOrder(order, order.TargetPrice, 10, order.TakeProfitPips);
 }

ModifyPendingOrder (3 of 10)

ModifyPendingOrder (10)

概要

保留中の注文を変更します

シグネチャ

1
public TradeResult ModifyPendingOrder(PendingOrder pendingOrder, double targetPrice)

 

パラメータ

名前説明
pendingOrderPendingOrder変更される保留中の注文
targetPricedouble新しいターゲット価格

戻り値

TradeResult

1
2
3
4
5
 foreach (var order in PendingOrders)
 {
     if (order.StopLossPips == null)
         ModifyPendingOrder(order, order.TargetPrice);
 }

ModifyPendingOrder (2 of 10)

概要

保留中の注文を変更します

シグネチャ

1
public TradeResult ModifyPendingOrder(PendingOrder pendingOrder, double targetPrice, double? stopLossPips, double? takeProfitPips)

 

パラメータ

名前説明
pendingOrderPendingOrder変更される保留中の注文
targetPricedouble新しいターゲット価格
stopLossPipsdouble?ターゲット価格からの新しいストップロスピップ値
takeProfitPipsdouble?ターゲット価格からの新しいテイクプロフィットピップ値

戻り値

TradeResult

1
2
3
4
5
 foreach (var order in PendingOrders)
 {
     if (order.StopLossPips == null)
         ModifyPendingOrder(order, order.TargetPrice, 10, order.TakeProfitPips);
 }

ModifyPendingOrder (3 of 10)

概要

保留中の注文を変更します

シグネチャ

1
public TradeResult ModifyPendingOrder(PendingOrder pendingOrder, double targetPrice, double? stopLossPips, double? takeProfitPips, double? trailingStopPips)

 

パラメータ

名前説明
pendingOrderPendingOrder変更される保留中の注文
targetPricedouble新しいターゲット価格
stopLossPipsdouble?ターゲット価格からの新しいストップロスピップ値
takeProfitPipsdouble?ターゲット価格からの新しいテイクプロフィットピップ値
trailingStopPipsdouble?新しいトレーリングストップピップ値

戻り値

TradeResult

1
2
3
4
5
 foreach (var order in PendingOrders)
 {
     if (order.StopLossPips == null)
         ModifyPendingOrder(order, order.TargetPrice, 10, order.TakeProfitPips, order.TrailingStopPips);
 }

ModifyPendingOrder (6 of 10)

概要

保留中の注文を修正します

シグネチャ

1
public TradeResult ModifyPendingOrder(PendingOrder pendingOrder, double targetPrice, double? stopLossPips, double? takeProfitPips, DateTime? expirationTime, double volume, bool hasTrailingStop)

 

パラメータ

名前説明
pendingOrderPendingOrder影響を受ける保留中の注文
targetPricedouble新しいターゲット価格
stopLossPipsdouble?ターゲット価格からの新しいストップロスピップ値
takeProfitPipsdouble?ターゲット価格からの新しいテイクプロフィットピップ値
expirationTimeDateTime?新しい注文の有効期限
volumedouble注文の新しいボリューム(単位)
hasTrailingStopboolポジションのトレーリングストップを有効/無効にします

戻り値

TradeResult

1
2
3
4
5
6
 foreach (var order in PendingOrders)
 {
     if (order.StopLossPips == null)
         ModifyPendingOrder(order, order.TargetPrice, 10, order.TakeProfitPips,
                         order.ExpirationTime);
 }

ModifyPendingOrder (7 of 10)

概要

保留中の注文を修正します

シグネチャ

1
public TradeResult ModifyPendingOrder(PendingOrder pendingOrder, double targetPrice, double? stopLossPips, double? takeProfitPips, DateTime? expirationTime, double volume, bool hasTrailingStop, StopTriggerMethod? stopLossTriggerMethod)

 

パラメータ

名前説明
pendingOrderPendingOrder影響を受ける保留中の注文
targetPricedouble新しいターゲット価格
stopLossPipsdouble?ターゲット価格からの新しいストップロスピップ値
takeProfitPipsdouble?ターゲット価格からの新しいテイクプロフィットピップ値
expirationTimeDateTime?新しい注文の有効期限
volumedouble注文の新しいボリューム(単位)
hasTrailingStopboolポジションのトレーリングストップを有効/無効にします
stopLossTriggerMethodStopTriggerMethod?ストップロスのトリガー方法

戻り値

TradeResult

1
2
3
4
5
6
 foreach (var order in PendingOrders)
 {
     if (order.StopLossPips == null)
         ModifyPendingOrder(order, order.TargetPrice, 10, order.TakeProfitPips,
                         order.ExpirationTime, StopTriggerMethod.MethodA);
 }

ModifyPendingOrder (8 of 10)

概要

保留中の注文を修正します

シグネチャ

1
public TradeResult ModifyPendingOrder(PendingOrder pendingOrder, double targetPrice, double? stopLossPips, double? takeProfitPips, DateTime? expirationTime, double volume, bool hasTrailingStop, StopTriggerMethod? stopLossTriggerMethod, StopTriggerMethod? stopOrderTriggerMethod)

 

パラメータ

名前説明
pendingOrderPendingOrder影響を受ける保留中の注文
targetPricedouble新しいターゲット価格
stopLossPipsdouble?ターゲット価格からの新しいストップロスピップ値
takeProfitPipsdouble?ターゲット価格からの新しいテイクプロフィットピップ値
expirationTimeDateTime?新しい注文の有効期限
volumedouble注文の新しいボリューム(単位)
hasTrailingStopboolポジションのトレーリングストップを有効/無効にします
stopLossTriggerMethodStopTriggerMethod?ストップロスのトリガー方法
stopOrderTriggerMethodStopTriggerMethod?ストップオーダーのトリガー方法

戻り値

TradeResult

1
2
3
4
5
6
 foreach (var order in PendingOrders)
 {
     if (order.StopLossPips == null)
         ModifyPendingOrder(order, order.TargetPrice, 10, order.TakeProfitPips,
                         order.ExpirationTime, StopTriggerMethod.MethodA, StopTriggerMethod.MethodB);
 }

ModifyPendingOrder (9 of 10)

概要

保留中の注文を修正します

シグネチャ

1
public TradeResult ModifyPendingOrder(PendingOrder pendingOrder, double targetPrice, double? stopLossPips, double? takeProfitPips, DateTime? expirationTime, double volume, bool hasTrailingStop, StopTriggerMethod? stopLossTriggerMethod, StopTriggerMethod? stopOrderTriggerMethod, StopTriggerMethod? takeProfitTriggerMethod)

 

パラメータ

名前説明
pendingOrderPendingOrder影響を受ける保留中の注文
targetPricedouble新しいターゲット価格
stopLossPipsdouble?ターゲット価格からの新しいストップロスピップ値
takeProfitPipsdouble?ターゲット価格からの新しいテイクプロフィットピップ値
expirationTimeDateTime?新しい注文の有効期限
volumedouble注文の新しいボリューム(単位)
hasTrailingStopboolポジションのトレーリングストップを有効/無効にします
stopLossTriggerMethodStopTriggerMethod?ストップロスのトリガー方法
stopOrderTriggerMethodStopTriggerMethod?ストップオーダーのトリガー方法
takeProfitTriggerMethodStopTriggerMethod?テイクプロフィットのトリガー方法

戻り値

TradeResult

1
2
3
4
5
6
 foreach (var order in PendingOrders)
 {
     if (order.StopLossPips == null)
         ModifyPendingOrder(order, order.TargetPrice, 10, order.TakeProfitPips,
                         order.ExpirationTime, StopTriggerMethod.MethodA, StopTriggerMethod.MethodB, StopTriggerMethod.MethodC);
 }

パラメータ

名前説明
pendingOrderPendingOrder影響を受ける保留中の注文
targetPricedouble新しいターゲット価格
stopLossPipsdouble?ターゲット価格からの新しいストップロスピップ値
takeProfitPipsdouble?ターゲット価格からの新しいテイクプロフィットピップ値
expirationTimeDateTime?新しい注文の有効期限
volumedouble注文の新しいボリューム(単位)
hasTrailingStopboolポジションのトレーリングストップを有効/無効にします
stopLossTriggerMethodStopTriggerMethod?ストップロスのトリガー方法
stopOrderTriggerMethodStopTriggerMethod?ストップオーダーのトリガー方法

戻り値

TradeResult

1
2
3
4
5
6
 foreach (var order in PendingOrders)
 {
     if (order.StopLossPips == null)
         ModifyPendingOrder(order, order.TargetPrice, 10, order.TakeProfitPips,
                            order.ExpirationTime);
 }

ModifyPendingOrder (9 of 10)

概要

保留中の注文を修正します

シグネチャ

1
public TradeResult ModifyPendingOrder(PendingOrder pendingOrder, double targetPrice, double? stopLossPips, double? takeProfitPips, DateTime? expirationTime, double volume, bool hasTrailingStop, StopTriggerMethod? stopLossTriggerMethod, StopTriggerMethod? stopOrderTriggerMethod, double? stopLimitRangePips)

 

パラメータ

名前説明
pendingOrderPendingOrder影響を受ける保留中の注文
targetPricedouble新しいターゲット価格
stopLossPipsdouble?ターゲット価格からの新しいストップロスピップ値
takeProfitPipsdouble?ターゲット価格からの新しいテイクプロフィットピップ値
expirationTimeDateTime?新しい注文の有効期限
volumedouble注文の新しいボリューム(単位)
hasTrailingStopboolポジションのトレーリングストップを有効/無効にします
stopLossTriggerMethodStopTriggerMethod?ポジションのストップロスのトリガー方法
stopOrderTriggerMethodStopTriggerMethod?ストップオーダーの場合に保留中の注文がどのようにトリガーされるかを決定します
stopLimitRangePipsdouble?ターゲット価格からの注文実行までの最大距離

返り値

TradeResult

1
2
3
4
5
6
 foreach (var order in PendingOrders)
 {
     if (order.StopLossPips == null)
         ModifyPendingOrder(order, order.TargetPrice, 10, order.TakeProfitPips,
                            order.ExpirationTime);
 }

ModifyPendingOrder (10 of 10)

概要

非同期実行モードでの保留注文の修正

シグネチャ

1
public TradeResult ModifyPendingOrder(PendingOrder pendingOrder, long volume, double targetPrice, double? stopLossPips, double? takeProfitPips, DateTime? expirationTime)

 

パラメータ

名前説明
pendingOrderPendingOrder修正する保留注文
volumelong 
targetPricedouble注文が市場注文に変わる新しいターゲット価格
stopLossPipsdouble? 
takeProfitPipsdouble? 
expirationTimeDateTime? 

返り値

TradeResult

1
2
3
4
5
 foreach (var order in PendingOrders)
 {
     if (order.StopLossPips == null)
         ModifyPendingOrderAsync(order, order.TargetPrice);
 }

CancelPendingOrderAsync

概要

非同期実行モードでの保留注文のキャンセル

シグネチャ

1
public TradeOperation CancelPendingOrderAsync(PendingOrder pendingOrder, Action<TradeResult> callback)

 

パラメータ

名前説明
pendingOrderPendingOrderキャンセルする保留注文
callbackAction保留注文がキャンセルされたときに呼ばれるメソッド

返り値

TradeOperation

1
2
3
4
5
 if (PendingOrders.Count > 0)
 {
     var pendingOrder = PendingOrders[0];
     CancelPendingOrderAsync(pendingOrder);
 }

ModifyPendingOrderAsync (10)

ModifyPendingOrderAsync (1 of 10)

概要

非同期実行モードでの保留注文の修正

シグネチャ

1
public TradeOperation ModifyPendingOrderAsync(PendingOrder pendingOrder, double targetPrice, Action<TradeResult> callback)

 

パラメータ

名前説明
pendingOrderPendingOrder修正する保留注文
targetPricedouble注文が市場注文に変わる新しいターゲット価格
callbackAction注文が修正されたときに呼ばれるメソッド

戻り値

TradeOperation

1
2
3
4
5
 foreach (var order in PendingOrders)
 {
     if (order.StopLossPips == null)
         ModifyPendingOrderAsync(order, order.TargetPrice);
 }

ModifyPendingOrderAsync (2 of 10)

概要

非同期実行モードでの保留注文の修正

シグネチャ

1
public TradeOperation ModifyPendingOrderAsync(PendingOrder pendingOrder, double targetPrice, double? stopLossPips, double? takeProfitPips, Action<TradeResult> callback)

 

パラメータ

名前タイプ説明
pendingOrderPendingOrder修正する保留注文
targetPricedouble注文が市場注文に変わる新しいターゲット価格
stopLossPipsdouble?新しいストップロス
takeProfitPipsdouble?新しいテイクプロフィット
callbackAction注文が修正されたときに呼ばれるメソッド

戻り値

TradeOperation

1
2
3
4
5
 foreach (var order in PendingOrders)
 {
     if (order.StopLossPips == null)
         ModifyPendingOrderAsync(order, order.TargetPrice, 10, order.TakeProfitPips);
 }

ModifyPendingOrderAsync (3 of 10)

概要

非同期実行モードでの保留注文の修正

シグネチャ

1
public TradeOperation ModifyPendingOrderAsync(PendingOrder pendingOrder, double targetPrice, double? stopLossPips, double? takeProfitPips, DateTime? expirationTime, Action<TradeResult> callback)

 

パラメータ

名前タイプ説明
pendingOrderPendingOrder修正する保留注文
targetPricedouble注文が市場注文に変わる新しいターゲット価格
stopLossPipsdouble?新しいストップロス
takeProfitPipsdouble?新しいテイクプロフィット
expirationTimeDateTime?注文の有効期限
callbackAction注文が修正されたときに呼ばれるメソッド

戻り値

TradeOperation

1
2
3
4
5
 foreach (var order in PendingOrders)
 {
     if (order.StopLossPips == null)
         ModifyPendingOrderAsync(order, order.TargetPrice, 10, order.TakeProfitPips, DateTime.Now.AddHours(1), callback);
 }

ModifyPendingOrderAsync (4 of 10)

概要

非同期実行モードでの保留注文の修正

シグネチャ

1
public TradeOperation ModifyPendingOrderAsync(PendingOrder pendingOrder, double targetPrice, double? stopLossPips, double? takeProfitPips, DateTime? expirationTime, bool useAsync, Action<TradeResult> callback)

 

パラメータ

名前タイプ説明
pendingOrderPendingOrder修正する保留注文
targetPricedouble注文が市場注文に変わる新しいターゲット価格
stopLossPipsdouble?新しいストップロス
takeProfitPipsdouble?新しいテイクプロフィット
expirationTimeDateTime?注文の有効期限
useAsyncbool非同期で実行するかどうか
callbackAction注文が修正されたときに呼ばれるメソッド

戻り値

TradeOperation

1
2
3
4
5
 foreach (var order in PendingOrders)
 {
     if (order.StopLossPips == null)
         ModifyPendingOrderAsync(order, order.TargetPrice, 10, order.TakeProfitPips, DateTime.Now.AddHours(1), true, callback);
 }

ModifyPendingOrderAsync (5 of 10)

概要

非同期実行モードでの保留注文の修正

シグネチャ

1
public TradeOperation ModifyPendingOrderAsync(PendingOrder pendingOrder, double targetPrice, double? stopLossPips, double? takeProfitPips, DateTime? expirationTime, bool useAsync, int slippage, Action<TradeResult> callback)

 

パラメータ

名前タイプ説明
pendingOrderPendingOrder修正する保留注文
targetPricedouble注文が市場注文に変わる新しいターゲット価格
stopLossPipsdouble?新しいストップロス
takeProfitPipsdouble?新しいテイクプロフィット
expirationTimeDateTime?注文の有効期限
useAsyncbool非同期で実行するかどうか
slippageintスリッページ
callbackAction注文が修正されたときに呼ばれるメソッド

戻り値

TradeOperation

1
2
3
4
5
 foreach (var order in PendingOrders)
 {
     if (order.StopLossPips == null)
         ModifyPendingOrderAsync(order, order.TargetPrice, 10, order.TakeProfitPips, DateTime.Now.AddHours(1), true, 5, callback);
 }

ModifyPendingOrderAsync (6 of 10)

概要

非同期実行モードでの保留注文の修正

シグネチャ

1
public TradeOperation ModifyPendingOrderAsync(PendingOrder pendingOrder, double targetPrice, double? stopLossPips, double? takeProfitPips, DateTime? expirationTime, bool useAsync, int slippage, string orderComment, Action<TradeResult> callback)

 

パラメータ

名前タイプ説明
pendingOrderPendingOrder修正する保留注文
targetPricedouble注文が市場注文に変わる新しいターゲット価格
stopLossPipsdouble?新しいストップロス
takeProfitPipsdouble?新しいテイクプロフィット
expirationTimeDateTime?注文の有効期限
useAsyncbool非同期で実行するかどうか
slippageintスリッページ
orderCommentstring注文コメント
callbackAction注文が修正されたときに呼ばれるメソッド

戻り値

TradeOperation

1
2
3
4
5
 foreach (var order in PendingOrders)
 {
     if (order.StopLossPips == null)
         ModifyPendingOrderAsync(order, order.TargetPrice, 10, order.TakeProfitPips, DateTime.Now.AddHours(1), true, 5, "Comment", callback);
 }

ModifyPendingOrderAsync (7 of 10)

概要

非同期実行モードでの保留注文の修正

シグネチャ

1
public TradeOperation ModifyPendingOrderAsync(PendingOrder pendingOrder, double targetPrice, double? stopLossPips, double? takeProfitPips, DateTime? expirationTime, bool useAsync, int slippage, string orderComment, string orderLabel, Action<TradeResult> callback)

 

パラメータ

名前タイプ説明
pendingOrderPendingOrder修正する保留注文
targetPricedouble注文が市場注文に変わる新しいターゲット価格
stopLossPipsdouble?新しいストップロス
takeProfitPipsdouble?新しいテイクプロフィット
expirationTimeDateTime?注文の有効期限
useAsyncbool非同期で実行するかどうか
slippageintスリッページ
orderCommentstring注文コメント
orderLabelstring注文ラベル
callbackAction注文が修正されたときに呼ばれるメソッド

戻り値

TradeOperation

1
2
3
4
5
 foreach (var order in PendingOrders)
 {
     if (order.StopLossPips == null)
         ModifyPendingOrderAsync(order, order.TargetPrice, 10, order.TakeProfitPips, DateTime.Now.AddHours(1), true, 5, "Comment", "Label", callback);
 }

戻り値

TradeOperation

1
2
3
4
5
6
7
 bool hasTrailingStop = false;
 foreach (var order in PendingOrders)
 {
     if (order.StopLossPips == null)
         ModifyPendingOrderAsync(order, order.TargetPrice, 10, order.TakeProfitPips,
                         order.ExpirationTime, 5, order.HasTrailingStop, StopTriggerMethod.Trade, StopTriggerMethod.Opposite);
 }

ModifyPendingOrderAsync (6 / 10)

概要

非同期実行モードで保留中の注文を修正します

シグネチャ

1
public TradeOperation ModifyPendingOrderAsync(PendingOrder pendingOrder, double targetPrice, double? stopLossPips, double? takeProfitPips, DateTime? expirationTime, double volume, bool hasTrailingStop, StopTriggerMethod? stopLossTriggerMethod, StopTriggerMethod? stopOrderTriggerMethod, Action<TradeResult> callback)

 

パラメータ

名前説明
pendingOrderPendingOrder修正する保留中の注文
targetPricedouble注文が市場注文に変わる新しいターゲット価格
stopLossPipsdouble?新しいストップロス
takeProfitPipsdouble?新しいテイクプロフィット
expirationTimeDateTime?新しい有効期限と時間
volumedouble注文の新しいボリューム(単位)
hasTrailingStopboolポジションのトレーリングストップの有効/無効
stopLossTriggerMethodStopTriggerMethod?ポジションのストップロスのトリガー方法
stopOrderTriggerMethodStopTriggerMethod?ストップオーダーの場合の保留中の注文がトリガーされる方法
callbackAction注文が修正されたときに呼び出されるメソッド

戻り値

TradeOperation

1
2
3
4
5
6
7
 bool hasTrailingStop = false;
 foreach (var order in PendingOrders)
 {
     if (order.StopLossPips == null)
         ModifyPendingOrderAsync(order, order.TargetPrice, 10, order.TakeProfitPips,
                         order.ExpirationTime, 5, order.HasTrailingStop, StopTriggerMethod.Trade, StopTriggerMethod.Opposite);
 }

ModifyPendingOrderAsync (9 / 10)

概要

非同期実行モードで保留中の注文を修正します

シグネチャ

1
public TradeOperation ModifyPendingOrderAsync(PendingOrder pendingOrder, double targetPrice, double? stopLossPips, double? takeProfitPips, DateTime? expirationTime, double volume, bool hasTrailingStop, StopTriggerMethod? stopLossTriggerMethod, StopTriggerMethod? stopOrderTriggerMethod, double? stopLimitRangePips, Action<TradeResult> callback)

 

パラメータ

名前説明
pendingOrderPendingOrder修正する保留中の注文
targetPricedouble注文が市場注文に変わる新しいターゲット価格
stopLossPipsdouble?新しいストップロス
takeProfitPipsdouble?新しいテイクプロフィット
expirationTimeDateTime?新しい有効期限と時間
volumedouble注文の新しいボリューム(単位)
hasTrailingStopboolポジションのトレーリングストップの有効/無効
stopLossTriggerMethodStopTriggerMethod?ポジションのストップロスのトリガー方法
stopOrderTriggerMethodStopTriggerMethod?ストップオーダーの場合の保留中の注文がトリガーされる方法
stopLimitRangePipsdouble?ターゲット価格からの注文実行までの最大距離
callbackAction注文が修正されたときに呼び出されるメソッド

戻り値

TradeOperation

1
2
3
4
5
6
 foreach (var order in PendingOrders)
 {
     if (order.StopLossPips == null)
         ModifyPendingOrderAsync(order, order.TargetPrice, 10, order.TakeProfitPips,
                         order.ExpirationTime);
 }

ModifyPendingOrderAsync (10 / 10)

シグネチャ

1
public TradeOperation ModifyPendingOrderAsync(PendingOrder pendingOrder, long volume, double targetPrice, double? stopLossPips, double? takeProfitPips, DateTime? expirationTime, Action<TradeResult> callback)

 

パラメータ

名前説明
pendingOrderPendingOrder 
volumelong 
targetPricedouble 
stopLossPipsdouble? 
takeProfitPipsdouble? 
expirationTimeDateTime? 
callbackAction 

戻り値

TradeOperation

ReversePosition (2)

ReversePosition (1 / 2)

概要

ポジションの取引方向を変更します

シグネチャ

1
public TradeResult ReversePosition(Position position)

 

パラメータ

名前説明
positionPosition影響を受けるポジション

戻り値

TradeResult

1
2
3
4
5
 var position = Positions.Find("myLabel", Symbol, TradeType.Buy);
 if (position != null )
 {
     ReversePosition(position);
 }

ReversePosition (2 / 2)

概要

ポジションの取引方向とボリュームを変更します

シグネチャ

1
public TradeResult ReversePosition(Position position, double volume)

 

パラメータ

名前説明
positionPosition影響を受けるポジション
volumedouble取引のボリューム(単位)

戻り値

TradeResult

1
2
3
4
5
 var position = Positions.Find("myLabel", Symbol, TradeType.Buy);
 if (position != null )
 {
     ReversePosition(position, 20000);
 }

ModifyPosition (4)

ModifyPosition (1 / 4)

概要

ポジションのボリュームを変更します

シグネチャ

1
public TradeResult ModifyPosition(Position position, double volume)

 

パラメータ

名前説明
positionPosition影響を受けるポジション
volumedouble取引のボリューム(単位)

戻り値

TradeResult

1
2
3
4
5
 var position = Positions.Find("myLabel", Symbol, TradeType.Buy);
 if (position != null )
 {
     ModifyPosition(position, 20000);
 }

ModifyPosition (2 / 4)

概要

ポジションの保護を変更します

シグネチャ

1
public TradeResult ModifyPosition(Position position, double? stopLoss, double? takeProfit)

 

パラメータ

名前説明
positionPosition影響を受けるポジション
stopLossdouble?新しいストップロス価格
takeProfitdouble?新しいテイクプロフィット価格

戻り値

TradeResult

Examples

1
2
3
4
5
6
7
 var position = Positions.Find("myLabel", Symbol, TradeType.Buy);
 if (position != null )
 {
     double? stopLoss = Symbol.Ask- 10*Symbol.PipSize;
     double? takeProfit = Symbol.Ask + 10 * Symbol.PipSize;
     ModifyPosition(position, stopLoss,  takeProfit);
 }

ModifyPosition (3 of 4)

Summary

Modify the protection of a position

Signature

1
public TradeResult ModifyPosition(Position position, double? stopLoss, double? takeProfit, bool hasTrailingStop)

Parameters

NameTypeDescription
positionPositionPosition which is affected
stopLossdouble?New stop loss price
takeProfitdouble?New take profit price
hasTrailingStopboolEnable/disable TrailingStop for position

Return Value

TradeResult

Examples

1
2
3
4
5
6
7
 var position = Positions.Find("myLabel", Symbol, TradeType.Buy);
 if (position != null )
 {
     double? stopLoss = Symbol.Ask- 10*Symbol.PipSize;
     double? takeProfit = Symbol.Ask + 10 * Symbol.PipSize;
     ModifyPosition(position, stopLoss,  takeProfit, true);
 }
1
2
3
4
5
6
7
 var position = Positions.Find("anotherLabel", Symbol, TradeType.Sell);
 if (position != null )
 {
     double? stopLoss = Symbol.Bid+ 20*Symbol.PipSize;
     double? takeProfit = Symbol.Bid- 20*Symbol.PipSize;
     ModifyPosition(position, stopLoss,  takeProfit, false);
 }

ClosePosition (3)

ClosePosition (1 of 3)

Summary

Close a position

Signature

1
public TradeResult ClosePosition(Position position)

Parameters

NameTypeDescription
positionPositionPosition to close

Return Value

TradeResult

Examples

1
 ClosePosition(position);

ClosePosition (2 of 3)

Summary

Close a position

Signature

1
public TradeResult ClosePosition(Position position, long volume)

Parameters

NameTypeDescription
positionPositionPosition to close
volumelongVolume which is closed

Return Value

TradeResult

Examples

1
2
 Position position = Positions.Find("myLabel", Symbol, TradeType.Buy);
 if (position != null )
 {
     ClosePosition(position, 1000);
 }

ClosePosition (3 of 3)

Summary

Close a position

Signature

1
public TradeResult ClosePosition(Position position, double volume)

Parameters

NameTypeDescription
positionPositionPosition to close
volumedoubleVolume which is closed

Return Value

TradeResult

Examples

1
2
 Position position = Positions.Find("anotherLabel", Symbol, TradeType.Sell);
 if (position != null )
 {
     ClosePosition(position, 500.5);
 }

返り値

TradeResult

1
 ClosePosition(position);

ClosePositionAsync (3)

ClosePositionAsync (1 of 3)

概要

非同期実行モードでポジションをクローズします

シグネチャ

1
public TradeOperation ClosePositionAsync(Position position, Action<TradeResult> callback)

 

パラメータ

名前説明
positionPositionクローズするポジション
callbackActionポジションがクローズされたときに実行されるアクション

返り値

TradeOperation

ClosePositionAsync (2 of 3)

概要

非同期実行モードでポジションをクローズします

シグネチャ

1
public TradeOperation ClosePositionAsync(Position position, long volume, Action<TradeResult> callback)

 

パラメータ

名前説明
positionPositionクローズするポジション
volumelongクローズするボリューム
callbackActionポジションがクローズされたときに実行されるアクション

返り値

TradeOperation

1
 ClosePositionAsync(position);

ClosePositionAsync (3 of 3)

概要

非同期実行モードでポジションをクローズします

シグネチャ

1
public TradeOperation ClosePositionAsync(Position position, double volume, Action<TradeResult> callback)

 

パラメータ

名前説明
positionPositionクローズするポジション
volumedoubleクローズするボリューム
callbackActionポジションがクローズされたときに実行されるアクション

返り値

TradeOperation

1
 ClosePositionAsync(position);

ReversePositionAsync (2)

ReversePositionAsync (1 of 2)

概要

非同期実行モードでポジションを修正します

シグネチャ

1
public TradeOperation ReversePositionAsync(Position position, Action<TradeResult> callback)

 

パラメータ

名前説明
positionPosition修正するポジション
callbackActionポジションが修正されたときに呼び出されるメソッド

返り値

TradeOperation

1
2
3
4
5
 var position = Positions.Find("myLabel", Symbol, TradeType.Buy);
 if (position != null)
 {
     ReversePositionAsync(position, TradeType.Sell);
 }

ReversePositionAsync (2 of 2)

概要

非同期実行モードでポジションを修正します

シグネチャ

1
public TradeOperation ReversePositionAsync(Position position, double volume, Action<TradeResult> callback)

 

パラメータ

名前説明
positionPosition修正するポジション
volumedouble新しいボリューム
callbackActionポジションが修正されたときに呼び出されるメソッド

戻り値

TradeOperation

1
2
3
4
5
 var position = Positions.Find("myLabel", Symbol, TradeType.Buy);
 if (position != null)
 {
     ReversePositionAsync(position, 20000);
 }

ModifyPositionAsync (4)

ModifyPositionAsync (1 of 4)

概要

非同期実行モードでポジションを修正します

シグネチャ

1
public TradeOperation ModifyPositionAsync(Position position, double volume, Action<TradeResult> callback)

 

パラメータ

名前説明
positionPosition修正するポジション
volumedouble新しいボリューム
callbackActionポジションが修正されたときに呼び出されるメソッド

戻り値

TradeOperation

1
2
3
4
5
 var position = Positions.Find("myLabel", Symbol, TradeType.Buy);
 if (position != null)
 {
     ModifyPositionAsync(position, 20000);
 }

ModifyPositionAsync (2 of 4)

概要

非同期実行モードでポジションを修正します

シグネチャ

1
public TradeOperation ModifyPositionAsync(Position position, double? stopLoss, double? takeProfit, Action<TradeResult> callback)

 

パラメータ

名前説明
positionPosition修正するポジション
stopLossdouble?新しいストップロス価格
takeProfitdouble?新しいテイクプロフィット価格
callbackActionポジションが修正されたときに呼び出されるメソッド

戻り値

TradeOperation

1
2
3
4
5
 var position = Positions.Find("myLabel", Symbol, TradeType.Buy);
 if (position != null)
 {
     double? stopLoss = Symbol.Ask - 10 * Symbol.PipSize;
     double? takeProfit = Symbol.Ask + 10 * Symbol.PipSize;
     ModifyPositionAsync(position, stopLoss, takeProfit);
 }

戻り値

TradeOperation

1
2
3
4
5
6
7
 var position = Positions.Find("myLabel", Symbol, TradeType.Buy);
 if (position != null)
 {
     double? stopLoss = Symbol.Ask- 10*Symbol.PipSize;
     double? takeProfit = Symbol.Ask + 10 * Symbol.PipSize;
     ModifyPositionAsync(position, stopLoss,  takeProfit);
 }

ModifyPositionAsync (3 / 4)

概要

非同期実行モードでポジションを修正します。

シグネチャ

1
public TradeOperation ModifyPositionAsync(Position position, double? stopLoss, double? takeProfit, bool hasTrailingStop, Action<TradeResult> callback)

 

パラメーター

名前説明
positionPosition修正するポジション
stopLossdouble?新しいストップロス価格
takeProfitdouble?新しいテイクプロフィット価格
hasTrailingStopboolポジションのトレーリングストップの有効/無効
callbackActionポジションが修正されたときに呼ばれるメソッド

戻り値

TradeOperation

1
2
3
4
5
6
7
 var position = Positions.Find("myLabel", Symbol, TradeType.Buy);
 if (position != null)
 {
     double? stopLoss = Symbol.Ask- 10*Symbol.PipSize;
     double? takeProfit = Symbol.Ask + 10 * Symbol.PipSize;
     ModifyPositionAsync(position, stopLoss,  takeProfit, true, result => 
     {
         // 修正結果の処理
     });
 }
1
2
3
4
5
6
7
 var position = Positions.Find("myLabel", Symbol, TradeType.Buy);
 if (position != null)
 {
     double? stopLoss = Symbol.Ask- 10*Symbol.PipSize;
     double? takeProfit = Symbol.Ask + 10 * Symbol.PipSize;
     ModifyPositionAsync(position, stopLoss,  takeProfit, true, StopTriggerMethod.LastPrice, result => 
     {
         // 修正結果の処理
     });
 }

PlaceStopLimitOrder (16)

PlaceStopLimitOrder (1 of 16)

概要

ストップリミット注文を出す

シグネチャー

1
public TradeResult PlaceStopLimitOrder(TradeType tradeType, string symbolName, double volume, double targetPrice, double stopLimitRangePips)

 

パラメーター

名前説明
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引のボリューム(単位)
targetPricedouble注文が成立する価格(またはそれ以上)
stopLimitRangePipsdoubleターゲット価格からの最大実行距離

戻り値

TradeResult

PlaceStopLimitOrder (2 of 16)

概要

ストップリミット注文を出す

シグネチャー

1
public TradeResult PlaceStopLimitOrder(TradeType tradeType, string symbolName, double volume, double targetPrice, double stopLimitRangePips, string label)

 

パラメーター

名前説明
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引のボリューム(単位)
targetPricedouble注文が成立する価格(またはそれ以上)
stopLimitRangePipsdoubleターゲット価格からの最大実行距離
labelstring注文を表すラベル

戻り値

TradeResult

PlaceStopLimitOrder (3 of 16)

概要

ストップリミット注文を出す

シグネチャー

1
public TradeResult PlaceStopLimitOrder(TradeType tradeType, string symbolName, double volume, double targetPrice, double stopLimitRangePips, string label, double? stopLossPips, double? takeProfitPips)

 

パラメーター

名前説明
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引のボリューム(単位)
targetPricedouble注文が成立する価格(またはそれ以上)
stopLimitRangePipsdoubleターゲット価格からの最大実行距離
labelstring注文を表すラベル
stopLossPipsdouble?ストップロス(ピップス)
takeProfitPipsdouble?テイクプロフィット(ピップス)

戻り値

TradeResult

PlaceStopLimitOrder (4 of 16)

概要

ストップリミット注文を出す

シグネチャー

1
public TradeResult PlaceStopLimitOrder(TradeType tradeType, string symbolName, double volume, double targetPrice, double stopLimitRangePips, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration)

 

パラメーター

名前説明
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引のボリューム(単位)
targetPricedouble注文が成立する価格(またはそれ以上)
stopLimitRangePipsdoubleターゲット価格からの最大実行距離
labelstring注文を表すラベル
stopLossPipsdouble?ストップロス(ピップス)
takeProfitPipsdouble?テイクプロフィット(ピップス)
expirationDateTime?注文の有効期限

戻り値

TradeResult

PlaceStopLimitOrder (5 of 16)

概要

ストップリミット注文を出す

シグネチャ

1
public TradeResult PlaceStopLimitOrder(TradeType tradeType, string symbolName, double volume, double targetPrice, double stopLimitRangePips, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, string comment)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引の量(単位)
targetPricedouble注文が成立する価格(またはそれ以上)
stopLimitRangePipsdoubleターゲット価格からの注文実行の最大距離
labelstring注文を表すラベル
stopLossPipsdouble?ストップロス(ピップス単位)
takeProfitPipsdouble?テイクプロフィット(ピップス単位)
expirationDateTime?注文の有効期限(日時)
commentstring注文のコメント

戻り値

TradeResult

PlaceStopLimitOrder (6 of 16)

概要

ストップリミット注文を出す

シグネチャ

1
public TradeResult PlaceStopLimitOrder(TradeType tradeType, string symbolName, double volume, double targetPrice, double stopLimitRangePips, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, string comment, bool hasTrailingStop)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引の量(単位)
targetPricedouble注文が成立する価格(またはそれ以上)
stopLimitRangePipsdoubleターゲット価格からの注文実行の最大距離
labelstring注文を表すラベル
stopLossPipsdouble?ストップロス(ピップス単位)
takeProfitPipsdouble?テイクプロフィット(ピップス単位)
expirationDateTime?注文の有効期限(日時)
commentstring注文のコメント
hasTrailingStopboolトレーリングストップの有効/無効

戻り値

TradeResult

PlaceStopLimitOrder (7 of 16)

概要

ストップリミット注文を出す

シグネチャ

1
public TradeResult PlaceStopLimitOrder(TradeType tradeType, string symbolName, double volume, double targetPrice, double stopLimitRangePips, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, string comment, bool hasTrailingStop, StopTriggerMethod? stopLossTriggerMethod)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引の量(単位)
targetPricedouble注文が成立する価格(またはそれ以上)
stopLimitRangePipsdoubleターゲット価格からの注文実行の最大距離
labelstring注文を表すラベル
stopLossPipsdouble?ストップロス(ピップス単位)
takeProfitPipsdouble?テイクプロフィット(ピップス単位)
expirationDateTime?注文の有効期限(日時)
commentstring注文のコメント
hasTrailingStopboolトレーリングストップの有効/無効
stopLossTriggerMethodStopTriggerMethod?ポジションのストップロスのトリガー方法

戻り値

TradeResult

PlaceStopLimitOrder (8 of 16)

概要

ストップリミット注文を出す

シグネチャ

1
public TradeResult PlaceStopLimitOrder(TradeType tradeType, string symbolName, double volume, double targetPrice, double stopLimitRangePips, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, string comment, bool hasTrailingStop, StopTriggerMethod? stopLossTriggerMethod, StopTriggerMethod stopOrderTriggerMethod)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引の量(単位)
targetPricedouble注文が成立する価格(またはそれ以上)
stopLimitRangePipsdoubleターゲット価格からの注文実行の最大距離
labelstring注文を表すラベル
stopLossPipsdouble?ストップロス(ピップス単位)
takeProfitPipsdouble?テイクプロフィット(ピップス単位)
expirationDateTime?注文の有効期限(日時)
commentstring注文のコメント
hasTrailingStopboolトレーリングストップの有効/無効
stopLossTriggerMethodStopTriggerMethod?ポジションのストップロスのトリガー方法
stopOrderTriggerMethodStopTriggerMethodストップリミット注文の場合のトリガー方法

戻り値

TradeResult

PlaceStopLimitOrder (9 of 16)

概要

ストップリミット注文を出す

シグネチャ

1
public TradeResult PlaceStopLimitOrder(TradeType tradeType, string symbolName, double volume, double targetPrice, double stopLimitRangePips, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, string comment, bool hasTrailingStop, StopTriggerMethod? stopLossTriggerMethod, StopTriggerMethod stopOrderTriggerMethod, double? takeProfitTriggerOffset)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引の量(単位)
targetPricedouble注文が成立する価格(またはそれ以上)
stopLimitRangePipsdoubleターゲット価格からの注文実行の最大距離
labelstring注文を表すラベル
stopLossPipsdouble?ストップロス(ピップス単位)
takeProfitPipsdouble?テイクプロフィット(ピップス単位)
expirationDateTime?注文の有効期限(日時)
commentstring注文のコメント
hasTrailingStopboolトレーリングストップの有効/無効
stopLossTriggerMethodStopTriggerMethod?ポジションのストップロスのトリガー方法
stopOrderTriggerMethodStopTriggerMethodストップリミット注文の場合のトリガー方法
takeProfitTriggerOffsetdouble?テイクプロフィットのトリガーオフセット

戻り値

TradeResult

PlaceStopLimitOrder (10 of 16)

概要

ストップリミット注文を出す

シグネチャ

1
public TradeResult PlaceStopLimitOrder(TradeType tradeType, string symbolName, double volume, double targetPrice, double stopLimitRangePips, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, string comment, bool hasTrailingStop, StopTriggerMethod? stopLossTriggerMethod, StopTriggerMethod stopOrderTriggerMethod, double? takeProfitTriggerOffset, double? trailingStopDistance)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引の量(単位)
targetPricedouble注文が成立する価格(またはそれ以上)
stopLimitRangePipsdoubleターゲット価格からの注文実行の最大距離
labelstring注文を表すラベル
stopLossPipsdouble?ストップロス(ピップス単位)
takeProfitPipsdouble?テイクプロフィット(ピップス単位)
expirationDateTime?注文の有効期限(日時)
commentstring注文のコメント
hasTrailingStopboolトレーリングストップの有効/無効
stopLossTriggerMethodStopTriggerMethod?ポジションのストップロスのトリガー方法
stopOrderTriggerMethodStopTriggerMethodストップリミット注文の場合のトリガー方法
takeProfitTriggerOffsetdouble?テイクプロフィットのトリガーオフセット
trailingStopDistancedouble?トレーリングストップの距離

戻り値

TradeResult

PlaceStopLimitOrder (11 of 16)

概要

ストップリミット注文を出す

シグネチャ

1
public TradeResult PlaceStopLimitOrder(TradeType tradeType, string symbolName, double volume, double targetPrice, double stopLimitRangePips, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, string comment, bool hasTrailingStop, StopTriggerMethod? stopLossTriggerMethod, StopTriggerMethod stopOrderTriggerMethod, double? takeProfitTriggerOffset, double? trailingStopDistance, double? minStopDistance)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引の量(単位)
targetPricedouble注文が成立する価格(またはそれ以上)
stopLimitRangePipsdoubleターゲット価格からの注文実行の最大距離
labelstring注文を表すラベル
stopLossPipsdouble?ストップロス(ピップス単位)
takeProfitPipsdouble?テイクプロフィット(ピップス単位)
expirationDateTime?注文の有効期限(日時)
commentstring注文のコメント
hasTrailingStopboolトレーリングストップの有効/無効
stopLossTriggerMethodStopTriggerMethod?ポジションのストップロスのトリガー方法
stopOrderTriggerMethodStopTriggerMethodストップリミット注文の場合のトリガー方法
takeProfitTriggerOffsetdouble?テイクプロフィットのトリガーオフセット
trailingStopDistancedouble?トレーリングストップの距離
minStopDistancedouble?ストップリミット注文の最小距離

戻り値

TradeResult

PlaceStopLimitOrder (9 of 16)

概要

非同期実行モードでストップリミット注文を出します

シグネチャ

1
public TradeResult PlaceStopLimitOrder(TradeType tradeType, Symbol symbol, double volume, double targetPrice, double stopLimitRangePips)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolSymbol 
volumedouble取引のボリューム(単位)
targetPricedouble注文が約定する価格(またはそれより良い価格)
stopLimitRangePipsdoubleターゲット価格からの最大注文実行距離

戻り値

TradeResult

PlaceStopLimitOrder (10 of 16)

概要

非同期実行モードでストップリミット注文を出します

シグネチャ

1
public TradeResult PlaceStopLimitOrder(TradeType tradeType, Symbol symbol, double volume, double targetPrice, double stopLimitRangePips, string label)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolSymbol 
volumedouble取引のボリューム(単位)
targetPricedouble注文が約定する価格(またはそれより良い価格)
stopLimitRangePipsdoubleターゲット価格からの最大注文実行距離
labelstring注文を表すラベル

戻り値

TradeResult

PlaceStopLimitOrder (11 of 16)

概要

非同期実行モードでストップリミット注文を出します

シグネチャ

1
public TradeResult PlaceStopLimitOrder(TradeType tradeType, Symbol symbol, double volume, double targetPrice, double stopLimitRangePips, string label, double? stopLossPips, double? takeProfitPips)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolSymbol 
volumedouble取引のボリューム(単位)
targetPricedouble注文が約定する価格(またはそれより良い価格)
stopLimitRangePipsdoubleターゲット価格からの最大注文実行距離
labelstring注文を表すラベル
stopLossPipsdouble?ストップロス(pips単位)
takeProfitPipsdouble?テイクプロフィット(pips単位)

戻り値

TradeResult

PlaceStopLimitOrder (12 of 16)

概要

非同期実行モードでストップリミット注文を出します

シグネチャ

1
public TradeResult PlaceStopLimitOrder(TradeType tradeType, Symbol symbol, double volume, double targetPrice, double stopLimitRangePips, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolSymbol 
volumedouble取引のボリューム(単位)
targetPricedouble注文が約定する価格(またはそれより良い価格)
stopLimitRangePipsdoubleターゲット価格からの最大注文実行距離
labelstring注文を表すラベル
stopLossPipsdouble?ストップロス(pips単位)
takeProfitPipsdouble?テイクプロフィット(pips単位)
expirationDateTime?注文の有効期限(日付と時刻、nullable)

戻り値

TradeResult

PlaceStopLimitOrder (13 of 16)

概要

非同期実行モードでストップリミット注文を出します

シグネチャ

1
public TradeResult PlaceStopLimitOrder(TradeType tradeType, Symbol symbol, double volume, double targetPrice, double stopLimitRangePips, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, string comment, bool hasTrailingStop)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolSymbol 
volumedouble取引のボリューム(単位)
targetPricedouble注文が約定する価格(またはそれより良い価格)
stopLimitRangePipsdoubleターゲット価格からの最大注文実行距離
labelstring注文を表すラベル
stopLossPipsdouble?ストップロス(pips単位)
takeProfitPipsdouble?テイクプロフィット(pips単位)
expirationDateTime?注文の有効期限(日付と時刻、nullable)
commentstring注文のコメント
hasTrailingStopboolトレーリングストップの有無

戻り値

TradeResult

PlaceStopLimitOrder (15 of 16)

概要

非同期実行モードでストップリミット注文を出す

シグネチャ

1
public TradeResult PlaceStopLimitOrder(TradeType tradeType, Symbol symbol, double volume, double targetPrice, double stopLimitRangePips, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, string comment, bool hasTrailingStop, StopTriggerMethod? stopLossTriggerMethod, StopTriggerMethod stopOrderTriggerMethod)

 

パラメーター

名前説明
tradeTypeTradeType取引の方向
symbolSymbol 
volumedouble取引のボリューム(単位)
targetPricedouble注文が執行される価格(またはそれ以上の価格)
stopLimitRangePipsdoubleターゲット価格からの注文執行の最大距離
labelstring注文を表すラベル
stopLossPipsdouble?ストップロス(ピップス)
takeProfitPipsdouble?テイクプロフィット(ピップス)
expirationDateTime?注文の有効期限日と時刻
commentstring注文のコメント
hasTrailingStopboolポジションのトレーリングストップを有効/無効にする
stopLossTriggerMethodStopTriggerMethod?ポジションのストップロスのトリガー方法
stopOrderTriggerMethodStopTriggerMethodストップリミット注文の場合、保留中の注文がトリガーされる方法を決定します

戻り値

TradeResult

PlaceStopLimitOrder (16 of 16)

概要

非同期実行モードでストップリミット注文を出す

シグネチャ

1
public TradeResult PlaceStopLimitOrder(TradeType tradeType, Symbol symbol, double volume, double targetPrice, double stopLimitRangePips, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, string comment, bool hasTrailingStop, StopTriggerMethod? stopLossTriggerMethod, StopTriggerMethod stopOrderTriggerMethod)

 

パラメーター

名前説明
tradeTypeTradeType取引の方向
symbolSymbol 
volumedouble取引のボリューム(単位)
targetPricedouble注文が執行される価格(またはそれ以上の価格)
stopLimitRangePipsdoubleターゲット価格からの注文執行の最大距離
labelstring注文を表すラベル
stopLossPipsdouble?ストップロス(ピップス)
takeProfitPipsdouble?テイクプロフィット(ピップス)
expirationDateTime?注文の有効期限日と時刻
commentstring注文のコメント
hasTrailingStopboolポジションのトレーリングストップを有効/無効にする
stopLossTriggerMethodStopTriggerMethod?ポジションのストップロスのトリガー方法
stopOrderTriggerMethodStopTriggerMethodストップリミット注文の場合、保留中の注文がトリガーされる方法を決定します

戻り値

TradeOperation

PlaceStopLimitOrderAsync (4 of 16)

概要

非同期実行モードでのストップリミット注文を行います

シグネチャ

1
public TradeOperation PlaceStopLimitOrderAsync(TradeType tradeType, string symbolName, double volume, double targetPrice, double stopLimitRangePips, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, Action<TradeResult> callback)

 

パラメーター

名前説明
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引のボリューム(単位)
targetPricedouble注文が執行される価格(またはそれ以上)
stopLimitRangePipsdoubleターゲット価格からの注文実行までの最大距離
labelstring注文を示すラベル
stopLossPipsdouble?ストップロスのピップ数
takeProfitPipsdouble?テイクプロフィットのピップ数
expirationDateTime?注文の期限日と時間
callbackAction注文が執行された時のアクション

戻り値

TradeOperation

PlaceStopLimitOrderAsync (5 of 16)

概要

非同期実行モードでのストップリミット注文を行います

シグネチャ

1
public TradeOperation PlaceStopLimitOrderAsync(TradeType tradeType, string symbolName, double volume, double targetPrice, double stopLimitRangePips, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, string comment, Action<TradeResult> callback)

 

パラメーター

名前説明
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引のボリューム(単位)
targetPricedouble注文が執行される価格(またはそれ以上)
stopLimitRangePipsdoubleターゲット価格からの注文実行までの最大距離
labelstring注文を示すラベル
stopLossPipsdouble?ストップロスのピップ数
takeProfitPipsdouble?テイクプロフィットのピップ数
expirationDateTime?注文の期限日と時間
commentstring注文コメント
callbackAction注文が執行された時のアクション

戻り値

TradeOperation

PlaceStopLimitOrderAsync (6 of 16)

概要

非同期実行モードでのストップリミット注文を行います

シグネチャ

1
public TradeOperation PlaceStopLimitOrderAsync(TradeType tradeType, string symbolName, double volume, double targetPrice, double stopLimitRangePips, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, string comment, bool hasTrailingStop, Action<TradeResult> callback)

 

パラメーター

名前説明
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引のボリューム(単位)
targetPricedouble注文が執行される価格(またはそれ以上)
stopLimitRangePipsdoubleターゲット価格からの注文実行までの最大距離
labelstring注文を示すラベル
stopLossPipsdouble?ストップロスのピップ数
takeProfitPipsdouble?テイクプロフィットのピップ数
expirationDateTime?注文の期限日と時間
commentstring注文コメント
hasTrailingStopboolトレーリングストップの有無
callbackAction注文が執行された時のアクション

戻り値

TradeOperation

PlaceStopLimitOrderAsync (7 of 16)

概要

非同期実行モードでのストップリミット注文を行います

シグネチャ

1
public TradeOperation PlaceStopLimitOrderAsync(TradeType tradeType, string symbolName, double volume, double targetPrice, double stopLimitRangePips, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, string comment, bool hasTrailingStop, StopTriggerMethod? stopLossTriggerMethod, Action<TradeResult> callback)

 

パラメーター

名前説明
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引のボリューム(単位)
targetPricedouble注文が執行される価格(またはそれ以上)
stopLimitRangePipsdoubleターゲット価格からの注文実行までの最大距離
labelstring注文を示すラベル
stopLossPipsdouble?ストップロスのピップ数
takeProfitPipsdouble?テイクプロフィットのピップ数
expirationDateTime?注文の期限日と時間
commentstring注文コメント
hasTrailingStopboolトレーリングストップの有無
stopLossTriggerMethodStopTriggerMethod?ストップロスのトリガー方法
callbackAction注文が執行された時のアクション

戻り値

TradeOperation

PlaceStopLimitOrderAsync (8 of 16)

概要

非同期実行モードでのストップリミット注文を行います

シグネチャ

1
public TradeOperation PlaceStopLimitOrderAsync(TradeType tradeType, string symbolName, double volume, double targetPrice, double stopLimitRangePips, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, string comment, bool hasTrailingStop, StopTriggerMethod? stopLossTriggerMethod, StopTriggerMethod stopOrderTriggerMethod, Action<TradeResult> callback)

 

パラメーター

名前説明
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引のボリューム(単位)
targetPricedouble注文が執行される価格(またはそれ以上)
stopLimitRangePipsdoubleターゲット価格からの注文実行までの最大距離
labelstring注文を示すラベル
stopLossPipsdouble?ストップロスのピップ数
takeProfitPipsdouble?テイクプロフィットのピップ数
expirationDateTime?注文の期限日と時間
commentstring注文コメント
hasTrailingStopboolトレーリングストップの有無
stopLossTriggerMethodStopTriggerMethod?ストップロスのトリガー方法
stopOrderTriggerMethodStopTriggerMethodストップリミット注文の場合、保留中の注文がトリガーされる方法
callbackAction注文が執行された時のアクション

戻り値

TradeOperation

PlaceStopLimitOrderAsync (9 of 16)

シグネチャ

1
public TradeOperation PlaceStopLimitOrderAsync(TradeType tradeType, Symbol symbol, double volume, double targetPrice, double stopLimitRangePips, Action<TradeResult> callback)

 

パラメーター

名前説明
tradeTypeTradeType 
symbolSymbol 
volumedouble 
targetPricedouble 
stopLimitRangePipsdouble 
callbackAction 

戻り値

TradeOperation

PlaceStopLimitOrderAsync (10 of 16)

シグネチャ

1
public TradeOperation PlaceStopLimitOrderAsync(TradeType tradeType, Symbol symbol, double volume, double targetPrice, double stopLimitRangePips, string label, Action<TradeResult> callback)

 

パラメーター

名前説明
tradeTypeTradeType 
symbolSymbol 
volumedouble 
targetPricedouble 
stopLimitRangePipsdouble 
labelstring 
callbackAction 

戻り値

TradeOperation

PlaceStopLimitOrderAsync (11 of 16)

シグネチャ

1
public TradeOperation PlaceStopLimitOrderAsync(TradeType tradeType, Symbol symbol, double volume, double targetPrice, double stopLimitRangePips, string label, double? stopLossPips, double? takeProfitPips, Action<TradeResult> callback)

 

パラメーター

名前説明
tradeTypeTradeType 
symbolSymbol 
volumedouble 
targetPricedouble 
stopLimitRangePipsdouble 
labelstring 
stopLossPipsdouble? 
takeProfitPipsdouble? 
callbackAction 

戻り値

TradeOperation

PlaceStopLimitOrderAsync (12 of 16)

シグネチャ

1
public TradeOperation PlaceStopLimitOrderAsync(TradeType tradeType, Symbol symbol, double volume, double targetPrice, double stopLimitRangePips, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, Action<TradeResult> callback)

 

パラメーター

名前説明
tradeTypeTradeType 
symbolSymbol 
volumedouble 
targetPricedouble 
stopLimitRangePipsdouble 
labelstring 
stopLossPipsdouble? 
takeProfitPipsdouble? 
expirationDateTime? 
callbackAction 

戻り値

TradeOperation

PlaceStopLimitOrderAsync (13 of 16)

シグネチャ

1
public TradeOperation PlaceStopLimitOrderAsync(TradeType tradeType, Symbol symbol, double volume, double targetPrice, double stopLimitRangePips, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, string comment, Action<TradeResult> callback)

 

パラメーター

名前説明
tradeTypeTradeType 
symbolSymbol 
volumedouble 
targetPricedouble 
stopLimitRangePipsdouble 
labelstring 
stopLossPipsdouble? 
takeProfitPipsdouble? 
expirationDateTime? 
commentstring 
callbackAction 

戻り値

TradeOperation

PlaceStopLimitOrderAsync (14 of 16)

Signature

1
public TradeOperation PlaceStopLimitOrderAsync(TradeType tradeType, Symbol symbol, double volume, double targetPrice, double stopLimitRangePips, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, string comment, bool hasTrailingStop, Action<TradeResult> callback)

 

Parameters

NameTypeDescription
tradeTypeTradeType 
symbolSymbol 
volumedouble 
targetPricedouble 
stopLimitRangePipsdouble 
labelstring 
stopLossPipsdouble? 
takeProfitPipsdouble? 
expirationDateTime? 
commentstring 
hasTrailingStopbool 
callbackAction 

Return Value

TradeOperation

PlaceStopLimitOrderAsync (15 of 16)

Signature

1
public TradeOperation PlaceStopLimitOrderAsync(TradeType tradeType, Symbol symbol, double volume, double targetPrice, double stopLimitRangePips, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, string comment, bool hasTrailingStop, StopTriggerMethod? stopLossTriggerMethod, Action<TradeResult> callback)

 

Parameters

NameTypeDescription
tradeTypeTradeType 
symbolSymbol 
volumedouble 
targetPricedouble 
stopLimitRangePipsdouble 
labelstring 
stopLossPipsdouble? 
takeProfitPipsdouble? 
expirationDateTime? 
commentstring 
hasTrailingStopbool 
stopLossTriggerMethodStopTriggerMethod? 
callbackAction 

Return Value

TradeOperation

PlaceStopLimitOrderAsync (16 of 16)

Signature

1
public TradeOperation PlaceStopLimitOrderAsync(TradeType tradeType, Symbol symbol, double volume, double targetPrice, double stopLimitRangePips, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, string comment, bool hasTrailingStop, StopTriggerMethod? stopLossTriggerMethod, StopTriggerMethod stopOrderTriggerMethod, Action<TradeResult> callback)

 

Parameters

NameTypeDescription
tradeTypeTradeType 
symbolSymbol 
volumedouble 
targetPricedouble 
stopLimitRangePipsdouble 
labelstring 
stopLossPipsdouble? 
takeProfitPipsdouble? 
expirationDateTime? 
commentstring 
hasTrailingStopbool 
stopLossTriggerMethodStopTriggerMethod? 
stopOrderTriggerMethodStopTriggerMethod 
callbackAction 

Return Value

TradeOperation

PlaceStopOrder (21)

PlaceStopOrder (1 of 21)

概要

ストップ注文を出す

シグネチャ

1
public TradeResult PlaceStopOrder(TradeType tradeType, string symbolName, double volume, double targetPrice)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引のボリューム(単位)
targetPricedouble注文がマーケット注文になる価格

戻り値

TradeResult

PlaceStopOrder (2 of 21)

概要

ストップ注文を出す

シグネチャ

1
public TradeResult PlaceStopOrder(TradeType tradeType, string symbolName, double volume, double targetPrice, string label)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引のボリューム(単位)
targetPricedouble注文がマーケット注文になる価格
labelstringラベル

戻り値

TradeResult

PlaceStopOrder (3 of 21)

概要

ストップ注文を出す

シグネチャ

1
public TradeResult PlaceStopOrder(TradeType tradeType, string symbolName, double volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引のボリューム(単位)
targetPricedouble注文がマーケット注文になる価格
labelstringラベル
stopLossPipsdouble?ストップロス(ピップス単位)
takeProfitPipsdouble?テイクプロフィット(ピップス単位)

戻り値

TradeResult

PlaceStopOrder (4 of 21)

概要

ストップ注文を出す

シグネチャ

1
public TradeResult PlaceStopOrder(TradeType tradeType, string symbolName, double volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips, bool isBuyStop)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引のボリューム(単位)
targetPricedouble注文がマーケット注文になる価格
labelstringラベル
stopLossPipsdouble?ストップロス(ピップス単位)
takeProfitPipsdouble?テイクプロフィット(ピップス単位)
isBuyStopbool買いストップかどうか

戻り値

TradeResult

1
 PlaceStopOrder(TradeType.Buy, Symbol, 10000, Symbol.Ask);

PlaceStopOrder (6 of 21)

概要

ストップ注文を出す

シグネチャ

1
public TradeResult PlaceStopOrder(TradeType tradeType, string symbolName, double volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, string comment, bool hasTrailingStop)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引のボリューム(単位)
targetPricedouble注文がマーケット注文になる価格
labelstringラベル
stopLossPipsdouble?ストップロス(ピップス単位)
takeProfitPipsdouble?テイクプロフィット(ピップス単位)
expirationDateTime?注文の有効期限
commentstring注文コメント
hasTrailingStopboolトレーリングストップの有効/無効

戻り値

TradeResult

1
 PlaceStopOrder(TradeType.Buy, Symbol, 10000, Symbol.Ask);

PlaceStopOrder (7 of 21)

概要

ストップ注文を出す

シグネチャ

1
public TradeResult PlaceStopOrder(TradeType tradeType, string symbolName, double volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, string comment, bool hasTrailingStop)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引のボリューム(単位)
targetPricedouble注文がマーケット注文になる価格
labelstringラベル
stopLossPipsdouble?ストップロス(ピップス単位)
takeProfitPipsdouble?テイクプロフィット(ピップス単位)
expirationDateTime?注文の有効期限
commentstring注文コメント
hasTrailingStopboolトレーリングストップの有効/無効

戻り値

TradeResult

PlaceStopOrder (8 of 21)

概要

ストップ注文を出す

シグネチャ

1
public TradeResult PlaceStopOrder(TradeType tradeType, string symbolName, double volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, string comment, bool hasTrailingStop, StopTriggerMethod? stopLossTriggerMethod, StopTriggerMethod stopOrderTriggerMethod)

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引のボリューム(単位)
targetPricedouble注文が市場注文になる価格
labelstring表示用のラベル
stopLossPipsdouble?ストップロス(ピップ)
takeProfitPipsdouble?テイクプロフィット(ピップ)
expirationDateTime?注文の有効期限
commentstring注文のコメント
hasTrailingStopboolポジションのトレーリングストップの有効/無効
stopLossTriggerMethodStopTriggerMethod?ポジションのストップロスのトリガーメソッド
stopOrderTriggerMethodStopTriggerMethodストップ注文の場合に保留中の注文がトリガーされる方法

戻り値

TradeResult

1
 PlaceStopOrder(TradeType.Buy, Symbol, 10000, Symbol.Ask);

PlaceStopOrder (9 of 21)

概要

非同期実行モードでストップ注文を出す

シグネチャ

1
public TradeResult PlaceStopOrder(TradeType tradeType, Symbol symbol, long volume, double targetPrice)

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolSymbol取引のシンボル
volumelong取引のボリューム(単位)
targetPricedouble注文が市場注文になる価格

戻り値

TradeResult

1
 PlaceStopOrder(TradeType.Sell, Symbol, 5000, 150.50);

返り値

TradeResult

PlaceStopOrder (10 of 21)

概要

非同期実行モードでストップオーダーを発注します

シグネチャ

1
public TradeResult PlaceStopOrder(TradeType tradeType, Symbol symbol, double volume, double targetPrice)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolSymbol 
volumedouble取引のボリューム
targetPricedouble注文がマーケットオーダーに変わる価格

返り値

TradeResult

PlaceStopOrder (11 of 21)

概要

非同期実行モードでストップオーダーを発注します

シグネチャ

1
public TradeResult PlaceStopOrder(TradeType tradeType, Symbol symbol, long volume, double targetPrice, string label)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolSymbol 
volumelong取引のボリューム
targetPricedouble注文がマーケットオーダーに変わる価格
labelstring注文を表すラベル

返り値

TradeResult

PlaceStopOrder (12 of 21)

概要

非同期実行モードでストップオーダーを発注します

シグネチャ

1
public TradeResult PlaceStopOrder(TradeType tradeType, Symbol symbol, double volume, double targetPrice, string label)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolSymbol 
volumedouble取引のボリューム
targetPricedouble注文がマーケットオーダーに変わる価格
labelstring注文を表すラベル

返り値

TradeResult

PlaceStopOrder (13 of 21)

概要

非同期実行モードでストップオーダーを発注します

シグネチャ

1
public TradeResult PlaceStopOrder(TradeType tradeType, Symbol symbol, long volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolSymbol 
volumelong取引のボリューム
targetPricedouble注文がマーケットオーダーに変わる価格
labelstring注文を表すラベル
stopLossPipsdouble?ストップロスのピップ数
takeProfitPipsdouble?テイクプロフィットのピップ数

返り値

TradeResult

基本的な例:

PlaceStopOrder(TradeType.Sell, Symbol, 5000, 150.50);

 

ラベル付きの例:

PlaceStopOrder(TradeType.Buy, Symbol, 10000, Symbol.Bid - 5 * Symbol.PipSize, "OrderLabel");

 

ストップロスとテイクプロフィット付きの例:

PlaceStopOrder(TradeType.Sell, Symbol, 5000, 150.50, "OrderLabel", 20, 50);
名前説明
tradeTypeTradeType取引の方向
symbolSymbol 
volumedouble取引のボリューム
targetPricedouble注文がマーケットオーダーに変わる価格
labelstring注文を表すラベル

返り値

TradeResult

PlaceStopOrder (13 of 21)

概要

非同期実行モードでストップオーダーを出す

シグネチャ

1
public TradeResult PlaceStopOrder(TradeType tradeType, Symbol symbol, long volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolSymbol 
volumelong取引のボリューム
targetPricedouble注文がマーケットオーダーに変わる価格
labelstring注文を表すラベル
stopLossPipsdouble?ストップロスのピップ数
takeProfitPipsdouble?テイクプロフィットのピップ数

返り値

TradeResult

1
 PlaceStopOrderAsync(TradeType.Sell, Symbol, 10000, Symbol.Bid - 5* Symbol.PipSize);

PlaceStopOrder (14 of 21)

概要

非同期実行モードでストップオーダーを出す

シグネチャ

1
public TradeResult PlaceStopOrder(TradeType tradeType, Symbol symbol, double volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolSymbol 
volumedouble取引のボリューム
targetPricedouble注文がマーケットオーダーに変わる価格
labelstring注文を表すラベル
stopLossPipsdouble?ストップロスのピップ数
takeProfitPipsdouble?テイクプロフィットのピップ数

返り値

TradeResult

1
 PlaceStopOrderAsync(TradeType.Sell, Symbol, 10000, Symbol.Bid - 5* Symbol.PipSize);

PlaceStopOrder (15 of 21)

概要

非同期実行モードでストップオーダーを出す

シグネチャ

1
public TradeResult PlaceStopOrder(TradeType tradeType, Symbol symbol, long volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolSymbol 
volumelong取引のボリューム
targetPricedouble注文がマーケットオーダーに変わる価格
labelstring注文を表すラベル
stopLossPipsdouble?ストップロスのピップ数
takeProfitPipsdouble?テイクプロフィットのピップ数
expirationDateTime?注文の有効期限

返り値

TradeResult

PlaceStopOrder (16 of 21)

概要

非同期実行モードでストップオーダーを発注する

シグネチャ

1
public TradeResult PlaceStopOrder(TradeType tradeType, Symbol symbol, double volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration)

 

パラメーター

名前説明
tradeTypeTradeType取引の方向
symbolSymbol 
volumedouble取引のボリューム
targetPricedouble注文が市場注文になる価格
labelstring注文を表すラベル
stopLossPipsdouble?ストップロスのピップ数
takeProfitPipsdouble?テイクプロフィットのピップ数
expirationDateTime?注文の有効期限

戻り値

TradeResult

PlaceStopOrder (17 of 21)

シグネチャ

1
public TradeResult PlaceStopOrder(TradeType tradeType, Symbol symbol, long volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, string comment)

 

パラメーター

名前説明
tradeTypeTradeType 
symbolSymbol 
volumelong 
targetPricedouble 
labelstring 
stopLossPipsdouble? 
takeProfitPipsdouble? 
expirationDateTime? 
commentstring 

戻り値

TradeResult

PlaceStopOrder (18 of 21)

シグネチャ

1
public TradeResult PlaceStopOrder(TradeType tradeType, Symbol symbol, double volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, string comment, bool hasTrailingStop)

 

パラメーター

名前説明
tradeTypeTradeType 
symbolSymbol 
volumedouble 
targetPricedouble 
labelstring 
stopLossPipsdouble? 
takeProfitPipsdouble? 
expirationDateTime? 
commentstring 
hasTrailingStopboolトレーリングストップが有効かどうか

戻り値

TradeResult

PlaceStopOrder (19 of 21)

シグネチャ

1
public TradeResult PlaceStopOrder(TradeType tradeType, Symbol symbol, double volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, string comment, bool hasTrailingStop)

 

パラメーター

名前説明
tradeTypeTradeType 
symbolSymbol 
volumedouble 
targetPricedouble 
labelstring 
stopLossPipsdouble? 
takeProfitPipsdouble? 
expirationDateTime? 
commentstring 
hasTrailingStopbool 

戻り値

TradeResult

PlaceStopOrder (20 of 21)

シグネチャ

1
public TradeResult PlaceStopOrder(TradeType tradeType, Symbol symbol, double volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, string comment, bool hasTrailingStop, StopTriggerMethod? stopLossTriggerMethod)

 

パラメーター

名前説明
tradeTypeTradeType 
symbolSymbol 
volumedouble 
targetPricedouble 
labelstring 
stopLossPipsdouble? 
takeProfitPipsdouble? 
expirationDateTime? 
commentstring 
hasTrailingStopbool 
stopLossTriggerMethodStopTriggerMethod? 

戻り値

TradeResult

PlaceStopOrder (21 of 21)

Signature

1
public TradeResult PlaceStopOrder(TradeType tradeType, Symbol symbol, double volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, string comment, bool hasTrailingStop, StopTriggerMethod? stopLossTriggerMethod, StopTriggerMethod stopOrderTriggerMethod)

 

Parameters

NameTypeDescription
tradeTypeTradeType取引の種類
symbolSymbol取引シンボル
volumedouble取引のボリューム
targetPricedouble注文が市場注文に変わる価格
labelstring注文のラベル
stopLossPipsdouble?ストップロスのピップ数(オプション)
takeProfitPipsdouble?テイクプロフィットのピップ数(オプション)
expirationDateTime?注文の有効期限(オプション)
commentstringコメント
hasTrailingStopboolトレーリングストップの有無
stopLossTriggerMethodStopTriggerMethod?ストップロスのトリガー方法(オプション)
stopOrderTriggerMethodStopTriggerMethodストップ注文のトリガー方法

Return Value

TradeResult

PlaceStopOrderAsync (21)

PlaceStopOrderAsync (1 of 21)

Summary

非同期実行モードでストップ注文を発注します

Signature

1
public TradeOperation PlaceStopOrderAsync(TradeType tradeType, string symbolName, double volume, double targetPrice, Action<TradeResult> callback)

 

Parameters

NameTypeDescription
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引のボリューム
targetPricedouble注文が市場注文に変わる価格
callbackAction注文が発注されたときのアクション

Return Value

TradeOperation

PlaceStopOrderAsync (2 of 21)

Summary

非同期実行モードでストップ注文を発注します

Signature

1
public TradeOperation PlaceStopOrderAsync(TradeType tradeType, string symbolName, double volume, double targetPrice, string label, Action<TradeResult> callback)

 

Parameters

NameTypeDescription
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引のボリューム
targetPricedouble注文が市場注文に変わる価格
labelstring注文のラベル
callbackAction注文が発注されたときのアクション

Return Value

TradeOperation

PlaceStopOrderAsync (3 of 21)

Summary

非同期実行モードでストップ注文を発注します

Signature

1
public TradeOperation PlaceStopOrderAsync(TradeType tradeType, string symbolName, double volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips, Action<TradeResult> callback)

 

Parameters

NameTypeDescription
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引のボリューム
targetPricedouble注文が市場注文に変わる価格
labelstring注文のラベル
stopLossPipsdouble?ストップロスのピップ数(オプション)
takeProfitPipsdouble?テイクプロフィットのピップ数(オプション)
callbackAction注文が発注されたときのアクション

Return Value

TradeOperation

PlaceStopOrderAsync (4 of 21)

Summary

非同期実行モードでストップ注文を発注します

Signature

1
public TradeOperation PlaceStopOrderAsync(TradeType tradeType, string symbolName, double volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, Action<TradeResult> callback)

 

Parameters

NameTypeDescription
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引のボリューム
targetPricedouble注文が市場注文に変わる価格
labelstring注文のラベル
stopLossPipsdouble?ストップロスのピップ数(オプション)
takeProfitPipsdouble?テイクプロフィットのピップ数(オプション)
expirationDateTime?注文の有効期限(オプション)
callbackAction注文が発注されたときのアクション

Return Value

TradeOperation

PlaceStopOrderAsync (5 of 21)

概要

非同期実行モードでストップオーダーを配置します

シグネチャ

1
public TradeOperation PlaceStopOrderAsync(TradeType tradeType, string symbolName, double volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, string comment, Action<TradeResult> callback)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引のボリューム
targetPricedouble注文がマーケットオーダーになる価格
labelstring注文を示すラベル
stopLossPipsdouble?ストップロスのピップ数
takeProfitPipsdouble?テイクプロフィットのピップ数
expirationDateTime?注文の有効期限と時間
commentstring注文のコメント
callbackAction注文が行われたときのアクション

戻り値

TradeOperation

1
 PlaceStopOrderAsync(TradeType.Sell, Symbol, 10000, Symbol.Bid - 5* Symbol.PipSize);

PlaceStopOrderAsync (6 of 21)

概要

非同期実行モードでストップオーダーを配置します

シグネチャ

1
public TradeOperation PlaceStopOrderAsync(TradeType tradeType, string symbolName, double volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, string comment, bool hasTrailingStop, Action<TradeResult> callback)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引のボリューム
targetPricedouble注文がマーケットオーダーになる価格
labelstring注文を示すラベル
stopLossPipsdouble?ストップロスのピップ数
takeProfitPipsdouble?テイクプロフィットのピップ数
expirationDateTime?注文の有効期限と時間
commentstring注文のコメント
hasTrailingStopboolトレーリングストップを使用するかどうか
callbackAction注文が行われたときのアクション

戻り値

TradeOperation

1
 PlaceStopOrderAsync(TradeType.Sell, Symbol, 10000, Symbol.Bid - 5* Symbol.PipSize, "OrderLabel", 10, 20, DateTime.Now.AddHours(1), "Order comment", result => { /* handle result */ });

PlaceStopOrderAsync (7 of 21)

概要

非同期実行モードでストップオーダーを配置します

シグネチャ

1
public TradeOperation PlaceStopOrderAsync(TradeType tradeType, string symbolName, double volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, string comment, bool hasTrailingStop, Action<TradeResult> callback)

 

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引のボリューム
targetPricedouble注文がマーケットオーダーになる価格
labelstring注文を示すラベル
stopLossPipsdouble?ストップロスのピップ数
takeProfitPipsdouble?テイクプロフィットのピップ数
expirationDateTime?注文の有効期限と時間
commentstring注文のコメント
hasTrailingStopboolトレーリングストップを使用するかどうか
callbackAction注文が行われたときのアクション

戻り値

TradeOperation

1
 PlaceStopOrderAsync(TradeType.Sell, Symbol, 10000, Symbol.Bid - 5* Symbol.PipSize, "OrderLabel", 10, 20, DateTime.Now.AddHours(1), "Order comment", true, result => { /* handle result */ });

パラメータ

名前説明
tradeTypeTradeType取引の方向
symbolNamestring取引のシンボル名
volumedouble取引のボリューム
targetPricedouble注文が市場注文になる価格
labelstring注文を示すラベル
stopLossPipsdouble?ストップロスのピップ数
takeProfitPipsdouble?テイクプロフィットのピップ数
expirationDateTime?注文の有効期限
commentstring注文のコメント
hasTrailingStopboolポジションのトレーリングストップを有効/無効にする
stopLossTriggerMethodStopTriggerMethod?ポジションのストップロスのトリガー方法
stopOrderTriggerMethodStopTriggerMethodストップオーダーの場合の注文のトリガー方法を決定する
callbackAction注文が置かれたときのアクション

戻り値

TradeOperation

1
 PlaceStopOrderAsync(TradeType.Sell, Symbol, 10000, Symbol.Bid - 5* Symbol.PipSize);

PlaceStopOrderAsync (9 of 21)

概要

非同期実行モードでストップ注文を置きます

署名

1
public TradeOperation PlaceStopOrderAsync(TradeType tradeType, Symbol symbol, long volume, double targetPrice, Action<TradeResult> callback)

 

パラメータ

名前説明
tradeTypeTradeType 
symbolSymbol 
volumelong 
targetPricedouble 
callbackAction 

戻り値

TradeOperation

PlaceStopOrderAsync (10 of 21)

 

署名

1
public TradeOperation PlaceStopOrderAsync(TradeType tradeType, Symbol symbol, long volume, double targetPrice, string label, Action<TradeResult> callback)

 

パラメーター

名前説明
tradeTypeTradeType 
symbolSymbol 
volumelong 
targetPricedouble 
labelstring 
callbackAction 

戻り値

TradeOperation

PlaceStopOrderAsync (12 of 21)

署名

1
public TradeOperation PlaceStopOrderAsync(TradeType tradeType, Symbol symbol, double volume, double targetPrice, string label, Action<TradeResult> callback)

 

パラメーター

名前説明
tradeTypeTradeType 
symbolSymbol 
volumedouble 
targetPricedouble 
labelstring 
callbackAction 

戻り値

TradeOperation

PlaceStopOrderAsync (13 of 21)

署名

1
public TradeOperation PlaceStopOrderAsync(TradeType tradeType, Symbol symbol, long volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips, Action<TradeResult> callback)

 

パラメーター

名前説明
tradeTypeTradeType 
symbolSymbol 
volumelong 
targetPricedouble 
labelstring 
stopLossPipsdouble? 
takeProfitPipsdouble? 
callbackAction 

戻り値

TradeOperation

PlaceStopOrderAsync (14 of 21)

署名

1
public TradeOperation PlaceStopOrderAsync(TradeType tradeType, Symbol symbol, double volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiryDate, Action<TradeResult> callback)

 

パラメーター

名前説明
tradeTypeTradeType 
symbolSymbol 
volumedouble 
targetPricedouble 
labelstring 
stopLossPipsdouble? 
takeProfitPipsdouble? 
expiryDateDateTime? 
callbackAction 

戻り値

TradeOperation

PlaceStopOrderAsync (15 of 21)

シグネチャ

1
public TradeOperation PlaceStopOrderAsync(TradeType tradeType, Symbol symbol, long volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, Action<TradeResult> callback)

 

パラメータ

名前タイプ説明
tradeTypeTradeType 
symbolSymbol 
volumelong 
targetPricedouble 
labelstring 
stopLossPipsdouble? 
takeProfitPipsdouble? 
expirationDateTime? 
callbackAction 

戻り値

TradeOperation

PlaceStopOrderAsync (16 of 21)

シグネチャ

1
public TradeOperation PlaceStopOrderAsync(TradeType tradeType, Symbol symbol, double volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, Action<TradeResult> callback)

 

パラメータ

名前タイプ説明
tradeTypeTradeType 
symbolSymbol 
volumedouble 
targetPricedouble 
labelstring 
stopLossPipsdouble? 
takeProfitPipsdouble? 
expirationDateTime? 
callbackAction 

戻り値

TradeOperation

PlaceStopOrderAsync (17 of 21)

シグネチャ

1
public TradeOperation PlaceStopOrderAsync(TradeType tradeType, Symbol symbol, long volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, string comment, Action<TradeResult> callback)

 

パラメータ

名前タイプ説明
tradeTypeTradeType 
symbolSymbol 
volumelong 
targetPricedouble 
labelstring 
stopLossPipsdouble? 
takeProfitPipsdouble? 
expirationDateTime? 
commentstring 
callbackAction 

戻り値

TradeOperation

PlaceStopOrderAsync (18 of 21)

シグネチャ

1
public TradeOperation PlaceStopOrderAsync(TradeType tradeType, Symbol symbol, double volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, string comment, Action<TradeResult> callback)

 

パラメータ

名前タイプ説明
tradeTypeTradeType 
symbolSymbol 
volumedouble 
targetPricedouble 
labelstring 
stopLossPipsdouble? 
takeProfitPipsdouble? 
expirationDateTime? 
commentstring 
callbackAction 

戻り値

TradeOperation

PlaceStopOrderAsync (19 of 21)

シグネチャ

1
public TradeOperation PlaceStopOrderAsync(TradeType tradeType, Symbol symbol, double volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, string comment, bool hasTrailingStop, Action<TradeResult> callback)

 

パラメータ

名前タイプ説明
tradeTypeTradeType 
symbolSymbol 
volumedouble 
targetPricedouble 
labelstring 
stopLossPipsdouble? 
takeProfitPipsdouble? 
expirationDateTime? 
commentstring 
hasTrailingStopbool 
callbackAction 

戻り値

TradeOperation

PlaceStopOrderAsync (20 of 21)

シグネチャ

1
public TradeOperation PlaceStopOrderAsync(TradeType tradeType, Symbol symbol, double volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, string comment, bool hasTrailingStop, StopTriggerMethod? stopLossTriggerMethod, Action<TradeResult> callback)

 

パラメータ

名前タイプ説明
tradeTypeTradeType 
symbolSymbol 
volumedouble 
targetPricedouble 
labelstring 
stopLossPipsdouble? 
takeProfitPipsdouble? 
expirationDateTime? 
commentstring 
hasTrailingStopbool 
stopLossTriggerMethodStopTriggerMethod? 
callbackAction 

戻り値

TradeOperation

PlaceStopOrderAsync (21 of 21)

シグネチャ

1
public TradeOperation PlaceStopOrderAsync(TradeType tradeType, Symbol symbol, double volume, double targetPrice, string label, double? stopLossPips, double? takeProfitPips, DateTime? expiration, string comment, bool hasTrailingStop, StopTriggerMethod? stopLossTriggerMethod, StopTriggerMethod stopOrderTriggerMethod, Action<TradeResult> callback)

 

パラメーター

名前説明
tradeTypeTradeType 
symbolSymbol 
volumedouble 
targetPricedouble 
labelstring 
stopLossPipsdouble? 
takeProfitPipsdouble? 
expirationDateTime? 
commentstring 
hasTrailingStopbool 
stopLossTriggerMethodStopTriggerMethod? 
stopOrderTriggerMethodStopTriggerMethod 
callbackAction 

戻り値

TradeOperation

プロパティ

Account

概要

アカウント情報をすべて含みます

シグネチャ

1
public IAccount Account {get;}

 

戻り値

IAccount

1
2
3
4
5
6
7
 double balance = Account.Balance;
 string currency = Account.Currency;
 double equity = Account.Equity;
 double freemargin = Account.FreeMargin;
 double margin = Account.Margin;
 double? marginlevel = Account.MarginLevel;
 int leverage = Account.Leverage;

LastResult

概要

最新の取引結果

シグネチャ

1
public TradeResult LastResult {get;}

 

戻り値

TradeResult

1
2
3
 ExecuteMarketOrder(TradeType.Buy, Symbol, 20000, null, 10, null);
 if(LastResult.IsSuccessful)
     Print(LastResult.Position.StopLoss);

Trade

シグネチャ

1
public ITrade Trade {get;}

 

戻り値

ITrade

目次

このページについて