Using Lists of Choices

The Quagensia® Desktop Application supports data types that can be represented as lists of named choices, such as the seven days in a week.

Programmers call these data types “enumerated constants” because they consist of a certain known number of named “constant” values, for example seven named constants like “Monday” or “Tuesday” that are set to the values 1 through 7 and that together represent the names of the seven days in a week.

“Enumerated constants” are very helpful data types because they allow programmers to write code that is easier to write and easier for others to read, because for example their code can use the names of the days of the week rather than the numbers 1 through 7 to represent the days of the week. It is easier, for example, to understand the code “If DayOfWeek Equals Wednesday” than to understand the code “If DayOfWeek Equals 3”.

You can see the full list of “List of Choices” data types supported by your edition of Quagensia by clicking on the drop down list in the “Type” column of the Input Parameters section or Internal Variables section, and expanding the “Advanced Data Types >> Lists of Choices” folder in the drop down list. To see the list of choices for one of the “List of Choices” data types, click on one of the data types in the “Advanced Data Types >> Lists of Choices” folder to select that data type, then in your strategy, click on the new drop down list that appears to the right of the “Type” drop down list.

Some of the “List of Choices” data types in Quagensia represent actual enumerated constant data types that exist in the trading platform’s programming language, and other “List of Choices” data types represent lists of constant values in a trading platform’s programming language that represent a “logical” list of choices, even if the list of choices doesn’t exist as an actual enumerated constant in the trading platform’s programming language. For instance, if a trading platform’s programming language doesn’t have a “Seven Days of the Week” enumerated constant but does have a constant value for each day of the week, for example by using the number 1 to mean “Monday”, 2 to mean “Tuesday”, etc., your edition of Quagensia may have a “List of Choices” data type that represents a “conceptual” or “logical” “Seven Days of the Week” enumerated constant. There are even some special “List of Choices” data types that are used by one or more editions of Quagensia that represent lists of choices that are only used internally by the Quagensia Desktop Application itself or are only used by code created by Quagensia and do not represent any particular type of data in the trading platform’s programming language.

Variables of the Quagensia Desktop Application’s many “List of Choices” data types are just like numeric variables or any other kind of variable. They can be set to different values from the “Set a Variable” action, and the value to set your variable equal to can be selected manually from another drop down list of that “List of Choices” data type’s list of choices, can be set to the value of another “List of Choices” variable of the same data type, or can be the return value of a Quagensia Function that returns a “List of Choices” value of the same data type. You can create time series containing one “List of Choices” value for each or your primary instrument’s price bars, lists of “List of Choices” values, single-dimensional and multi-dimensional arrays of “List of Choices” values, and Quagensia Functions that accept “List of Choices” values as input parameters and return “List of Choices” values either as return values or by passing a “List of Choices” variable into the Quagensia Function by reference and setting it from within the function.

The Quagensia N Edition Indicator Import Process Also Imports Over 200 “List of Choices” Data Types

The Quagensia N Edition indicator import process also imports over 200 “List of Choices” data types that you can use in your Quagensia N Edition Strategies as input parameters that appear as (optimizable!) drop-down lists in NinjaTrader®, drop-down list internal variables in your strategies, or drop-down lists in your strategies’ trading logic.

You can quickly import over 200 “List of Choices” data types, as well as your third-party NinjaTrader® indicators, custom NinjaTrader® indicators, and enhanced versions of the NinjaTrader® indicators built into Quagensia® N Edition, as long as the “List of Choices” data types and indicators are currently supported by Quagensia N Edition, by following the quick and easy steps in the tutorial video below:

For more information about automatically importing “List of Choices” data types and indicators from NinjaTrader® into Quagensia N Edition, see this help page: How to Import (or Re-Import) Your Third-Party NinjaTrader® Indicators Into Quagensia N Edition By Applying a No-Code Strategy to a Chart in NinjaTrader®.

The Over 200 “List of Choices” Data Types Imported Into Quagensia N Edition Work Everywhere Except in the Quagensia Table System

A note to our most advanced Quagensia N Edition users that use Quagensia® N Edition’s innovative Quagensia Table System, which makes it easy to load tables of many kinds of data, not just time series data, from tabular data files into in-memory data tables that you can query, modify, and then write back to tabular data files on disk from your strategies:

The Quagensia Table System works with data columns of 89 different types of data including: 10 numeric data types, 3 date/time data types, colors, Booleans (true or false), text, and 73 built-in “list of choices” data types such as the months of the year or the days of the week, but the Quagensia Table System does not work with imported “list of choices” data types, only the 73 built-in “list of choices” data types.

Submit your high-quality Quagensia tutorials for consideration for free inclusion on our website.

If you publish high-quality Quagensia tutorials on a social media platform like YouTube, please consider submitting them to us. We may promote them for free by linking to them from relevant pages on our website.

To submit your Quagensia tutorials for consideration for free inclusion on our website, use the How to Submit Your Quagensia-Enhanced Content page. We are available by phone or email to help you create, publish, and promote Quagensia-enhanced content. You can also get questions answered in our Content Creator Support Center and in the official Quagensia® Discord community’s content-creators channel.

Thanks for Sharing!

Ready to get started?

Download the Quagensia no-code strategy builder free trial and build your trading strategies now.

Under a dollar a day.

Priced to be an easy decision for most traders.

Join Us on Discord

Build point-&-click strategies for NinjaTrader® and TradeStation® using Quagensia®. Collaborate with other traders to get and give help, build and backtest strategies together, and grow your skills.

Subscribe to our Newsletter

We'll send you product updates and company news from Quagensia as well as curated lists of Quagensia-enhanced content.

Welcome
Content Creators

Quagensia enables content creators to make interactive content. We invite you to create Quagensia-enhanced content and share it on YouTube and other social media channels. You may submit your high-quality Quagensia-enhanced content for consideration for free inclusion on our website.

Screenshots

For larger and additional screenshots, see large Quagensia N Edition screenshots (for NinjaTrader®) and large Quagensia T Edition screenshots (for TradeStation®).

For additional screenshots, see the list of Strategies Built into Quagensia N Edition (for NinjaTrader®) and Strategies Built into Quagensia T Edition (for TradeStation®). Select a built-in strategy that interests you and scroll down for the screenshot. Then scroll up to the top of the page and click the “Overview” link to watch the video on how to use that built-in strategy.

This is a screenshot of the point-and-click trading strategy you will build in Quagensia N Edition (for NinjaTrader®) if you follow along with the video titled Create NinjaTrader® Strategies Using Point-&-Click with Quagensia N Edition – Full Tutorial.

This is a screenshot of the point-and-click trading strategy you will build in Quagensia N Edition (for NinjaTrader®) if you follow along with the video titled "Introduction to Quagensia N Edition".

Click the gear icon that appears when you place your mouse pointer over the location to which you would like to add trading logic. A context menu will appear with filtered options to choose from.

Click the gear icon that appears when you place your mouse pointer over the location to which you would like to add trading logic. A context menu will appear with filtered options to choose from.

Thanks for Sharing!

Ready to get started?

Download the Quagensia no-code strategy builder free trial and build your trading strategies now.

Under a dollar a day.

Priced to be an easy decision for most traders.

Join Us on Discord

Build point-&-click strategies for NinjaTrader® and TradeStation® using Quagensia®. Collaborate with other traders to get and give help, build and backtest strategies together, and grow your skills.

Subscribe to our Newsletter

We'll send you product updates and company news from Quagensia as well as curated lists of Quagensia-enhanced content.

Welcome
Content Creators

Quagensia enables content creators to make interactive content. We invite you to create Quagensia-enhanced content and share it on YouTube and other social media channels. You may submit your high-quality Quagensia-enhanced content for consideration for free inclusion on our website.