Login Page - Create Account

Support Board


Date/Time: Sat, 23 Nov 2024 20:10:56 +0000



Post From: Can't Access Renko Bar Data that is in Chart #2 from Chart #1 in Chartbook.

[2024-08-06 10:25:26]
User431178 - Posts: 541
float RenkoSecOpen2 = RenkoSecOpenArray[sc.ArraySize - 2];

if you want to ghet the second last element from the other chart, you need to use
RenkoSecOpenArray.GetArraySize() - 2
not
sc.ArraySize - 2

sc.ArraySize applies only to the chart you are working from.

Also, Renko open and close are stored in SC_RENKO_OPEN and SC_RENKO_CLOSE