Login Page - Create Account

Support Board


Date/Time: Sat, 28 Jun 2025 19:28:34 +0000



Post From: Logic for calculating an average of only specific bars

[2021-08-18 17:06:30]
BenjFlame - Posts: 338
Hi,
what's the general logic for calculating an average but only of bars that meet a special condition?
Say I want to calculate average range of only up bars (Close > Open).

I could create an intermediate subgraph with fabs(Open - Close), but won't there be gaps in the subgraph? How to handle this situation?