Using the “Set a Variable” Action

Sets a variable equal to an expression.

The variable can be a simple “primitive” variable, i.e. a standard variable representing a single simple numeric, text, Boolean (true or false), date and/or time, color, or “list of choices” value, or the variable can be an item that belongs to an array, list, or time series. For instance, a variable could represent a whole number that is the tenth item in a 100-item list of whole numbers.

The expression can be anything from a simple value to a complex calculation.

To see multiple examples of adding internal variables to the “Internal Variables” section of a Quagensia Strategy, adding “Set a Variable” Actions to a Quagensia Strategy and modifying them, and working with the internal variables that are set by the “Set a Variable” Actions, click the link below to watch the part of the “Create Point-&-Click Strategy for TradeStation® w Quagensia (Mov Avg Cross Long-Short Rev w ProfTgt)” video where this is demonstrated. It starts off by demonstrating adding internal variables to the “Internal Variables” section of a Quagensia Strategy, then proceeds to adding logic to the “When Bar Updates” section, where the first action added is a “Set a Variable” Action. If you keep watching through the many minutes during which all the logic of the “When Bar Updates” section is created, you will see other examples of adding and editing “Set a Variable” Actions and using the internal variables whose values are set by them. Note that while this video is on Quagensia T Edition, all of the examples of creating, setting, and using internal variables are 100% applicable to Quagensia N Edition and only the specific Quagensia Functions differ between Quagensia N and T Editions. Note also that the video will not stop automatically at the end of these examples, but if you watch to the end of part of the video where the logic of the “When Bar Updates” section is created you can skip the rest of the video, which is on getting the Quagensia T Edition Strategy into TradeStation® and backtesting it.

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.