Support Board
Date/Time: Wed, 15 Jan 2025 20:56:24 +0000
1 trade pr day
View Count: 953
[2017-09-06 16:23:10] |
User222821 - Posts: 21 |
Hi I would like to write in acsil allowance one trade per day. i have found LastEntryDateTime in position data. but i can not find which value it returns. is there any other possibility how to allow trade only one per day? regards milan |
[2017-09-06 17:55:59] |
Sierra Chart Engineering - Posts: 104368 |
For information about working with Date-Time values, refer to: Working with the SCDateTime Variables and Values You could use this function on this data structure: s_ACSTradeStatistics::TotalTrades() To obtain this data structure, refer to: https://www.sierrachart.com/index.php?page=doc/ACSIL_Members_Functions.html#scGetTradeStatisticsForSymbol You can specify in the function call that you want the daily values. 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-09-06 17:57:54
|
[2017-09-06 18:17:24] |
User222821 - Posts: 21 |
hi can you give me an example how to call the day only or is there any example?
|
[2017-09-06 18:20:29] |
Sierra Chart Engineering - Posts: 104368 |
We are not understanding the question. This is what we recommend doing: You could use this function on this data structure:
s_ACSTradeStatistics::TotalTrades() To obtain this data structure, refer to: https://www.sierrachart.com/index.php?page=doc/ACSIL_Members_Functions.html#scGetTradeStatisticsForSymbol 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 |
[2017-09-06 18:30:05] |
User222821 - Posts: 21 |
ok I need the syntax as i understand i should write int TotalTrades sc.GetTradeStatisticsForSymbol(0,1, TotalTrades()); if (TotalTrades>0){freetobuy ==0}< or ? thanks in advance |
[2017-09-06 18:47:55] |
Sierra Chart Engineering - Posts: 104368 |
We added an example here: https://www.sierrachart.com/index.php?page=doc/ACSIL_Members_Functions.html#scGetTradeStatisticsForSymbol 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 |
To post a message in this thread, you need to log in with your Sierra Chart account: