Login Page - Create Account

Support Board


Date/Time: Wed, 12 Feb 2025 09:53:07 +0000



Post From: SumAllChartsBar SumChartsFromList questions

[2020-10-14 05:09:53]
jomo88 - Posts: 47
I understand now...

1) None of these studies fill sc.Subgraph[9] or sc.Subgraph[10], the BidVol and AskVol. Also, sc.CalculateOHLCAverages(DataIndex) was handling the 'Avg' subgraphs calculations.

2) SC_LAST is equal to 3 in sc.Subgraph[3]

One last question - lines 441 to 451 in Studies6.cpp, aren't these lines redundant? Wouldn't the high already be the max of the OHLC? Thanks

sc.Subgraph[ SC_HIGH][DataIndex] = max(sc.Subgraph[SC_OPEN][DataIndex],
max(sc.Subgraph[SC_HIGH][DataIndex],
max(sc.Subgraph[SC_LOW][DataIndex],sc.Subgraph[SC_LAST][DataIndex])
)
);

sc.Subgraph[SC_LOW][DataIndex] = min(sc.Subgraph[SC_OPEN][DataIndex],
min(sc.Subgraph[SC_HIGH][DataIndex],
min(sc.Subgraph[SC_LOW][DataIndex],sc.Subgraph[SC_LAST][DataIndex])
)
);