PineCoders

Alert Creation Framework - PineCoders FAQ

This script provides a framework to add alerts to a script.

It uses a method and provides code that:
— Allows the indicator's users to select the plotting of markers representing the different conditions used to trigger alerts.
— Allows filtering of the markers on direction: both, longs only, shorts only.
— Uses a single alert for the indicator. It will trigger on any number of marker conditions selected by the user when the alert is configured. The user can thus create the combination that suits his needs.
— Includes the marker's number in the alert's message.

NOTES
— Alerts should usually be configured to trigger Once Per Bar Close to prevent false signals.
— See the Pine User Manual page on alerts.
— This code uses the Pine Script Coding Conventions.
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Want to use this script on a chart?
Tools and ideas for all Pine coders: http://www.pinecoders.com
Our Pine FAQ & Code: http://www.pinecoders.com/faq_and_code/
Pine news broadcasts: https://t.me/PineCodersSquawkBox or https://twitter.com/PineCoders

Comments

How to use Webhook with strategy alert?
I success send message Study''s Alert from Tradingview to Telegram. But Stratety''s alert with the same Webhook urls not work.
Thanks.
Reply
Algonize dinhchien
@dinhchien, While creating strategy alerts simple write {{strategy.order.comment}} and create, it will post whatever message you written in strategy comment= part to your webhook.
Reply
dinhchien Algonize
@Algonize, Very thank you.
+1 Reply
Algonize dinhchien
@dinhchien, Your welcome
Reply
Hi
I did implemented code in my code and getting sometimes 1,2 or 3 in same place, is there any way where plotshape can be shown one under the other if I get 2 signals same time in my oscilator?
Reply
@CUBYC, Hi, Yes, you could use a technique like this one: http://www.pinecoders.com/faq_and_code/#how-can-i-lift-plotshape-text-up
Copy the whole snippet in your editor and you'll see the special character used to lift the lines up.
+1 Reply
CUBYC PineCoders
@PineCoders, I will try that , thank you so much for getting back to me.
Reply
Top notch quality as usual, thanks pinecoders!
Reply
Home Stock Screener Forex Screener Crypto Screener Economic Calendar How It Works Chart Features Pricing Refer a friend House Rules Help Center Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Blog & News Twitter
Profile Profile Settings Account and Billing Referred friends Coins My Support Tickets Help Center Private Messages Chat Sign Out