line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Alien::TALib; |
2
|
2
|
|
|
2
|
|
445658
|
use strict; |
|
2
|
|
|
|
|
15
|
|
|
2
|
|
|
|
|
56
|
|
3
|
2
|
|
|
2
|
|
13
|
use warnings; |
|
2
|
|
|
|
|
15
|
|
|
2
|
|
|
|
|
54
|
|
4
|
2
|
|
|
2
|
|
10
|
use parent 'Alien::Base'; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
14
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
our $VERSION = '0.16'; |
7
|
|
|
|
|
|
|
$VERSION = eval $VERSION; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
1; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
__END__ |
12
|
|
|
|
|
|
|
#### COPYRIGHT: Vikas N Kumar. All Rights Reserved |
13
|
|
|
|
|
|
|
#### AUTHOR: Vikas N Kumar <vikas@cpan.org> |
14
|
|
|
|
|
|
|
#### DATE: 17th Dec 2013 |
15
|
|
|
|
|
|
|
#### DATE: 26th Dec 2022 |
16
|
|
|
|
|
|
|
#### LICENSE: Refer LICENSE file. |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=head1 NAME |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
Alien::TALib |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 SYNOPSIS |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
Alien::TALib is a perl module that enables the installation of the technical |
25
|
|
|
|
|
|
|
analysis library TA-lib from "L<http://ta-lib.org>" on the system and easy |
26
|
|
|
|
|
|
|
access by other perl modules in the methodology cited by C<Alien::Base>. |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
You can use it in the C<Build.PL> file if you're using C<Module::Build> or |
29
|
|
|
|
|
|
|
C<Makefile.PL> file if you're using ExtUtils::MakeMaker. |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
my $talib = Alien::TALib->new; |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
my $build = Module::Build->new( |
34
|
|
|
|
|
|
|
... |
35
|
|
|
|
|
|
|
extra_compiler_flags => $talib->cflags(), |
36
|
|
|
|
|
|
|
extra_linker_flags => $talib->libs(), |
37
|
|
|
|
|
|
|
... |
38
|
|
|
|
|
|
|
); |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 VERSION |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
0.16 |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=head1 WARNING |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
This module is not supported on Windows unless running under Cygwin or MSYS. |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
We are working to fix this soon. |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 METHODS |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=over |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=item B<cflags> |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
This method provides the compiler flags needed to use the library on the system. |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=item B<libs> |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
This method provides the linker flags needed to use the library on the system. |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=back |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
=head1 SEE ALSO |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=over |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=item C<Alien::Base> |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
=item C<Alien::Build> |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
=item C<PDL::Finance::TA> |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=back |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
=head1 AUTHORS |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
Vikas N Kumar <vikas@cpan.org> |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
=head1 REPOSITORY |
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
L<https://github.com/vikasnkumar/Alien-TALib.git> |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=head1 COPYRIGHT |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
Copyright (C) 2013-2022. Vikas N Kumar <vikas@cpan.org>. All Rights Reserved. |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
=head1 LICENSE |
90
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
This is free software. YOu can redistribute it or modify it under the terms of |
92
|
|
|
|
|
|
|
Perl itself. |