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.

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.

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.
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-7 – RSI (Relative Strength Index) indicator that uses 7 as its length. You can choose the time frame and value that triggers the condition
  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. TA Presets – This option will enable the use of the TA Preset drop-down that is found in its respective row.
  4. 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:

  • 3 minutes
  • 5 minutes
  • 15 minutes
  • 30 minutes
  • 1 hour
  • 2 hours
  • 4 hours
  • 1 day
  • 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-7” or “ULT-7-14-28“.

The question mark “?” next to the drop-down means that the comparison will be determined by the value of the Strategy drop-down. For example, if RSI-7 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.

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 and closes a candle below the lower band.
  • 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.
  • 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.
  • BB-20-1-UB (Short) – BB (Upper Bollinger Band) indicator. It uses length 20, standard deviation of 1. It triggers when the price crosses and closes above the upper band.
  • 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.

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 9 – 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 10 – 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 11 – Data Window

Start Condition Result

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.

Send me an email when this page has been updated

Leave a Reply

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