Using Expressions

Introduction

In the Quagensia® Desktop Application’s terminology, an “expression” is something that calculates a value or holds data, such as a calculation that returns a numeric value, a set of conditions that evaluates to true or false, a date, a piece of text, a color, or a list or array of 100 numbers.

On the other hand, in the Quagensia Desktop Application’s terminology, an “action” does something more than merely calculating a value or evaluating an expression. Examples of actions include submitting an order, drawing something on the chart, setting a variable, or executing code multiple times in a loop.

You can add an expression to your Quagensia Strategy or Function by clicking anywhere on the algo’s workspace where an expression is allowed, and then clicking one of the context menu items that adds an expression to your algo’s trading logic.

Some advanced actions can also be used in locations where expressions are expected. (Recommended for advanced users only)

Advanced users may occasionally want to create a Quagensia Expression Function, i.e. a function that returns an expression, and check the check box in the “Function Summary” section labeled “Can Be Used As An Action (Return Value Will Be Ignored When Used As An Action)” so that the Quagensia Function can be used both in a location where an expression is expected as well as in a location where an action is expected.

Quagensia Functions that do an action but can be used as an expression can be dangerous, because not all users will understand that something that they can place in a location where an expression is expected may also do something more than merely calculating a value or evaluating an expression like submit an order. For instance, if you create a Quagensia Expression Function that submits an order and then returns a Boolean (true or false) value that indicates if the order was submitted successfully and share this function with another user who thinks that the only way that an order could be submitted is by placing an action in a location in “When Bar Updates” where calls to order submission functions are usually placed, they may use the function in a location thinking that it will merely do a calculation and return an expression instead of submitting an order.

For your safety and for the safety of all users of any Quagensia Expression Function that can be used as either an expression or an action, please name your Quagensia Expression Function in a way that makes it clear that it does an action.

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.