Login Page - Create Account

Support Board


Date/Time: Mon, 29 Apr 2024 15:19:03 +0000



Ques relate -> void GetTradeListEntry(unsigned int TradeIndex, s_ACSTrade& TradeEntry)

View Count: 839

[2017-06-09 23:29:25]
jizzary - Posts: 177
is there any API to grab the number of trades populating the trade table (either simulated or real trades)
in order to know so the valid range of TradeIndex

is there a way to develop such API that will provide the first trade (including its index)
that took place after certain (provided) date/time ?

reading all trades at study's startup time (SetDefaults block) in case of reading real trades -
may take much time as it will probabely start at first trade after account creation date

is there a way to read last trade and then roll backwards to previous trades one at a time ....


tnx
Date Time Of Last Edit: 2017-06-10 20:29:57
[2017-06-13 16:47:30]
Sierra Chart Engineering - Posts: 104368
Refer to:
http://www.sierrachart.com/index.php?page=doc/ACSILTrading.html#scGetTradeListSize


is there a way to read last trade and then roll backwards to previous trades one at a time ....
Yes, when specifying the TradeIndex, start at sc.GetTradeListSize - 1 and iterate to 0.
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
Date Time Of Last Edit: 2017-06-13 16:51:00

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

Login

Login Page - Create Account