Login Page - Create Account

Support Board


Date/Time: Tue, 26 Nov 2024 13:21:11 +0000



[User Discussion] Do historical bars load tick by tick OR bar by bar ?

View Count: 1012

[2014-04-28 20:34:09]
Zosimus - Posts: 345
I am running a study that has to run certain calculations every time new data arrives (Some would call it every tick and some would call it every trade). If the calculations are run on a bar close basis they are not correct.

My question is do the historical bars load on a tick by tick (trade by trade) basis or on a bar by bar basis ?
[2014-05-12 10:19:42]
Zosimus - Posts: 345
Ok, the answer is that when a study is initially calculated if AutoLooping is activated ( sc.AutoLoop = 1) then the study function is called ONCE PER EACH HISTORICAL BAR.

Therefore in my case I will have to use a Replay if I want the study to yield correct results for the historical bars.

This is documented here:
http://www.sierrachart.com/index.php?l=doc/doc_ACS_ArraysAndLooping.html#autolooping
Date Time Of Last Edit: 2014-05-12 10:21:57

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

Login

Login Page - Create Account