Login Page - Create Account

Support Board


Date/Time: Thu, 25 Apr 2024 13:35:38 +0000



[Programming Help] - Write Bar And Study Data To File at Bar Close

View Count: 951

[2019-02-08 18:05:31]
User942837 - Posts: 108
I need to be able to have new bar data written when bar is closed rather than when the next bar opens.

Can there be an option for the study please to save on close?

I think that this has to be passed as a parameter to sc.WriteBarAndStudyDataToFile(sc.UpdateStartIndex, OutputPathAndFileName, IncludeHiddenStudies.GetYesNo(), IncludeHiddenSubgraphs.GetYesNo());

which is an internal sierra chart function with no access to its code.

Thank you
Date Time Of Last Edit: 2019-02-08 19:17:40
[2019-02-08 19:57:24]
Sierra Chart Engineering - Posts: 104368
You just need to write your own study function that does this. You cannot rely on us for this. That is definitive.
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
[2019-02-08 20:15:04]
User942837 - Posts: 108
I tried to amend WriteBarDataToFile which has the code available in Studies6.cpp.

if (sc.GetBarHasClosedStatus(Index) != BHCS_BAR_HAS_CLOSED)
continue;      // write on close

The comment write on close is not true because it doesn't write on close but on next open!

All I am using sierra for is to export to a file. And then get the signals externally. Am I asking too much from sierra to have an option for a study to save on bar close?

I am ready to pay for this if u can do it please.

Thank you
Date Time Of Last Edit: 2019-02-08 20:35:34

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account