Decision Recipes

Comparing Underlying Symbol Price to an Indicator

Comparing underlying symbol price to an indicator allows you to choose whether a symbol’s price is above or below a moving average indicator with a defined time period. Here is how to use it.
Comparing Underlying Symbol Price to an Indicator
Steve Henry
May 14, 2021

The decision recipe for comparing an underlying symbol’s price to an indicator has four inputs:

  • Symbol
  • Above/below
  • Time period
  • Indicator

This decision recipe allows you to choose whether a symbol’s price is above or below a moving average indicator with a defined time period.

Screenshot displaying the decision recipe for comparing underlying symbol price to an indicator

Enter a symbol and select “Next.” The second field prompts a dropdown menu to choose if the security’s price is above or below the third field, where you select a lookback period for the fourth field.

The fourth field prompts a dropdown menu to choose a moving average indicator to reference when comparing the underlying symbol’s price. 

Screenshot highlighting the indicators available in the indicator dropdown menu

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, 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 an underlying symbol’s price to an indicator.

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 Multiple Underlying Symbol Indicators
Comparing multiple underlying symbol indicators allows you to compare the value of a symbol’s moving average indicator to the value of another moving average indicator for the same symbol, with different time periods. Here is how to use it.
Was this helpful?
FAQs

What are the definitions of the various Indicators?

There are many indicators, some you may not be familiar with. If you are not familiar we recommend consulting the "Technical Indicators" section of the Handbook: Analysis: Technical Indicators [Guide] (optionalpha.com).

Can I indicate a window of time other than the given set choices?

No, you cannot select a window of time of your choosing.

Can I evaluate on time frames less than days and possibly even on hours or minutes?

No, right now you need to use the options that are available in the platform

Will the indicator readings match with the readings on my platform?

In some cases yes, in some cases no. With any indicator, there are variations to the formula and not all platforms or brokerages use the exact same formula. We can't promise our indicators readings will be an exact match of your brokerage platforms reading

Are the criteria only matched at the time the bot runs or is the bot checking to see if the criteria were met at any time since the last bot run?

It is only compared at the time of the run.

Where can I find definitions of the various indicators I can select from?

You can find indicator definitions in the OA Technical Docs and Handbook.

I see that I can have my criteria be where the price is "above" or "below" a set price, but can I have it trigger when it CROSSES a certain indicator reading?

Not yet, though this is expected to be added in a future update.

Can I add multiple decisions together in this one criterion?

Yes, you can group together multiple decisions by using the "and/or" functionality.

Can this criteria be used as both an entry or an exit criteria?

Yes.

Related articles

Trade smarter with automation