Skip to content

TradingView

chrisleekr edited this page Nov 20, 2022 · 3 revisions

What is TradingView?

TradingView is a service that provides technical analysis based on various indicators, such as oscillators and moving averages.

The bot is integrated with TradingView summary recommendations to control the buy/sell actions.

The bot uses https://github.com/brian-the-dev/python-tradingview-ta to retrieve TradingView recommendations.

How to configure TradingView with the bot?

To configure the TradingView, follow the below steps:

  1. Open global/symbol setting.
  2. In the TradingView section, change the default TradingView interval or add a new TradingView interval.
  3. Check/Uncheck the conditions for buying or selling.

Once you save the setting, the bot will retrieve TradingView recommendations for intervals.

image

  • 1 shows the first TradingView interval and conditions.
  • 2 shows the second TradingView interval and conditions.
  • 3 is the button to add additional TradingView interval.
  • 4 is the option to use the data only if retrieved within the configuration minutes.
  • 5 is the option to let the bot act to ignore or not buy if the data is old.

Scenario per configurations

I will try to explain as much as simple I can. There are a few notes to be aware of.

  • At least one condition must be checked to activate the TradingView interval. If the interval's conditions are not checked, then the TradingView recommendation of the interval will be ignored.
  • Buy trigger must be satisfied with all intervals' recommendations.
  • Force sell will be executed if satisfy any recommendation.
  • A maximum of three intervals can add to avoid massive traffic to TradingView.

Scenario 1

Configuration

Interval Buy Sell
15m Strong Buy, Buy
30m Strong Buy, Buy Sell, Strong Sell
  • 15m sell recommendation will be ignored.

  • When 15m/30m recommendations are not Strong Buy or Buy

    • Then the bot will not place a buy order.
  • When 15m recommendation is Strong Buy, but 30m recommendation is Sell

    • Then the bot will not place a buy order.
  • When 15m/30m recommendations are Strong Buy or Buy

    • If Grid Trade #1 is waiting, then the bot will place Grid Trade #1 for buying.
    • If Grid Trade #x (not #1) is reached the trigger price, then the bot will place Grid Trade #x for buying.
  • When 15m is Strong Sell or Sell, but 30m is Neutral

    • Then the bot will not place a market order for selling.
  • When 30m is Strong Sell or Sell

    • Then the bot will place a market order for selling.

Scenario 2

Configuration

Interval Buy Sell
15m Strong Sell
30m Strong Buy, Buy
  • 15m's buy recommendation will be ignored.

  • 30m's sell recommendation will be ignored.

  • When 30m recommendation is Sell

    • Then the bot will not place a buy order.
  • When 30m recommendation is Strong Buy or Buy

    • Then the bot will place a buy order.
  • When 15m recommendation is not Strong Sell,

    • Then the bot will not place a market order for selling.
  • When 15m recommendation is Strong Sell

    • Then the bot will place a market order for selling.
Clone this wiki locally