Easy Insurances
Last updated
Last updated
Compares the average entry price to current price, absolute value-based.
AbsolutePriceChange([ amount ], [ targetPrice ], [ positionId ])
Returns true if the minimum price change percentage is reached.
Return Type: Boolean
Blocks enter trade when targetPrice is above the last sell order. Only works on spot and when there is no position open.
NeverEnterWithALoss([ acceptedLoss ], [ targetPrice ])
Returns true if the trade is allowed.
Return Type: Boolean
Compares the average enter price to the targetPrice or current price.
NeverExitWithLoss([ acceptedLoss ], [ targetPrice ], [ positionId ])
Returns true if the trade is allowed.
Return Type: Boolean
Calculates the target profit and makes sure the fee costs are double-covered.
OvercomeDoubleFeeCosts([ targetPrice ], [ positionId ])
Returns true if the trade profit is enough to cover double the fees.
Return Type: Boolean
Calculates the target profit and makes sure the fee costs are covered.
OvercomeFeeCosts([ targetPrice ], [ positionId ])
Returns true if the trade profit is enough to cover the fees.
Return Type: Boolean
Compares the average enter price to current price, percentage-based.
PercentagePriceChange([ percentage ], [ targetPrice ], [ positionId ])
Returns true if the minimum price change percentage is reached.
Return Type: Boolean
Blocks any signal until a certain number of minutes have passed since the last exit trade executed by a safety.
StopLossCooldown(minutes, [ positionId ])
Returns true when the last trade is a certain number of minutes ago.
Return Type: Boolean
Only allows a trade to occur once per bar. Signals produced during a traded bar are blocked.
TradeOncePerBar([ interval ], [ positionId ])
Returns true when new bar opens or no trade occured during a bar.
Return Type: Boolean
Checks the current market condition for sideways movement.
TradeOnlySideways([ threshold ], [ interval ], [ fullCandles ], [ market ])
Returns true if the trade is allowed.
Return Type: Boolean
Checks the current market condition for a trend.
TradeOnlyTrending([ threshold ], [ interval ], [ fullCandles ], [ market ])
Returns true if the trade is allowed.
Return Type: Boolean
Blocks any signal until a certain number of minutes have passed since the last trade.
WaitAfterTrade(timeout, [ positionId ])
Returns true when the last trade is a certain number of minutes ago.
Return Type: Boolean
Parameter Name
Parameter Type
Required
Suggested
amount
Number
False
Input, Number, SessionGet
targetPrice
Number
False
Input, Number, SessionGet
positionId
String
False
Load
Parameter Name
Parameter Type
Required
Suggested
acceptedLoss
Number
False
Input, Number, SessionGet
targetPrice
Number
False
Input, Number, SessionGet
Parameter Name
Parameter Type
Required
Suggested
acceptedLoss
Number
False
Input, Number, SessionGet
targetPrice
Number
False
Input, Number, SessionGet
positionId
String
False
Load
Parameter Name
Parameter Type
Required
Suggested
targetPrice
Number
False
Input, Number, SessionGet
positionId
String
False
Load
Parameter Name
Parameter Type
Required
Suggested
targetPrice
Number
False
Input, Number, SessionGet
positionId
String
False
Load
Parameter Name
Parameter Type
Required
Suggested
percentage
Number
False
Input, Number, SessionGet
targetPrice
Number
False
Input, Number, SessionGet
positionId
String
False
Load
Parameter Name
Parameter Type
Required
Suggested
minutes
Number
True
Input, Number, SessionGet
positionId
String
False
Load
Parameter Name
Parameter Type
Required
Suggested
interval
Number
False
Input, Number, SessionGet
positionId
String
False
Load
Parameter Name
Parameter Type
Required
Suggested
threshold
Number
False
Input, Number, SessionGet
interval
Number
False
InputInterval, Number, CurrentInterval
fullCandles
Boolean
False
True, False
market
String
False
InputAccountMarket, InputMarket, InputPriceSourceMarket, PriceMarket
Parameter Name
Parameter Type
Required
Suggested
threshold
Number
False
Input, Number, SessionGet
interval
Number
False
InputInterval, Number, CurrentInterval
fullCandles
Boolean
False
True, False
market
String
False
InputAccountMarket, InputMarket, InputPriceSourceMarket, PriceMarket
Parameter Name
Parameter Type
Required
Suggested
timeout
Number
True
Input, Number, SessionGet
positionId
String
False
Load