[Autoview] Every Candle Alert Script

This script is designed specifically for firing an alert every candle. It can also be used to just fire an alert on a green candle, or a red candle to slow it down a bit.

This is a script we use to close all of our orders or positions on any of the integrated exchanges.
You can use a fire once alert with greater than on condition and the alert will typically fire within seconds. You can also use this to place orders for you without having to navigate away from TradingView to your exchange/brokerage site.

If you would like a better understanding of how to create an alert for automation, please visit the article this strategy is being published for.
הסר מסקריפטים מועדפים הוסף לסקריפטים מועדפים


I just discovered Autoview, and I'm so thrilled. Thanks for developing this!

When I copy and paste the above code, I get this error: root_data expression of plot_0 has invalid type: series__bool expected series;

I can't figure out how to plot a boolean. If I change the code to plot(close) or some other series that is not a bool, it works fine. Any ideas?
+9 השב
mrsirio hanster
@hanster, I have the same error, did you solve yours?
+1 השב
john3909 mrsirio
@mrsirio, change to integer using the following:
plot(g? 1: 0, "Buy", color=green)
plot(r? 1: 0, "Sell", color=red)
plot(b? 1: 0, "Both", color=black)
+11 השב
@john3909, Thank You!
Smikel john3909
@john3909, thank you very much
What I did to make sure alerts work is set it like this. Set to 1 MIN and then set value to any negative number.
+1 השב
Would like to trade between USD and BTC on CoinbasePro based on MACD signal line crossing. Can anyone help me on this one? Trigger is easy enough to create for crossing up and down, just not sure of context in message.

No q= is 100%
Testing with $100/0.016 (USD/BTC) back and forth.

# Sell BTC (BTC=>USD)
e=gdax? b=buy q=100 u=currency

# Buy BTC (USD=>BTC)
e=gdax? b=sell q=0.016
בית סורק מניות סורק מט"ח סורק מטבעות-קריפטו יומן כלכלי איך זה עובד‏ תכונות גרף מחירון הפנה חבר חוקי הבית מרכז תמיכה כלים לאתרים וברוקרים יישומונים פתרונות גרפיים ספריית גרפים קלי משקל בלוג וחדשות טוויטר‏
פרופיל הגדרות פרופיל חשבון וחיוב חברים מופנים מטבעות לשוניות התמיכה שלי מרכז תמיכה רעיונות שפורסמו עוקבים עוקב הודעות פרטיות צ'אט התנתק