Using Inputs

Inputs are dynamic tools that give you added flexibility with variables. Discover the many ways you can leverage the power of inputs in your bots and automations.

Efficiency is one of the key advantages of using automation in trading. With less manual trading, you have more time to discover, refine, and scale your strategies. One of the most powerful tools for increasing bot functionality on Option Alpha’s platform is the use of custom inputs. This guide will help you understand how to use inputs effectively, the hierarchy involved, and the best practices for managing these inputs.

What Are Inputs?

Custom inputs are variable fields within your automations that you can link and edit in the future. They provide a convenient way to manage and update key values without having to edit each individual instance within an automation. By using inputs, you can change a value in one place, and that change will automatically apply wherever the input is referenced in the automation.

For example, if you create a custom input for a ticker symbol within an automation, you can reference that input throughout the automation. Then, if you need to change the ticker symbol later, you simply update the custom input, and the change is reflected everywhere that input is used.

Input Hierarchy: Automation-Level vs. Bot-Level Inputs

One of the most important concepts to understand is the hierarchy of inputs. In Option Alpha, you can manage inputs at two levels:

1. Automation-Level Inputs: These inputs are defined within a specific automation. They can be modified directly in the automation's settings panel and will affect all instances of that input within the automation.

  1. Bot-Level Inputs: These inputs are defined at the bot level and can be used across multiple automations within the same bot. Bot-level inputs allow you to manage key variables from a central location, the Bot Settings panel, providing a higher level of control and convenience. By moving an input from the automation level to the bot level, you can change values without diving into each individual automation.

Best Practices for Managing Inputs

Once you establish custom inputs, it’s crucial to manage them effectively to maintain the efficiency and flexibility they offer. Here are some best practices:

- Avoid Editing Inputs Inside the Editor: Once an input is established outside the editor, whether at the automation or bot level, all changes to that input should be made in the respective settings panel. This ensures consistency and prevents errors that could arise from making changes directly within the editor.

- Centralize Input Management: By moving key inputs to the bot level, you can manage them from the Bot Settings panel. This centralization simplifies the process of updating values and ensures that changes are applied consistently across all automations within the bot.

- Reuse and Scale with Inputs: Inputs are especially useful when you plan to reuse an automation in different bots or scenarios. By defining inputs that can be easily modified, you can quickly adapt the automation to different contexts without reworking the entire setup.

Custom inputs are a powerful feature that can significantly enhance the efficiency and flexibility of your trading bots on Option Alpha. By understanding the input hierarchy and following best practices for managing inputs, you can streamline your trading processes, save time, and focus more on optimizing your strategies.

Last updated