Login Page - Create Account

Support Board


Date/Time: Thu, 13 Mar 2025 22:38:17 +0000



[Programming Help] - ACSIL: how to know if the latest trade was at bid or ask?

View Count: 501

[2022-06-05 09:06:48]
BenjFlame - Posts: 335
Hi,
what's the simplest way to know if the last trade was at bid or ask?
[2022-06-05 10:21:49]
User431178 - Posts: 613
In no particular order.

1) Open a 1-trade chart via ACSIL and check for ask of bid volume at last index.
ACSIL Interface Members - Functions: sc.OpenChartOrGetChartReference()

2) Use sc.GetTimeAndSales and get the last trade in the array.
ACSIL Interface Members - Functions: sc.GetTimeAndSales()

3) Use sc.ReadIntradayFileRecordAtIndex and get the intraday record for the most recent trade.
ACSIL Interface Members - Functions: sc.ReadIntradayFileRecordAtIndex()

Either of 2 or 3 would be my choice.
[2022-06-05 10:31:24]
BenjFlame - Posts: 335
Thank you for your answer.
If I use the time and sales solution, does it require the entire study to be on manual looping?
Or can I leave it on autoloop, but use a loop just for timesandsales data?
[2022-06-05 11:08:59]
User431178 - Posts: 613
Or can I leave it on autoloop, but use a loop just for timesandsales data?
Yes this is no problem

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

Login

Login Page - Create Account