Support Board
Date/Time: Mon, 20 Jan 2025 08:25:21 +0000
[Programming Help] - incorrect indexing
View Count: 748
[2018-05-21 07:22:53] |
User30743 - Posts: 365 |
hello, i have a question on how to set the charts to load correct numbers of indexes. i have written an acsil study that uses arrays of another chart (tick nyse) - i understand, that in order to make the backtest result correct, i need to have the same number of indexes on both charts YM (as main chart and tick nyse as the chart i take the arrays from). but what i dont know is how to actually make it happened. when i load lets say 60 days to test it, the staring index on YM is different from the starting index in TickNyse. even though i have set the same RTH for both the charts, and linked the charts in advanced setting so that they should load the same number days, start at the same time etc.. and thus having the same number of indexes, it still doesn´t happen. therefore i cannot proceed a correct backtest.. what am i doing wrong? can you please tell me how to solve this issue? |
linking.png / V - Attached On 2018-05-21 07:22:19 UTC - Size: 49.21 KB - 272 views incorrect indexes.png / V - Attached On 2018-05-21 07:22:28 UTC - Size: 121.1 KB - 266 views |
[2018-05-23 00:27:54] |
Sierra Chart Engineering - Posts: 104368 |
Make sure the Chart Settings are the same between both of those charts and reload both charts with Chart >> Reload and Recalculate. You are not going about this in the proper way. To access data from another chart, refer to this page: Referencing Other Time Frames and Symbols When Using the ACSIL You should never be relying on the indexes for the chart arrays from two different charts to be matching with each other. 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 |
[2018-05-23 12:03:22] |
User30743 - Posts: 365 |
yeah, this is something i have been trying to solve for quite some time and still i didnt get to the point where the indexes from other timeframe would be set correctly. still there are some mistakes..
|
[2018-05-23 18:24:39] |
Sierra Chart Engineering - Posts: 104368 |
This particular section explains this: Referencing Other Time Frames and Symbols When Using the ACSIL: Accessing Correct Array Indexes in Other Chart Arrays 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 |
[2018-06-03 12:32:49] |
User30743 - Posts: 365 |
well, ok, i must be either a complete idiot, or there is something wrong in the functions, or it is all much more complicated and complex that what is described there. because i got always some sort of mistake no matter how much i try to make it work according to what is described there. simple example i have tick nyse chart and i need to load its arrays into the the YM chart, and put an entry according to a value at an appropriate index. but sometimes there are holidays at NYSE and tick nyse has no data, while futures has data.. how will i set the propper indexing arrays? i mean, i suppose it should skip these no data periods when there are holidays and starts continuing backtest after at the propper index, but it doesnt. it just messes up the indexes when it hits theses days.. Date Time Of Last Edit: 2018-06-03 12:42:50
|
array indexing - scGetChartBaseData doest return correct re.png / V - Attached On 2018-06-03 12:32:44 UTC - Size: 111.66 KB - 255 views |
[2018-06-03 18:56:18] |
User30743 - Posts: 365 |
meybe i am really crazy but now it seems to finally work with the overlay study.... there is something mysterious anyway..
Date Time Of Last Edit: 2018-06-03 18:56:35
|
To post a message in this thread, you need to log in with your Sierra Chart account: