Support Board
Date/Time: Sat, 10 May 2025 21:44:58 +0000
Post From: sc.NumberOfTrades /Message.Format() - strange behavior
[2016-01-18 21:29:25] |
User754985 - Posts: 109 |
1. Since i get messages to the log, then obviously sc.NumberOfTrades does evaluate to 48. Right? Why would it print 0, immediately after being equal to 48 - that is the question! 2,3. My assumption was that - similar to other sc.BaseData[] - NumberOfTrades values do exist for each bar on a chart. With Autoloop=1, when I load the chart, the study is called automatically on each bar..or is it not? If the NumberofTrades values are non-existent - this would explain it... but then - how would (1) ever evaluate to 48?? On a chart, you can see that T changes by 4 every 5 sec; and so a 1min chart contains 48 "Trades". |