Login Page - Create Account

Support Board


Date/Time: Tue, 22 Apr 2025 00:21:32 +0000



Post From: Converting From MetaTrader EA (Init, DeInit, OnTick) to Sierra Chart study?

[2025-02-18 19:02:49]
cmet - Posts: 690
Might be confused by what you mean by "how often the study is called".

This is how I understand it:

Once you add a study to the chart, it's being updated based on the requirements/parameters of the study.

Even though the default is 1 tick, using sc.UpdateAlways=1 forces updates continuously even if no ticks occur.

There is a setting at the chart level for this specifically called "Minimum Chart Update Interval in Milliseconds For ACSIL UpdateAlways".

You can find that in Chart Settings > Performance. You want this to at least be the interval you're using.

sc.UpdateIntervalInMilliseconds is the interval control.

Chart Update Interval in Milliseconds should at least be the interval you're using. This is in Global Settings > General.

sc.AutoLoop = 0 applies to the start/stop functionality.

Both of the examples I posted work as a study applied to the chart (one that is not updating at all) but update at 250 milliseconds continuously.

Probably not the best explanation but that's how I look at it.
Date Time Of Last Edit: 2025-02-18 19:06:35