Skip to content

Blog

How to send commands from TradingView to Hummingbot telegram bot

Important as of Aug 1st 2020: Confluxbot no longer offer free tier(Previously, you can set up to two free resender combinations), you need to pay $15/mth for unlimited resender combinations.

Discovered liquidity mining back in late May, and has a VPS setup to run the operation ever since. My problem with liquidity mining that it will work brilliantly in a trending or sideways market but terrible in a downtrend market.

So how can we keep running the bot in a trending or sideways market, and stop the bot in a downtrend market? The cons to stopping the bot in a downtrend is that liquidity rewards will stop unless there is way to import different strategy file but this is currently not possible. So let's take a look on how we can auto-trigger the bot based on any technical indicator.

Overview

Luckily, hummingbot has a telegram feature where you can start or stop the bot. Secondly, tradingview has a webhook feature to trigger trades but what is missing is the connector.

The connecter is conflux bot which provides a free webhook, and then setup a channel, group account where the tradingview signals are sent to. From that channel/group account, we need to forward the messages, start/stop to the hummingbot telegram. See following flowchart:

During the setup, there were some problems as the message from tradingview to channel/group has addition message of #webhook. Inorder to forward the correct messages, using text manipulation (by confluxbot) needs to be perform first before sending the commands to the hummingbot telegram.

The end result is that total automation of liquidity mining can be perform by sending start/stop signals from Tradingview to humming telegram bot.

Instructions

  1. Follow instructions https://docs.hummingbot.io/advanced/telegram/ to setup your hummingbot telegram.
  2. Add https://t.me/ConfluxBot
  3. (For payment, steps 3-4) Click Show Packages.
  4. Select and click 1.Plus [...option], and follow onscreen instructions to pay. Two payment types: Paypal and Bitcoin.
    1. Paypal: You will received a code in your email which you need to enter in the Redeem Access Code option.
    2. Bitcoin: Just pay to the address and the bot will be activated.
  5. Create a channel or a group. This group/channel is used as receiver from Tradingview triggers, and then forward to the hummingbot telegram bot. Add confluxbot as admin to the group.
  6. Go to ConfluxBot 
  7. Enter /Start
  8. Click Connect Accounts. Follow on-screen instructions for first time setup.
  9. Click Webhook. Your webhook URL is displayed.
  10. Copy & paste the webhook URL in your browser. A list of groups or channels is displayed.
  11. Look for the channel/group URL that you created (not the Hummingbot telegram) to confirm your channel/group is detected by conflux bot. Copy that URL as well.
  12. Go back to confluxbot, and click Telegram Account. You will be prompted to share your contact.
  13. Click Re-sender combinations.
  14. Click Add Combination. A list of telegram and discord groups/channels are displayed.
  15. Search for your group/channel. Tip: pin the group/channel so it will appear first. Select the number of the group/channel  as your source.
  16. Select the hummingbot telegram number as the destination.
  17. Click Back to Configs to confirm that you have selected source and destination.
  18. Go Tradingview and setup your alerts to trigger start or stop: - In the alert actions, use the confluxbot webhook URL for your group/channel. For info how to setup Tradingview webhook, see https://www.tradingview.com/blog/en/webhooks-for-alerts-now-available-14054/ - Enter Start or Stop in the message.So there will be two alerts messages, start and stop sent to the confluxbot webhook URL .Once either start or stop message is sent to group/channel. There should be an additional text infront of Start/Stop, for example #webhook Start or #Webhook stop. You need to perform text manipulation on those words. If there is none, great!
  19. Now go back to conflux bot, click Text Manipulation.
  20. Cut and paste the #webhook Start literally from the group/channel and paste the text in, and add :start. see following: Repeat step 17 for the stop For info on text manipulation: https://medium.com/@ak4zh/confluxbot-how-to-use-text-manipulation-feature-63b24fb9a93e
  21. Click Forward/Resend , and ensure the mode is in Resend. This allows text manipulation to be performed before sending the message to the bot.Now the bot should be able to start/stop based on your Tradingview strategy and alert triggers.
  22. You also need to disable Show Headers, so when sending, the channel/group headers wont be included in the headers.Hope this helps! So we can sleep better :P

Note: If you have alertatron, it can be use as well but the steps will be a bit different.

Liquidity Mining, Bots Trading, and Quantfury Trading

My main trading focus have shifted to the following three platforms:

  • Hummingbot for liquidity mining
  • 3commas for automated Crypto bot trading
  • Quantfury for currencies/commodities/stocks trading.The focus is to shift everything to automated trading, as for Quantfury platform, its difficult to perform automated trading as they do not have APIs exposed, still researching other ways to use Quantfury as it still has the best fees in the business.

    Another method is using the Tradingview to MT4/MT5, but needs to find the best brokerage to execute this strategy.

Binance-Singapore VS Coinhako trading fees

The following article will be comparing Binance.sg against Coinhako, their pros and cons. I will skip the respective company intro as everyone should already who Binance and Coinhako is. For a start, Binance is new in Singapore and been around since 2019 where Coinhako has been around since 2014. For a start, Binance only offer 8 Crypto currencies which in IMHO are solid. Let's compare these Crypto currencies trading fees to Coinhako.

The following table is from Binance.sg

binance fees

Let's compare side-by-side to Coinhako.com

For ease of use, i cross-reference the common Crypto currencies, see following withdrawal fees.

Coinhako

For ease of use, i edited the Binance fees for easier comparison.

Other than XRP, BCH, and BNB, Binance is cheaper that Coinhako. No clear winner here, depends on the Cryptos that u are interested in.

Coinhako charge 1.0% for every sale and purchase of Crypto whereas Binance only charge 0.6%. Better Rate-Binance Singapore.

Both also allow xfers for deposit of cash. What Coinhako has is in terms of:

  • More Cryptocurrencies which equal to more choices
  • More rewards and promos

Coinhako is applying to be a licensed operator hence they have more compliance to deal with. Overall, use each exchange to your needs, depending on your choice of Crypto currencies.

What Is Digital Currency-How Does It Work

What is digital currency? It is defined as: cash stored and also moved in digital kind. Sounds simple sufficient, but just how does it all job?

This kind of currency is thought to be excellent to make use of for making acquisitions online due to the fact that if it works the method it was implied to, transactions must be instead anonymous as well as untraceable back to the payer or individual.

This implies that cyberpunks would no more have the ability to gather individual details from people who utilize their bank card to make on the internet acquisitions. This would clearly lower the number of taken identifications that take place everyday.

To help you comprehend even more of, "what is electronic currency?" I have done a fair bit of research on the subject and also have discovered that there are numerous various types out there, each with it's very own unique top qualities.

Below are simply a few with their descriptions complying with:

1. Digital Gold Money - This kind is backed by gold stored in vaults. The gold offers an added action of safety and security and also if you hold this type of currency, you might possibly straight trade it for solid gold bullion.

2. Centralized Money Solutions - these are like PayPal and also these business allow you to send money around the globe as long as you have cash in the account. For some solutions supplied by these types of companies, you obtain charged a fee on the receivers end of the deal.

3. Decentralized Currency Equipments - Like Bitcoin are all based upon Cryptography and/or trust networks. Additionally called Hard Electronic Money, it is meant to be more like utilizing cash money to make your deal however your purchase is non-refundable once made. This sort of system just operates in one direction.

The E-cash concept has actually progressed in addition to the advancement of the Internet. Individuals just do not really feel comfortable with giving their individual credit card details over the Internet when purchasing.

Too many poor points can happen like identification theft. No one desires their identification taken.

So, lots of business have tried to create this kind of settlement or monetary system to decrease the threats of shopping online.

Many countries have successfully developed systems for "internal" use such as Hong Kong's Octopus card. This card works similar to a sort of debit card where the user loads money onto the card and afterwards all the cash is deposited into a financial institution. They can after that utilize the card for anything they require to use it for.

Some countries are servicing or have systems that permit the customer to move money via mobile devices. I think this is somewhat like what Chase lets their consumers do. Their clients can take an image of their check, front as well as back, with their phone as well as make their down payment digitally.

I do really hope that this provides you some concept of what is electronic currency as well as just how it is trying to take it's location on the planet of ecommerce. There may be a little more to it than I could explain in simply one small post but I assume you can obtain a great suggestion.