BotgetPositionByComment Method
Returns position with comment specified
Namespace: SharpTraderBotAssembly: SharpTraderBot (in SharpTraderBot.dll) Version: 1.0.0
public STPosition getPositionByComment(
string comment,
int sessionIndex = -1
)
Public Function getPositionByComment (
comment As String,
Optional sessionIndex As Integer = -1
) As STPosition
public:
STPosition^ getPositionByComment(
String^ comment,
int sessionIndex = -1
)
member getPositionByComment :
comment : string *
?sessionIndex : int
(* Defaults:
let _sessionIndex = defaultArg sessionIndex -1
*)
-> STPosition
- comment String
- Comment of the position to be returned
- sessionIndex Int32 (Optional)
- Index of session in used session list
STPositionPosition or null if not found