Skip to main content

advise

Syntax Format

advise(advice)

Overview

The advise function provides the advice notifications, based on the current and historical values. This function can be particularly useful in conditions, set to show a certain advice notification, depending on the asset price behavior.

Parameters

ParameterTypePurpose
adviceenum itemValue, representing the current advice state

Returns: enam items.

Enum ItemPurpose
advice.buyNotification to buy
advice.neutralAsset state, where the data cannot be used to determine the future trend for the current asset
advice.sellNotification to sell

Example

if close > open then
advise("Buy")
elseif open < close then
advise("Sell")
elseif open = close then
advise("Wait")
end