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

Figure 4 – Deal Start Condition Section

This section is designed to resemble the Deal Start Condition section on the bot settings page were the field inputs do not have labels.

Figure 5 – 3Commas Deal Start Condition Section

Because TradingView scripts are not able to hide and show inputs based on selections from other inputs, the TA Presets and TV Ratings are placed beneath the Signal Indicator Value input as a compromise.

Checkbox

The checkbox is the equivalent of click the + button on 3Comma’s bot page. Checking it will enable that signal row to be activated.

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:

  • Signal Indicator Type required.
  • Time Frame required.
  • Time Frame is higher than the current chart.
  • If the Time Frame is “Cumulative” and then the Signal Indicator Type of “Trading View” is required.
  • If the Time Frame is “Cumulative” and them the current chart time frame must be 15 minutes or lower.
  • If Signal Indicator Type is “TA Presets” then TA Preset drop-down is required.
  • If Signal Indicator Type 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 Signal Indicator Type is “Trading View” then TV Rating drop-down is required.
  • If Signal Indicator Type 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.
  • If Signal Indicator Type is “RSI” then the RSI Comparator is required.
Figure 6 – Example Error Messages

Signal Indicator Type Drop-down

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) indicator that uses a custom length as defined by the RSI Length input value. You can choose the time frame and value that triggers the condition. The comparison to the threshold value can be customized using the RSI Comparator drop-down.
  2. ULT-7-14-28 – ULT (Ultimate Oscillator) indicator that uses 7, 14, 28 as its lengths. Similar to RSI, you can select the time frame and value to trigger the condition.
  3. BB%-20-1 – Bollinger Bands %B indicator that uses a standard deviation of 1 with a length of 20. Similar to RSI and ULT, you can select the time frame and value to trigger the condition.
  4. BB%-20-2 – Bollinger Bands %B indicator that uses a standard deviation of 2 with a length of 20. Similar to RSI and ULT, you can select the time frame and value to trigger the condition.
  5. TA Presets – This option will enable the use of the TA Preset drop-down that is found in its respective row.
  6. Trading View – This option will enable the use of the TV Ratings drop-down that is found in its respective row.

Time Frame Drop-down

Defined the higher time frame to use for the selected Signal Type. Possible values are:

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

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

Note using the Cumulative value: The “Cumulative” value is only available for the “Trading View” signal indicator type and will average TV Rating value for the 1 day, 4 hour, 1 hour and 15 minute time frames.

Note: Not all resolution options are available to each indicator type on 3Commas. Therefore, be aware of this limitation when emulating your bot settings in the indicator settings.

Figure 8 – Time Frame Availability by Indicator Type

Signal Indicator Threshold Value

Defines the value that will be used to test for acceptance to start a new deal. The value will only be used if the Signal Indicator Type is a value of either “RSI“, or “ULT-7-14-28“.

The notation “< or >” next to the drop-down means that the comparison will be determined by the value of the Strategy drop-down. For example, if RSI is chosen as the Signal Indicator Type the the following will be applied based on the Strategy value:

  • For a Short strategy, it triggers when the RSI is higher than the entered value.
  • For a Long strategy, it triggers when the RSI is lower than the entered value.

RSI Length

Defines the period length to use when the Signal Indicator Type is a value of “RSI“.

RSI Comparator

Defines the comparator to use when the Signal Indicator Type is a value of “RSI“. Possible values are:

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

TA Preset

Defines the TA preset to use when the Signal Indicator Type is a value of “TA Presets“. 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 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.

TV Rating

Defines the TradingView Rating category name to test for when the Signal Indicator Type is “Trading View“. 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 TA Indicator # 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-Indicator-# Plot

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

TA-Indicator-# Value

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

TA-Indicator-# 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.