Creating an alert on TradingView is a fairly simple task, however, you may find this a little more work if you have a custom strategy, or are using a strategy that does not come with an alert script. If you have to create a custom alert, here's a great video on Creating Alerts with Custom Indicators.
We are going to go through this process with a custom alert script called every candle. We will also include some syntax with a cut and paste strategy that you can use to verify your exchange accounts are setup properly. So the first thing you're going to need to do, is add our Every Candle Alert Script to your chart.
You should now have a section at the bottom of your chart that looks like this
Now you can right click on this script in the window as displayed above, and navigate to "Add Alert". You can also create a new alert by navigating to your tools section and selecting alerts, then clicking Set alert.
You're going to want to set your alert up similar to the image above.
Alert Condition
For the condition, you want to verify that your alert is set for the "Every Candle" candle script in the dropdown. The second dropdown is where you choose to fire an alert every green signal, red signal, or both.
The third depends on when to fire. You could slow this script down by using crossing or crossing up/down.
Our condition is to ensure we get an alert every candle. Fire alert when either red or green are greater than 0.9 will fire every minute.
Frequency
Once per bar on condition is what we like, as the alert will typically fires within seconds of enabling it. This makes it perfect for close all orders on poloniex , or close all positions on 1broker . However, if you used on close, you'd have to wait for the next candle to open. Other than the first candle, these two frequencies, on this alert script will not function differently from one another.
Expiration Time and Alert actions
The only thing worth noting here, is that you should make it a habit to, monthly, if not weekly, go into your alerts and extend the expiration time. Having your bot turn off due to one of the alerts expiring can result in a negative experience.
Message
This is the section that you'll be building your commands and telling Autoview what to do when the alert fires. View the alert syntax documentation to see all of your options.
For this example, we are going to stick with simple close all alerts.
Poloniex
(For margin order closes, replace the buy/sell with long/short)
Close all orders = e=poloniex s=pinkbtc c=order
Close all buy orders = e=poloniex s=pinkbtc b=buy c=order
Close all sell orders = e=poloniex s=pinkbtc b=sell c=order
Margin Positions on poloniex
Close all positions= e=poloniex s=pinkbtc c=position
Close all longs = e=poloniex s=pinkbtc b=long c=position
Close all shorts = e=poloniex s=pinkbtc b=short c=position
1Broker
Close all positions = e=1broker s=usdcad c=position t=market
Close all longs = e=1broker s=usdcad c=position b=long t=market
Close all shorts = e=1broker s=usdcad c=position b=short t=market
Close all order = e=1broker s=usdcad c=order
Close all long orders = e=1broker s=usdcad c=order b=long
Close all short orders = e=1broker s=usdcad c=order b=short
Okcoin Futures
Close all positions = e=okcoin s=butcusd3m c=position
Close all longs = e=okcoin s=butcusd3m c=position b=long
Close all shorts = e=okcoin s=butcusd3m c=position b=short
It is important to note, that even though we had our alerts setup on pinkbtc, we have found that to get 24/7 alerts, the best markets/charts to use are BTC futures.
We believe this is one of those setups that everyone using Autoview should have in their arsenal of alerts.
Oh, we almost forgot... The test strategy.
Comments
0 comments
Article is closed for comments.