TradingView
Galactus-B
14 ноя 2021 г., 18:54

Argo II - (alerts for 3commas composite bots) - public 

IoTeX / TetherUSBinance

Описание

This script lets users create BUY/SELL alerts for 3commas composite bots (1 alert = 12 pairs) in a simple way, based on a built in set of indicators that can be tweaked to work together or alone through the study settings.

There is a version of this script for single pair bots, with slightly more features here.

If the user choses to create both BUY and SELL signals from the study settings, the (1) alert created will send both BUY and SELL signals for all 12 pairs selected. At this stage, the script forces the user to select 12 pairs in the study settings. If less pairs are inserted, it will not work. Also, the script will only send alerts for the pairs selected in the study settings, not for the current chart (if different).

How to use:
- Add the script to the current chart
- Open the study settings , insert bot details and select 12 pairs. You should write the pairs manually, using the format BTC , ADA, ETH, etc. They MUST be in capital letters or 3commas will not recognize them.
- Still in the study settings, tweak the deal start/close conditions from various indicators until happy. The study will plot the entry / exit points below the current chart (1 = buy, 2 = sell)
- Make sure your strategy works for all the pairs you have selected, simply by checking each chart with the same study settings
- When happy, right click on the "..." next to the study name, then "Add alert'".
- Under "Condition", on the second line, chose "Any alert () function call". Add the webhook from 3commas, give it a name, and "create".

That's it.

Notes:
- If you insert coins that are not available for the quote currency and exchange of your choosing, the script will not work and return an error.
- Make sure you run tests with paper trading or dummy bots (i.e without actual bot ID) to ensure your alerts trigger as intended on all coins.
- If alerts trigger too much (i.e they all trigger at the same time for all coins), Trading View will stop the alert. So probably not ideal for a scalping bot. It could also be the sign the script doesn't work as intended.
- The script is a bit slow on my side. I am a beginner in pinescript, so if anyone knows how to simplify it, please let me know.
- if anyone knows how to tell the script to function with less than 12 pairs (when not filling the 12 fields in the setting), please also let me know :)

Информация о релизе

Updated the chart

Информация о релизе

Minor update

Информация о релизе

Minor update
Комментарии
rossguillermo
Hello @Galactus-B , hoping you can add the same deal start conditions from Argo IV like MTF ADX / and Protections like MTF EMA and Volatility Filter! Thank you for you work! Appreciate you!
chiconadal
Keep getting study error with the exclamation...would love to try this out. Says the exchange is the reason for error. I've switched exchanges and got the same error
chiconadal
@chiconadal, figured out
jmedinabtc
Hola, esto esta muy bueno. Gracias por el trabajo y por compartirlo
KB0006
Could you possibly add the Take Profit Conditions (indicator, tp, both or either) to this script too pleasee? I was able to connect this to a backtester but it's lacking that option which makes it so great :/
Galactus-B
@KB0006, unfortunately i cannot do this as this script is a study and not a strategy. Basically, it cannot track price movement so the take profit conditions would not work. I personnally use it together with a DCA backtester from TheTradingParrot thzt handles the take profit conditions very well. It also lets you choose between selling based on indicator only, or based on either the indicator OR a %profit (whichever comes first)
KB0006
@Galactus-B, Oh I see. So i tried to connect Argo IV to my papertest bot on 3commas, but got a little confused with the alert creation. Can i create buy/sell signals with Argo IV or only with Argo II? I'd like to be able to use the take profit condition of "Indicator or TP%" in my papertest.
Galactus-B
@KB0006, You can create BUY/SELL alerts for 3commas with Argo I, Argo II and Argo IV. With Argo II, you need to enter all bot details and the coins you want to trade directly in the "settings" of the script. Then you click on "more" and "add alert". When your alert is created, you need to create your bot in 3commas, using the settings (BO, SO, TP%, etc) from your backtester, selecting the same coins as in the script settings, and selecting "Trading View Custom signal" as deal start condition. You can create the bot before creating the alert if you want, it doesn't matter. With Argo II, you can send both SELL and BUY signals if you want. If you use SELL signals, the deals with close either when the Sell signal is received by the bot, OR when a deal reaches the TP% you have set in the bot. If you wanted to use only the SELL signal, then you would have to enter 99 as TP%.

Things are a bit different with Argo IV. With Argo IV, you just put all your settings in the script settings, as for Argo II, except that you don't need to add all BOT details. You just copy paste the 3commas messages To start deal and to close ALL deals at market price. You will get these on your 3C bot page once you have created the bot (make sure you create a multi pair bot, even though you will be trading only 1 pair). Second thing that is different in ArgoIV: you need to adjust the "Properties" of the script, not just the main settings. In properties, you need to define the initial capital, the order size and the number of orders (make sure the number of orders multiplied by the order size is equal to the initial capital). Once you are happy with the Argo IV setting, click on "more" to create the alert as for Argo II. Then, you go back to 3c to edit your bot: it is not a classic DCA bot, here we use Pyramiding. Basically, there is no Safety Order. Instead, you will make sure that "max active deals" and "Simultaneous deals per same pair" are equal to the number of orders from your script. Also, you need to set take profit % to 99% in order to let the script decide when deals are closed. And of course the deal start condition needs to be TradingView Custom signal, as for Argo II. The actual order size for your bot doesn't have to be the same as in the script, so you can invest more or less money. What matters is the number of simultaneous deals.
KB0006
@Galactus-B, Thank you for the detailed explanation! I think i've figured out most of it, just one last thing Im lost with is what's the alert condition supposed to be for Argo IV? Order fills and alert() function calls, Order fills only or alert() function calls only? I appreciate your help!
Galactus-B
@KB0006, ah yes good question. You need to use Alert()function calls only.
Ещё