Managed Trade Commands

DoBuy

Generates a buy signal on spot or a long signal on margin & leverage.

Syntax: DoBuy([ note ], [ count ])

Return type: Void

DoExitPosition

Sends out a sell signal on spot or an exit positions signal on margin & leverage.

Syntax: DoExitPosition([ note ], [ count ])

Return type: Void

DoFlipPosition

Executes a DoLong() when the current position is short and an DoShort() the position is long.

Syntax: DoFlipPosition([ note ])

Return type: Void

DoLong

Generates a buy signal on spot or a long signal on margin & leverage.

Syntax: DoLong([ note ], [ count ])

Return type: Void

DoSell

Generates a sell signal on spot or a short signal on margin & leverage.

Syntax: DoSell([ note ], [ count ])

Return type: Void

DoShort

Generates a sell signal on spot or a short signal on margin & leverage.

Syntax: DoShort([ note ], [ count ])

Return type: Void

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

Last updated