Chart:...HighLow(3pm)

πŸ“¦
version 2.90 Β· 3 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– Chart::Clicker::Data::Series::HighLow β€” bestie edition ✨

okay so this is a page from the User Contributed Perl Documentation (section 3pm of the Perl manual, iykyk), and it's all about a lil data class that's giving very much "I hold your stock chart numbers for you". No cap. πŸ’…


πŸŽ€ NAME πŸŽ€

Chart::Clicker::Data::Series::HighLow β€” series data with extra attributes for High-Low charts. It's the glow-up version of your regular series, bestie. πŸ¦‹


🌸 VERSION 🌸

This is version 2.90. Periodt.


✨ SYNOPSIS ✨

here's the vibe, literally copy-paste it:

use Chart::Clicker::Data::Series::HighLow;

my @keys = ();
my @values = ();
my @highs = ();
my @lows = ();
my @opens = ();

my $series = Chart::Clicker::Data::Series::HighLow->new({
  keys    => \@keys,
  values  => \@values,
  highs   => \@highs,
  lows    => \@lows,
  opens   => \@opens
});

not you setting up five whole arrays before you even start 😭 iconic behavior honestly.


πŸ’œ DESCRIPTION πŸ’œ

Chart::Clicker::Data::Series::HighLow is an extension of the Series class, and the way it works is it stores three brand new variables for you, made specifically to feed the CandleStick renderer. πŸ•―οΈ

the general idea is this, look at her go:

--- <-- High
 |
 |
 -  <-- max of Open, Value
| |
| |
 -  <-- min of Open, Value
 |
 |
--- <-- Low

so you've got the high up top 🌈, the low down at the bottom, and then the middle two lines are tucked in between β€” one is the max of Open, Value and the other is the min of Open, Value. that's the whole candlestick situation. ate. πŸ”₯


πŸ’– ATTRIBUTES πŸ’–

⭐ highs

Set/Get the highs for this series.

⭐ lows

Set/Get the lows for this series.

⭐ opens

Set/Get the opens for this series.

set/get, set/get, set/get. she's consistent, she's reliable, she's the moment. πŸ‘‘


🌈 METHODS 🌈

πŸ’« add_to_highs

Adds a high to this series.

πŸ’« get_high ($index)

Get a high by it's index.

πŸ’« high_count

Gets the count of sizes in this series.

πŸ’« add_to_lows

Adds a high to this series.

πŸ’« get_low ($index)

Get a low by it's index.

πŸ’« low_count

Gets the count of lows in this series.

πŸ’« add_to_opens

Adds an open to this series.

πŸ’« get_open

Get an open by it's index.

πŸ’« open_count

Gets the count of opens in this series.

πŸ“Œ not me reading "get_open" and noticing it's the only getter up in here without a ($index) next to it while all its siblings have one. the documentation says what it says, bestie β€” I'm just the messenger 🫢

🌟 AUTHOR 🌟

Cory G Watson <gphat@cpan.org> β€” we stan. πŸ’


This software is copyright (c) 2016 by Cory G Watson.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

like... free software, same terms as Perl 5 itself, go wild, just don't be weird about it. πŸ’–


and that's the whole page, bestie! this one came to you from perl v5.36.0, dated 2022-10-14, under the manual name you already know and love β€” stay slay, go chart something pretty βœ¨πŸ’…πŸŽ€

πŸ“¦ where this page comes from