Skip to content

Financial examples for SMA and Bollinger don't work #647

@Saklut

Description

@Saklut

The Cookbook examples PlotTypes: Finance - Simple Moving Average (SMA) and PlotTypes: Finance - Bollinger Bands on the 4.0.44 version don't plot the lines for the indicators.

Runnnig it from Visual studio shows en exception on the output window:

Excepción producida: 'System.OverflowException' en System.Drawing.dll
OverflowException plotting: PlottableScatter (8 day SMA) with 75 points

The exception comes from this line on PlottableScatter.cs:
gfx.DrawLines(penLine, points);

The points array have values like this: {X = 25.7 Y = NaN} May this be the problem?

It works ok on version 4.0.40


By the way, this is a great project, congratulations and thank you very much for your work

Metadata

Metadata

Assignees

No one assigned

    Labels

    BUGunexpected behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions