Easy Safeties

DeactivateAfterEnterOrder

Deactivates the bot after an enter order has been completed.

  • DeactivateAfterEnterOrder([ positionCount ])

Returns true when the bot has been deactivated.

Return Type: Boolean

DeactivateAfterExitOrder

Deactivates the bot after an exit order has been completed.

  • DeactivateAfterExitOrder([ positionCount ])

Returns true when the bot has been deactivated.

Return Type: Boolean

DeactivateAfterXActiveMinutes

Deactivates the bot when the is active for a certain time.

  • DeactivateAfterXActiveMinutes(minutes)

Returns true when the bot has been deactivated.

Return Type: Boolean

DeactivateAfterXIdleMinutes

Deactivates the bot if the last completed order is a number of minutes in the past. Timeout starts after the first completed order.

  • DeactivateAfterXIdleMinutes(minutes)

Returns true when the bot has been deactivated.

Return Type: Boolean

DeactivateAfterXOrders

Deactivates the bot after a number of orders has been completed.

  • DeactivateAfterXOrders([ count ])

Returns true when the bot has been deactivated.

Return Type: Boolean

DeactivateAfterXPositions

Deactivates the bot after a number of positions has been completed.

  • DeactivateAfterXPositions([ count ])

Returns true when the bot has been deactivated.

Return Type: Boolean

DeactivateOnLoss

Deactivates the bot when there is no open position and the ROI based losses have reached a certain level.

  • DeactivateOnLoss(maxLoss)

Returns true when the bot has been deactivated.

Return Type: Boolean

DeactivateOnProfit

Deactivates the bot when there is no open position and the ROI based profits have reached a certain level.

  • DeactivateOnProfit(minProfit)

Returns true when the bot has been deactivated.

Return Type: Boolean

DynamicStopLoss

Calculates the dynamic stop loss price and compares it with the current exit price.

  • DynamicStopLoss(percentage, [ depth ], [ positionId ], [ direction ])

Returns true is the stop loss price has been breached.

Return Type: Boolean

DynamicTakeProfit

Calculates the dynamic take profit price and compares it with the current exit price.

  • DynamicTakeProfit(percentage, [ depth ], [ positionId ], [ direction ])

Returns true is the take profit price has been breached.

Return Type: Boolean

GrowingTrailingStopLoss

Keeps track of the highest/lowest recorded price and adjust the stop loss accordingly. The higher the price change the more the trailing distances grows.

  • GrowingTrailingStopLoss(percentage, growPercentage, [ positionId ], [ direction ])

Returns true if the stop loss has been hit.

Return Type: Boolean

ShrinkingTrailingStopLoss

Keeps track of the highest/lowest recorded price and adjust the stop loss accordingly. The higher the price change the more the trailing distances shrinks.

  • ShrinkingTrailingStopLoss(percentage, shrinkPercentage, [ positionId ], [ direction ])

Returns true if the stop loss has been hit.

Return Type: Boolean

StopLoss

Calculates the current percentage change from the average enter price and compares it with the stop loss value.

  • StopLoss(percentage, [ positionId ], [ direction ])

Returns true if the stop loss has been hit.

Return Type: Boolean

StopLossROI

Calculates the defined position's current ROI percentage and gives a signal if the set loss is reached.

  • StopLossROI(percentage, [ positionId ], [ direction ])

Returns true if the stop loss has been hit.

Return Type: Boolean

TakeProfit

Calculates the current percentage change from the average enter price and compares it with the take profit value.

  • TakeProfit(percentage, [ positionId ], [ direction ])

Returns true if the take profit has been reached.

Return Type: Boolean

TakeProfitROI

Calculates the defined position's current ROI percentage and gives a signal if the set profit is reached.

  • TakeProfitROI(percentage, [ positionId ], [ direction ])

Returns true if the take profit has been reached.

Return Type: Boolean

TrailingArmStopLoss

Keeps track of the highest/lowest recorded price and adjust the stop loss accordingly when the arm% has been reached.

  • TrailingArmStopLoss(percentage, arm, [ positionId ], [ direction ])

Returns true if the stop loss has been hit.

Return Type: Boolean

TrailingStopLoss

Keeps track of the highest/lowest recorded price and adjust the stop loss accordingly.

  • TrailingStopLoss(percentage, [ positionId ], [ direction ])

Returns true if the stop loss has been hit.

Return Type: Boolean

Last updated