Candlestick rendering demo. Demonstrates candle rendering and up and down day coloring.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Make sure you apt-get update before applying this. | |
package { "language-pack-en": | |
ensure => latest | |
} | |
package { "tzdata": | |
ensure => latest | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exec { "mkswap": | |
command => "dd if=/dev/zero of=/swap bs=1024 count=$((1226*1024)); mkswap /var/swapfile", | |
creates => "/var/swapfile" | |
} | |
file { "/var/swapfile": | |
ensure => present, | |
mode => 600, | |
require => Exec["mkswap"] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package "language-pack-en" do | |
action :install | |
end | |
package "tzdata" do | |
action :install | |
end | |
link "/etc/localtime" do | |
to "/usr/share/zoneinfo/Australia/Melbourne" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
execute "mkswap" do | |
command "dd if=/dev/zero of=/var/swapfile bs=1024 count=$((1226*1024)); mkswap /var/swapfile" | |
creates "/var/swapfile" | |
umask 0077 | |
action :run | |
end | |
mount "none" do | |
action :enable | |
device "/var/swapfile" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
weekday = (function() { | |
// Returns the weekday number for the given date relative to January 1, 1970. | |
function weekday(date) { | |
var weekdays = weekdayOfYear(date), | |
year = date.getFullYear(); | |
while (--year >= 1970) weekdays += weekdaysInYear(year); | |
return weekdays; | |
} |
Volume rendering demo. Demonstrates volume rendering and up and down day coloring.
Plots rendering demo. A sample of what can be created with the available plot types.
- Candlestick
- Volume
- Percentage axis
- Simple and Exponential Moving Averages
- Zooming
- Indicator combinations Interactive trendlines
Open High Low Close (ohlc) rendering demo. Demonstrates ohlc rendering and up and down day coloring.
Closing price line rendering demo. Demonstrates line rendering.
OlderNewer