Login Page - Create Account

Support Board


Date/Time: Wed, 12 Mar 2025 11:30:55 +0000



Post From: Write Bar Study with Numbers Bars (Bar Time Duration always zero)

[2024-12-23 16:15:15]
DHTrading - Posts: 17
Hey John,

Apologies for my absence. I've been out of town. Here's a sample of the data in a more concise format.

The BarTime column is from numbers bars calculated. The duration is from Bar Time Duration study

(test) C:\Trading\MarketData\CL>python prettyprint.py CL_1TickFP_10Days.csv BarTime
Date | Time | BarTime
2024-12-15 | 17:00:00.000000 | 0
2024-12-15 | 17:00:00.002000 | 0
2024-12-15 | 17:00:00.002001 | 0
2024-12-15 | 17:00:00.002002 | 0

(test) C:\Trading\MarketData\CL>python prettyprint.py CL_1TickFP_10Days.csv Duration
Date | Time | Duration
2024-12-15 | 17:00:00.000000 | 0.000000023148148287077674
2024-12-15 | 17:00:00.002000 | 1.1574074164355519e-11
2024-12-15 | 17:00:00.002001 | 1.1574074164355519e-11
2024-12-15 | 17:00:00.002002 | 0.000004849513970839325

It's not a big deal. I can hide the BarTime and add the Duration study to include that column. I just wasn't sure if it was a bug or I'm doing it wrong.

Probably the latter.
Date Time Of Last Edit: 2024-12-23 16:17:02