Login Page - Create Account

Support Board


Date/Time: Wed, 12 Feb 2025 05:01:53 +0000



Post From: barstudydata.csv history length

[2020-09-30 20:08:57]
Sierra Chart Engineering - Posts: 104368
. What I am wanting is this file to contain a rolling 'x' number of days so it doesn't get too big.
You need to modify the study to do this:
How to Build an Advanced Custom Study from Source Code

Regarding this:

I have selected 'continuous futures contract - volume based rollover, back adjusted' in the chart advanced settings. What will happen to the barstudydata.csv file when the contract rolls over? Will the name of the file change to the forward contract and that one back fill 'x' days? Will the previous file still exist? What happens if the volume 'bounces' between 2 contracts for a few days? Does it just continue with the most recent contract or go back to the previous contract and write to the old csv file?

You have to manually change the symbol in the case of a continuous futures contract chart. It will not happen automatically. And refer to the documentation here:
Write Bar Data to File

Specifically:
In the case of when the symbol of the chart changes, unless you have set the File Path Input to a specific file name, the output file name will match the current chart symbol and a new file will be created if necessary. Anytime the symbol of the chart changes, or there is a full recalculation, the output file is fully rewritten with all of the data in the chart.

There is only ever one output file for a chart even when that chart is a Continuous Futures Contract chart.

Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2020-09-30 20:10:11