Package: octave-financial / 0.5.3-5

compile-against-octave-9.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Description: Fix syntax for compiling against Octave 9
Author: Rafael Laboissière <[email protected]>
Bug: https://savannah.gnu.org/bugs/?65520
Forwarded: not-needed
Last-Update: 2024-05-29

--- octave-financial-0.5.3.orig/inst/bolling.m
    octave-financial-0.5.3/inst/bolling.m
@@ -61,7  61,7 @@ function [varargout] = bolling (asset, s
     varargout{1} = avg;
   else
     x = 1:length (avg);
-    h = plot (x, asset, x, avg, x, avg .  [-s, s], "-r");
     h = plot (x, asset, x, avg, x, avg   [-s, s], "-r");
     cls = get (gca, "colororder");
     set (h(4), "color", cls(3,:));
   endif
--- octave-financial-0.5.3.orig/inst/candle.m
    octave-financial-0.5.3/inst/candle.m
@@ -124,8  124,8 @@ function candle (varargin)
   endif                                            # end of nargin >= 5 && ischar (color) && size (color, 1) == 1 if statement
 
   x = 1 : num_points;
-  wicks = HighPrices .- LowPrices;
-  body = ClosePrices .- OpenPrices;
   wicks = HighPrices - LowPrices;
   body = ClosePrices - OpenPrices;
   up_down = sign (body);
   scaling = 10 / num_points;
   body_width = max(20 * scaling, 1);