Customising Alerts via Placeholders and Input Settings

Trendoscope - Harmonic Pattern and Chart Patterns

This is a detailed tutorial on using a fully customisable alerts feature in Trendoscope's premium Harmonic Patterns and Chart Patterns indicators.

Basics of Alerts

Alerts are tradingview features that can be used to send notifications based on certain conditions. Alerts are very useful to keep track of market conditions and can also be used for integrating with other applications such as brokers/exchanges or social media channels such as Telegram, Discord, Twitter etc.

More details about alerts can be found in tradingview help documents

Alerts in Trendoscope Premium Indicators

In all our indicators, we make use of the alert() function for implementation instead of alertcondition(). Due to this, the alert widget will not provide a custom template for alerts. In order to overcome this problem, we have implemented fully customisable alerts in most of our premium scripts.

Here is a short video on how to customise the alerts using the templates and placeholders.

Alert Placeholders

Auto Harmonic Patterns UltimateX

Type of Alerts

  • New Pattern
  • Entry Reached
  • Status Update - When Targets/Stops reached
  • Pattern Closure - When either stop is reached or Target4 is reached
  • Summary - All live pattern summaries every bar

Placeholders

  • {type} - Alert Type. (New, Entry, Update, Closure, Summary)
  • {id} - Unique pattern Id
  • {ticker} - Ticker for which pattern is generated
  • {timeframe} - Chart timeframe
  • {basecurrency} - Base currency of ticker
  • {quotecurrency} - Quote currency of ticker
  • {pivots} - Array containing pivots X, A, B, C, D
  • {price} - Current price
  • {patterns} - Array containing a list of patterns recognised
  • {direction} - Long or Short
  • {entrydirection} - Actual trade direction of entry for the given pattern. Possible values are "buy" and "sell".
  • {exitdirection} - Actual trade direction of exit for the given pattern. Possible values are "buy" and "sell".
  • {entry} - Entry Price
  • {stop} - Stop Price
  • {tstop} - Trailing stop price
  • {firsttarget} - First target from the list of targets
  • {lasttarget} - Last target from the list of targets
  • {targets} - All targets in an array [target1, target2, target3, target4]
  • {laststatus} - Last pattern Status (Applicable only for status update)
  • {status} - Pattern Status
  • {result} - Result of the pattern trade (Applicable only for pattern closure alerts)

Auto Chart Patterns - Ultimate

Type of Alerts

  • New Pattern
  • New Pattern (Safe Repaint) - only when safe repaint is enabled
  • Status Update - When Targets/Stops reached
  • Trade Complete - When either stop is reached or Target2 is reached

Placeholders

  • {type} - Alert Type. (New, Entry, Update, Closure, Summary)
  • {id} - Unique pattern Id
  • {ticker} - Ticker for which pattern is generated
  • {timeframe} - Chart timeframe
  • {price} - Current price
  • {patterns} - Array containing a list of patterns recognised
  • {longTrade} - Long trade details (entry, stop, target1, target2)
  • {shortTrade} - Short trade details (entry, stop, target1, target2)
  • {longStop} - Long Stop Price
  • {longEntry} - Long Entry Price
  • {longTarget1} - Long Target1 Price
  • {longTarget2} - Long Target2 Price
  • {shortStop} - Short Stop Price
  • {shortEntry} - Short Entry Price
  • {shortTarget1} - Short Target1 Price
  • {shortTarget2} - Short Target2 Price
  • {status} - Combined Pattern Status

Auto Harmonic Projection Ultimate

Types of Alerts

  • New Projection
  • Projection Updates
  • Projection Completion
  • Projection Closure

Placeholders

  • {type} - Alert type
  • {id} - Auto generated unique id of projections
  • {ticker} - Symbol on which the projections are formed.
  • {timeframe} - The chart timeframe on which the alerts are triggered.
  • {basecurrency} - Base Currency of the symbol. Applicable for forex and crypto.
  • {quotecurrency} - Quote Currency of the symbol. Applicable for forex and crypto.
  • {pivots} - Pattern pivots - XABC
  • {price} - Current price
  • {patterns} - List of patterns identified
  • {direction} - Pattern direction (Not trade direction). The values for this come from another custom field - "Pattern Direction Label"
  • {entrydirection} - For Harmonic Projection, this is generally the opposite of pattern direction. For example, entrydirection for bullish patterns will be short and the same for bearish patterns will be long. This is because the projections are measuring the completion of patterns from C to D.
  • {exitdirection} - exit direction will be the opposite of entry direction. Both entry and exit direction labels are controlled by another custom field - "Entry/Exit Direction Label"
  • {przstart} - This is the starting value of consolidated Projection ranges.
  • {przend} - This is the ending value of consolidated Projection ranges.
  • {activationprice} - Calculated activation price based on the trade settings.
  • {invalidationprice} - This is generally equal to the price of C pivot.
  • {reversalprice} - Available only after a projection is complete. Signifies calculated reversal confirmation price of completed Harmonic Pattern.
  • {laststatus} - Previous state of the projection. 
  • {status} - Current state of the projection. 
  • {result} - Only available for Projection closure alert. Tells the result of the projection

Comments