Login Page - Create Account

Support Board


Date/Time: Fri, 19 Apr 2024 13:48:52 +0000



ACSIL - Access last "N" trades

View Count: 1068

[2014-03-04 00:52:19]
ejtrader - Posts: 688
SC Team - at present to access last "N" trades( N <= 1000 ) - we can process them using T&S records. But this works only during realtime. Is there any possibility of accessing the last "N" trades even for historical data irrespective of the chart type. Technically they are likely to be part of any number of bars(>=1) depending on the bar type used. Wanted to access this information only when a specific condition is met rather than using "rolling" mode to constantly calculate this data to avoid excessive resource usage. I can think of using another 1 tick chart for this but wanted to avoid using second chart if possible.

Any internal arrays can be used for this or other methods?

Thanks
Date Time Of Last Edit: 2014-03-07 17:41:14
[2014-03-07 17:38:10]
ejtrader - Posts: 688
SC Team - Any hints you can think of related to this?

Thanks
[2014-03-08 06:15:46]
crazybears - Posts: 314
Hi

maybe i misunderstood but you can try use
https://www.sierrachart.com/index.php?l=doc/doc_ACSIL_Members_Variables_And_Arrays.html#scPersistVars
with sc.NumberOfTrades[]

each time N >= your limit then N =0;
[2014-03-08 07:15:49]
ejtrader - Posts: 688
crazybears - Thanks for your reply. This would be "rolling" mode to account for last "N" trades. this rolling mode is something wanted to avoid if possible. If there are no other alternatives to access this information for the last "N" trades on-demand basis - I would find alternative ways to do it ( rolling mode or using secondary 1 tick series - worst case ). Mainly trying to access last "N" trades - when there is a need to access them both realtime(RT can be done using T&S records) and historically ( don't know if any internal arrays can be used for this purpose similar to pullback information).

Thanks
Date Time Of Last Edit: 2014-03-08 17:54:14

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

Login

Login Page - Create Account