Additionally, I went ahead and did an array the hard way by plugging in the values by hand in the format that you provided in your example:
my @data_points = ( [ 18.25, 18, 18.01 ], # high, low, close
[ 18.05, 17.81, 18.02 ],
[ 17.92, 17.73, 17.85 ],
[ 17.85, 17.59, 17.84 ],
[ 17.6, 17.37, 17.6 ],
[ 17.52, 17.41, 17.51 ],
[ 17.59, 17.45, 17.5 ],
[ 17.74, 17.54, 17.54 ],
[ 17.85, 17.6, 17.77 ],
[ 17.76, 17.36, 17.67 ],
[ 17.62, 17.29, 17.44 ],
[ 17.68, 17.37, 17.58 ],
[ 17.78, 17.2, 17.74 ],
[ 17.46, 17.1, 17.33 ], );
and I got this message:
Can't locate object method "query" via package "0.336428571428572" (perhaps you forgot to load "0.336428571428572"?) at C:\My Documents\Stockmonkey\
atr.pl line 902.
# choose one:
$atr->insert( @data_points );
# $atr->insert( $_ ) for @data_points;
my $atr = $atr->query;
line: 902 if( defined( my $q = $atr->query ) ) { print "ATR: $q.\n"; } else { print "ATR: n/a.\n"; }
#
Best regards,