Maximum Bars Look Back (The Drop-Down List in the “Strategy Details” Section of Quagensia N Edition Strategies)

The “Maximum Bars Look Back” drop-down list in a Quagensia N Edition Strategy’s “Strategy Details” section defaults to “Infinity” instead of “256” to protect users from hard-to-debug problems.

The value of the “Maximum Bars Look Back” drop-down list field in a Quagensia N Edition Strategy’s “Strategy Details” section determines the default memory performance of custom data series, which are called “Editable Time Series” in Quagensia N Edition, and also can be a potential source of hard-to-debug problems if the “256 (Reduces Memory Consumption But Can Cause Hard-To-Debug Problems)” option of this drop-down list is selected for a strategy.

When using “256 (Reduces Memory Consumption But Can Cause Hard-To-Debug Problems)”, only the last 256 values of an Editable Time Series will be stored in memory and be able to be referenced. This reduces memory consumption when using Editable Time Series.

Strategies that need access to older values can use “Infinite” to allow full access to all the data points of a Quagensia N Edition Strategy’s Editable Time Series.

Note that data series that hold bar data (such as price bars, with open, high, low, and close values) as well as data series that hold indicator plot values always use “Infinite” regardless of your choice for the MaximumBarsLookBack property of your strategy, as stated in the MaximumBarsLookBack help page of the official NinjaTrader® help documentation. Since many other data series in a NinjaScript® strategy already use “Infinite” regardless of your choice for the value of the “Maximum Bars Look Back” drop-down list field in a Quagensia N Edition Strategy’s “Strategy Details” section, and since we at Quagensia are aware of two potentially hard-to-debug problems that Quagensia N Edition users may encounter if they set this drop-down list’s value to “256 (Reduces Memory Consumption But Can Cause Hard-To-Debug Problems)”, the default value of this drop-down list is “Infinity”, and the name of the “256” choice in this drop-down list is “256 (Reduces Memory Consumption But Can Cause Hard-To-Debug Problems)” to give users a heads up that the “256” option is not trouble-free.

We at Quagensia are aware of the following two potentially hard-to-debug problems that Quagensia N Edition users may encounter if they set this drop-down list’s value to “256 (Reduces Memory Consumption But Can Cause Hard-To-Debug Problems)”:

  1. Plotting an indicator that uses an Editable Time Series as its input (such as is done in the technique of plotting a 1-period Simple Moving Average (SMA) of an Editable Time Series rather than plotting the Editable Time Series itself so that the Editable Time Series can be plotted on a chart panel other than the default plot panel) may plot the most recent 256 values correctly but then copy the plot of those most recent 256 values onto the 256 values plotted prior to the most recent 256 values and repeat this pattern of the most recent 256 values being plotted in 256-bar blocks going back to even older bars, with the net effect being a 256-point repeating pattern, not the actual plot on the bars older than the most recent 256 bars.
  2. Attempting to access a data point of an Editable Time Series older than the most recent 256 points may cause an error to occur. If an Editable Time Series is plotted directly, this error may not occur, but if an Editable Time Series is either not plotted or if its “plot” is actually a plot of a 1-period Simple Moving Average (SMA) indicator that is meant to represent what the plot of the Editable Time Series would look like, then this error is likely to occur.

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.