Decision Recipes

Comparing Bot Position Count to Position Type

Comparing bot position count to position type allows you to make decisions based on the number of a particular position type in a bot. Here is how to use it.
Comparing Bot Position Count to Position Type
Steve Henry
May 3, 2021

The decision recipe for comparing a bot position’s count to a position type has three inputs:

  • More than / less than / exactly
  • Number of positions
  • Position type

This decision recipe allows you to make decisions based on the number of a particular position type in a bot.

Screenshot displaying the decision recipe for comparing bot position count to position type

The first field prompts you to choose if the bot has more than, less than, or exactly the number of positions you select in the second field. In the third field, you select the position type to reference.

Screenshot of the decision recipe's dropdown menu criteria

When you have finished creating the recipe, select “Save.”

Screenshot highlighting the save button following the decision recipe inputs

NOTE: You can also create a custom input for the number and type of positions, which allows you to input the field later to make the decision recipe dynamic across all automations.

The decision will be added to the list of criteria. You have the option to add more decisions to the recipe or return to the automation editor. When finished, select “Save” again to return to the automation editor.

Screenshot highlighting the save button to return to the automation editor

The automation editor will display your completed decision criteria for comparing a bot position’s count to a position type.

Screenshot highlighting the decision recipe within the automation editor

You can always select the decision inside the automation editor and make changes to the criteria.

No tags found.
Next article
Comparing Bot Position Count to Underlying Symbol
Comparing bot position count to underlying symbol allows you to make decisions based on the number of a particular symbol in a bot. Here is how to use it.
Was this helpful?
FAQs
Related articles

Trade smarter with automation