Controlling Losses in Dbot

Hi Deriv Community!

There are many ways you can control your losses in DBot. Here’s a simple example of how you can implement loss control in your Dbot strategy. You may follow the guidelines below to limit your losses.

  1. Create the following variables:

If you would like to know how to create variables in Dbot, you may refer to the post below:

You may set the parameters according to your preferences. The trade parameter block should look like the below attachment.

  1. Use a logic block to check if currentPL exceeds maximumLoss. If it does, set tradeAgain to ‘false’ to prevent the bot from running another cycle.

Purchase conditions block

  1. Update currentPL with the profit from the last purchased contract. If the last contract was lost, the value of currentPL will be negative.

Restart trading conditions

Please note that this example is for educational purposes and it’s created to demonstrate how to control losses in Dbot. You are advised to use your best judgment when trading.

Should you need assistance to manage your trading activity, you may use the self-exclusion tool. You may further refer to our post here: Self Exclusion Tool

We hope the above finds you well and if you would like to know more, please feel free to discover what other traders are discussing in the Dbot section of Deriv Community.


Automated trading at your fingertips. No coding needed.

Haven’t created a Deriv account yet? Click here to get started right away!