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
| Parameter | Type | Purpose | 
|---|---|---|
| advice | enum item | Value, representing the current advice state | 
Returns: enam items.
| Enum Item | Purpose | 
|---|---|
| advice.buy | Notification to buy | 
| advice.neutral | Asset state, where the data cannot be used to determine the future trend for the current asset | 
| advice.sell | Notification to sell | 
Example
if close > open then
    advise("Buy")
elseif open < close then
    advise("Sell")
elseif open = close then
    advise("Wait")
end