Login Page - Create Account

Support Board


Date/Time: Wed, 02 Jul 2025 15:16:46 +0000



Post From: sc.BaseData[SC_ASK_PRICE] instead of sc.BaseData[SC_LAST]?

[2020-05-27 05:56:29]
Flipper - Posts: 65
Are you sure you have bid prices and you have sc.MaintainAdditionalChartDataArrays to 1 in the sc.SetDefaults code block?

sc.BaseData[SC_ASK_PRICE]: This array contains the ask prices at the time of the last trade for each bar. By default, the Bid and Ask prices are only recorded when there is a trade.

When using this array in a study function, it is necessary to set sc.MaintainAdditionalChartDataArrays to 1 in the sc.SetDefaults code block.

For there to be Ask prices in this array, Sierra Chart must be set to a Tick by tick Data Configuration, the Intraday data file for the chart must contain tick by tick data, and contain a Bid and Ask prices. This is not supported with all Data and Trading services.

Because this should work if the above bolded part is true.
if (sc.CrossOver(sc.BaseData[SC_BID_PRICE], SimpMovAvg) == CROSS_FROM_BOTTOM)

ACSIL Interface Members - Variables and Arrays: sc.BaseDataIn[][] / sc.BaseData[][]