Skip to content
Home » Posts » Documentation » 3Commas DCA Bot Indicator & Strategy v1 » 3Commas TA Start Conditions Indicator v1

3Commas TA Start Conditions Indicator v1

Overview

This TradingView (TV) indicator attempts to implement the Technical Analysis Starting Conditions found in the 3Commas DCA trading bot settings. A detailed review of these starting conditions can be found here.

YouTube Video Overview

Indicator Anatomy

Figure 1 – Indicator Anatomy

Indicator Settings

General Info

Figure 2 – General Info Section

Version

The version input is for displaying the published version of the indicator. It is intended to be for informational use only.

This field contains the URL link to the TradingView script homepage. The expectation is that you would copy the value and paste it into your browser’s address bar to navigate to the webpage.

This field contains the URL link to the script’s documentation webpage. The expectation is that you would copy the value and paste it into your browser’s address bar to navigate to the webpage.

Strategy

Figure 3 – Strategy Section

Strategy

This field is equivalent to the “Strategy” field of the 3Commas Bot Settings page.

This field defines the strategy the bot is to use. Options include Long and Shorts.

Enable Validation

When checked, the indicator will validate the TA Preset and TV Rating drop-down values to make sure the strategy direction is compatible.

Deal Start Condition 1-7

Figure 4 – Deal Start Condition 1-7 Sections

Enable Condition 1-7

The checkbox is the equivalent of click the + button on 3Comma’s bot page. Checking it will enable the condition settings in this section.

Note: When checked, the indicator will validate the following inputs to make sure they are correct for proper utilization. The following validation rules will be applied:

  • Condition 1-7 is required.
  • Time Frame is higher than the current chart.
  • If Condition 1-7 is “TA Presets” and a TA Preset drop-down option is selected, then the Strategy value must match the TA preset strategy. A Strategy value of “Long” must match the TA presets for longs and a value of “Short” must match TA presets for shorts.
  • If Condition 1-7 is “TradingView” and a TV Rating drop-down option is selected, then the Strategy value must match the TV Rating strategy. A Strategy value of “Long” must match the TV rating for longs and a value of “Short” must match the TV rating for shorts.
Figure 6 – Example Error Messages

Condition 1-7

The drop down will display the options found in the 1st drop-down of the 3Comma’s bot page. Three possible values are possible:

  1. RSI – RSI (Relative Strength Index) condition.
  2. ULT-7-14-28 – ULT (Ultimate Oscillator) condition that uses 7, 14, 28 as its lengths.
  3. Bollinger Bands %B – Bollinger Bands %B condition.
  4. TA Presets – Enables the use of the various Technical Analysis presets as defined by 3Commas.
  5. Trading View – Enables the use of the TradingView Ratings indicator by the developers of TradingView.

RSI ─> Period

Defines the period length to use for the RSI condition. The minimum value is 2 and the maximum value is 30.

RSI ─> Timeframe

Defined the higher time frame to use for the RSI condition. Possible values are:

  • 3 minutes
  • 5 minutes
  • 15 minutes
  • 30 minutes
  • 1 hour
  • 2 hours
  • 4 hours
  • 8 hours
  • 1 day
  • 3 days
  • 1 week

Note: If you attempt to select a time frame that is lower than the current chart’s time frame, you will see an error message box communicating that it’s not possible to use this setting.

Figure 7 – Example Error Message for Chart Resolution

RSI ─> Condition

Defines the comparator to use when the testing the current RSI value. Possible values are:

  • Less Than
  • Greater Than
  • Crossing Up
  • Crossing Down

RSI ─> Signal Value

Defines the value that will be used to test the current RSI value for acceptance to start a new deal or not. The minimum value is 1 and the maximum value is 100.

ULT-7-14-28 ─> Timeframe

Defined the higher time frame to use for the ULT-7-14-28 condition. Possible values are:

  • 3 minutes
  • 5 minutes
  • 15 minutes
  • 30 minutes
  • 1 hour
  • 2 hours
  • 4 hours
  • 8 hours
  • 1 day
  • 3 days
  • 1 week

ULT-7-14-28 ─> Signal Value

Defines the value that will be used to test the current ULT-7-14-28 value for acceptance to start a new deal or not. The minimum value is 2 and the maximum value is 100.

The comparator will be determined by the value of the Strategy drop-down. For example, the following will be applied based on the Strategy value:

  • For a Short strategy, it triggers when the current ULT-7-14-28 value is greater than the given Signal Value.
  • For a Long strategy, it triggers when the current ULT-7-14-28 value is less than the given Signal Value.

Bollinger Bands %B ─> Period

Defines the period length to use for the Bollinger Bands %B condition. Possible values are:

  • 10
  • 20
  • 30
  • 40
  • 50

Bollinger Bands %B ─> Deviation

Defines the standard deviation multiplier to use for the Bollinger Bands %B condition. Possible values are:

  • 1 – One standard deviation.
  • 2 – Two standard deviations.

Bollinger Bands %B ─> Timeframe

Defined the higher time frame to use for the Bollinger Bands %B condition. Possible values are:

  • 3 minutes
  • 5 minutes
  • 15 minutes
  • 30 minutes
  • 1 hour
  • 2 hours
  • 4 hours
  • 8 hours
  • 1 day
  • 3 days
  • 1 week

Bollinger Bands %B ─> Condition

Defines the comparator to use when the testing the current RSI value. Possible values are:

  • Less Than
  • Greater Than
  • Crossing Up
  • Crossing Down

Bollinger Bands %B ─> Signal Value

Defines the value that will be used to test the current Bollinger Bands %B value for acceptance to start a new deal or not. The minimum value is -0.5 and the maximum value is 1.5.

TA Presets ─> Timeframe

Defined the higher time frame to use for the TA Presets condition. Possible values are:

  • 3 minutes
  • 5 minutes
  • 15 minutes
  • 30 minutes
  • 1 hour
  • 2 hours
  • 4 hours
  • 8 hours
  • 1 day
  • 3 days
  • 1 week

TA Presets ─> Presets

Defines the TA preset to use. Possible values are:

BB-20-1-LB (Long)

BB (Lower Bollinger Band) indicator. It uses length 20, standard deviation of 1. It triggers when the price crosses up and closes a candle on your chosen timeframe above the lower band.

Figure 9 – Example of BB-20-1-LB (Long)
BB-20-2-LB (Long)

Same as BB-20 but uses a standard deviation of 2.

MFI-14 crosses 40 (Long)

MFI (Money Flow Index) indicator that uses 14 as its period. It triggers when its value crosses 40 from bottom to top.

Figure 10 – Example of MFI-14 crosses 40 (Long)
MFI-14 crosses 20 (Long)

Same as MFI-14, but it triggers when its value crosses 20 from bottom to top.

CCI-40 crosses -200 (Long)

CCI (Commodity Channel Index) indicator with length 40. It triggers when its value crosses -200 from bottom to top.

Figure 11 – Example of CCI-40 crosses -200 (Long)
BB-20-1-UB (Short)

BB (Upper Bollinger Band) indicator. It uses length 20, standard deviation of 1. It triggers when the price crosses down and closes a candle below the upper band.

Figure 12 – Example of BB-20-1-UB (Short)
BB-20-2-UB (Short)

Same as BB-20 but uses a standard deviation of 2.

MFI-14 crosses 65 (Short)

MFI (Money Flow Index) indicator that uses 14 as its period. It triggers when its value crosses 65 from top to bottom.

CCI-40 crosses 0 (Short)

CCI (Commodity Channel Index) indicator with length 40. It triggers when its value crosses 0 from top to bottom.

CCI-40 crosses 100 (Short)

Same as CCI-40 but triggers when its value crosses 100 from top to bottom.

MACD cross 12-26-9 (Both)

MACD (Moving Average Convergence/Divergence) indicator. It triggers when the MACD line crosses the Signal line. Crossing from bottom to top is signaled for Longs. Crossing from top to bottom is signaled for Shorts.

Figure 13 – Example of MACD cross 12-26-9 (Both)
Parabolic SAR 0.02-0.02-0.2 (Both)

PSAR (Parabolic Stop and Reverse) indicator. It triggers when the stop is crossed by the high time frame candle and calculates the stop in the opposite direction of the trend. Crossing from bottom to top is signaled for Longs. Crossing from top to bottom is signaled for Shorts.

Figure 14 – Example of Parabolic SAR 0.02-0.02-0.2 (Both)
SMA 20 crosses 50 (Both)

SMA (Simple Moving Average) indicator using period lengths 20 and 50. It triggers when the 20 SMA crosses the 50 SMA. Crossing from bottom to top is signaled for Longs. Crossing from top to bottom is signaled for Shorts.

Figure 15 – Example of SMA 20 crosses 50 (Both)
SMA 50 crosses 100 (Both)

SMA (Simple Moving Average) indicator using period lengths 50 and 100. It triggers when the 50 SMA crosses the 100 SMA. Crossing from bottom to top is signaled for Longs. Crossing from top to bottom is signaled for Shorts.

SMA 50 crosses 200 (Both)

SMA (Simple Moving Average) indicator using period lengths 50 and 200. It triggers when the 50 SMA crosses the 200 SMA. Crossing from bottom to top is signaled for Longs. Crossing from top to bottom is signaled for Shorts.

SMA 100 crosses 200 (Both)

SMA (Simple Moving Average) indicator using period lengths 100 and 200. It triggers when the 100 SMA crosses the 200 SMA. Crossing from bottom to top is signaled for Longs. Crossing from top to bottom is signaled for Shorts.

Heiken Ashi 1 candle (Both)

Uses the Heikin-Ashi candlestick pattern. It triggers when it counts the first Heikin-Ashi candle has completed after a reversal. A rising candle for Longs and a falling candle for Shorts.

Figure 16 – Example Heiken Ashi 1 candle (Both)
Heiken Ashi 3 candles (Both)

Uses the Heikin-Ashi candlestick pattern. It triggers when it counts three Heikin-Ashi candles in consecutive order after a reversal. Rising candles for Longs and falling candles for Shorts.

Heiken Ashi 5 candles (Both)

Uses the Heikin-Ashi candlestick pattern. It triggers when it counts five Heikin-Ashi candles in consecutive order after a reversal. Rising candles for Longs and falling candles for Shorts.

Trading View ─> Timeframe

Defined the higher time frame to use for the Trading View condition. Possible values are:

  • 1 minute
  • 5 minutes
  • 15 minutes
  • 1 hour
  • 4 hours
  • 1 day
  • 1 week
  • 1 month
  • Cumulative

Note using the Cumulative value: The “Cumulative” value will average TV Rating value for the 1 day, 4 hour, 1 hour and 15 minute time frames.

Trading View ─> Signal Value

Defines the TradingView Rating category name to test with the current TV Rating value. Possible values are:

  • Buy (Long) – A “Buy” rating is assigned when the rating score passes the criteria of:
    0.1 < value ≤ 0.5 or the “Strong Buy” criteria is passing.
  • Strong Buy (Long) – A “Strong Buy” rating is assigned when the rating score passes the criteria of:
    0.5 < value ≤ 1.0
  • Sell (Short) – A “Sell” rating is assigned when the rating score passes the criteria of:
    -0.5 ≤ value < -0.1 or the “Strong Sell” criteria is passing.
  • Strong Sell (Short) – A “Strong Sell” rating is assigned when the rating score passes the criteria of:
    -1.0 ≤ value < -0.5

Chart Settings

Figure 17 – Chart Settings Section

Show Condition 1-7 Plot

In the event you need to investigate the conditions that led to a start deal, you can check any of the options to have the indicator render the plot values of the configured indicator to visually see the values on relative the the chart axis values.

RSI-7 Example
Figure 18 – Show TA Indicator Plot Example using RSI-7

Data Window

The indicator will output series data values to the chart that are visible in the Data Window of TradingView. This section will describe each data point to help you understand the data conditions within the scripts logic.

Data Points

Figure 19 – Data Window

Start Condition Signal

Displays the result of the evaluation of all the indicator values against their respective testing criteria.

  • A value of 1 = Passing
  • A value of 0 = Not passing

TA-Condition-1-7 Plot

Displays the value of the chosen indicator for the plot. This value will be n/a when the Show Condition # Plot check box is unchecked.

TA-Condition-1-7 Value

Displays the value of the chosen indicator without having the check the Show Condition # Plot check box.

TA-Condition-1-7 Signal

Displays the result of the evaluation of the specific indicator value against its respective testing criteria.

  • A value of 1 = Passing
  • A value of 0 = Not passing

Send me an email when this page has been updated

Leave a Reply

Your email address will not be published. Required fields are marked *