Build your first strategy with 3cBot+

hBroker 3cBotPlus
5 min readFeb 17, 2022

--

In this story we describe step by step how to prepare a strategy with 3cBot+ and apply the the same configuration into a new 3Commas Bot.

PART I — TradingView — Find the best strategy parameters for your strategy.

Open TradingView, login with your profile and select the pair where you want study a new strategy. Select the timeframe you want use for your study. Please note that the results of the studied strategy can be very different changing the timeframe resolution. In the Figure 1, we selected BTCUSD pair with a 3h timeframe.

Figure 1 — Selecting BTCUSD pair, 3h timeframe and add the 3cBot+ BackTesting from the Invite-only submenu.

After selecting the pair and timeframe, click on the ‘Indicator’ icon to open the ‘Indicators, Metrics & Strategies’ pane. Add to your chat the ‘3c.Bot+ BackTesting’ you will find under the submenu ‘Invite-only script’.

Figure 2 — Details of the Deal Panel

The Deal Panel in the Figure 2 resumes the total successful closed deals grouped by the required Safety Orders. The first line, BO, represents the number of deals closed without requiring safety orders. The second, SO#1, represents the deals closed by requiring one safety order. The third, SO#2, represents the deals closed by requiring two safety orders. The last line, Total, resumes all closed deals and sum the percent volume profit of all closed deals.

The last column of the deal panel, Avg Duration, represents the mean of the the durations of all deals closed for base order and safety orders rows.

TRICK#1: Tune your strategies in order minimise the number of safety orders and the average duration time.

TRICK#2: Tune your strategy in order to reduce the average deal duration time by keeping a good profit.

Besides in Figure 2, the default indicator is the CrossRSI. This particular indicator was targeted for stablecoin pairs. For BTCUSD we recommend you to select another indicator by clicking in ‘Settings’.

Figure 3 — Changing the Indicator to Bouncer with Smooth Factor 7

In Figure 3, we selected the Bouncer indicator for Long Strategy. In this way you will search the best parameters for a BTCUSD 3Commas Long Bot. The default take profit percent is 0.84% but you can increase it balancing the maximum number of the closed deals(21 in the Figure 3) with the higher take profit percent value. It is normal observe a decreasing of the closed deals when you increase the take profit target.

NOTE:: Please note 3Commas Deals are not same of TradingView Trades!!! A Deal includes a BasicOrder trade and at least one SafetyOrder. For such reason 3cBot+ has its specific ‘Deals Panel’ and it is different form the TradingView StrategyTester panel.

The default setting

In the Figure 3 we are using the default settings when you add to chart the 3cBot+ BackTesting. It assumes a Base Order(BO) percent(%) as default option. This type of Base Order represent the same concept of the correspondent in 3Commas DCA bot settings as in the picture below where it is used 19% of the total BNB available.

You can now take a note of the Total Vol. Profit in the 3cBot+ BackTesting Deals Panel and change all safety orders parameters to find the best profitable configuration for you. Many traders, named scalpers, said to prefer maximising the number of deals with the most possible short time duration.

PART II — 3Commas — Put the parameters into a new Bot.

Login on your 3Commas account, click on ‘DCA Bot’ and ‘Create a new DCA Bot’. Skip the wizard and click in the Advanced mode to see all settings in the panel as in Figure 4.

Figure 4 — Create a new DCA Long Bot — Advanced mode

You should note the parameters in the 3cBot+ BackTesting have keep the same name of the correspondent 3Commas bot parameters.

After the bot creation, for this case we are using Bouncer indicator as TradingView Custom Signal, you have to copy the deal start signal message shown after bot creation, Figure 5, and paste it into the a new TradingView alert.

Figure 5 — Deal star signal message copied for TradingView custom signal

Now your 3Commas Bot is ready to be activated by a TradingView webhook alert. This webhook activation has an extended help in the Aline Navikova article in the references section.

Then back to TradingView and add to the same chart the 3cBot+ Suite in order to create the alert from the Bouncer indicator.

Figure 6 — Adding 3cBot+ Suite for custom alert

The same indicators in the 3cBot+ BackTesting are included in the 3cBot+ Suite. TradingView recommends to don’t use alerts from BackTesting script and for such reason we replicated the indicators in the 3cBot+ Suite. Please copy the smooth factor used in the 3cBot+ BackTesting to the 3cBot+ Suite settings. Finally, as in the Figure 6, you can create a new TradingView alert, select as condition ‘3cBot+ Suite’ and the Entry Long for the described example. Please set in the Options ‘One per Bar Close’, set the correct webhook URL according to the 3Commas manual info and finally paste the copied bot message signal to the message box field.

Verify your 3Commas bot has already started and your TradingView alert too. You can now monitor your strategy under TradingView and under 3Commas. Of course we can’t guarantee the perfect equivalence between a real order at the exchange and the order at the TradingView BackTesting but these little differences appear mainly when you work with 30–15 seconds timeframe(for TradingView Premium profiles).

[1]: Alina Novikova. (Feb 2022). How to use TradingView custom signals https://help.3commas.io/en/articles/3108938-how-to-use-tradingview-custom-signals

--

--