Managed Trade Commands
DoBuy
Generates a buy signal on spot or a long signal on margin & leverage.
Syntax: DoBuy([ note ], [ count ])
Return type: Void
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
note | String | False | Text,Input,SessionGet,Load |
count | Number | False |
DoExitPosition
Sends out a sell signal on spot or an exit positions signal on margin & leverage.
Syntax: DoExitPosition([ note ], [ count ])
Return type: Void
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
note | String | False | Text,Input,SessionGet,Load |
count | Number | False |
DoFlipPosition
Executes a DoLong() when the current position is short and an DoShort() the position is long.
Syntax: DoFlipPosition([ note ])
Return type: Void
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
note | String | False | Text,Input,SessionGet,Load |
DoLong
Generates a buy signal on spot or a long signal on margin & leverage.
Syntax: DoLong([ note ], [ count ])
Return type: Void
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
note | String | False | Text,Input,SessionGet,Load |
count | Number | False |
DoSell
Generates a sell signal on spot or a short signal on margin & leverage.
Syntax: DoSell([ note ], [ count ])
Return type: Void
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
note | String | False | Text,Input,SessionGet,Load |
count | Number | False |
DoShort
Generates a sell signal on spot or a short signal on margin & leverage.
Syntax: DoShort([ note ], [ count ])
Return type: Void
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
note | String | False | Text,Input,SessionGet,Load |
count | Number | False |
DoSignal
Processes a signal enum. Triggers a DoLong() when the signal equals SignalLong, a DoShort() when the signal equals SignalShort, a DoExitPosition() when the signal equals SignalExitPosition and does nothing when the signal is SignalNone.
Syntax: DoSignal(signal, [ note ])
Return type: Void
Parameter Name | Parameter Type | Required | Suggestions |
---|---|---|---|
signal | Enum | True | GetConsensusSignal,GetUnanimousSignal,GetRemoteSignal |
note | String | False | Text,Input,SessionGet,Load |
Last updated