Skip to content

Custom Candlestick Colors does not seem to be working #229

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
MaheshPunna opened this issue Oct 24, 2021 · 4 comments · Fixed by #234
Closed

Custom Candlestick Colors does not seem to be working #229

MaheshPunna opened this issue Oct 24, 2021 · 4 comments · Fixed by #234

Comments

@MaheshPunna
Copy link

MaheshPunna commented Oct 24, 2021

Chart.Candlestick(
    stockData,
    Increasing = Line.init (Color = Color.fromString "cyan"),
    Decreasing = Line.init (Color = Color.fromString "gray")
)

The same behavior is observed for Chart.OHLC

Current Behavior:
image

Expected Behavior:
image

@neilyoung2008
Copy link

var candle_Chart = Chart2D.Chart.Candlestick<int, int, int, int, DateTime, string>
(
open : open,
high : high,
low : low,
close: close,
X : date,
Name: "K",
IncreasingColor : upcolor,
DecreasingColor : dncolor,
//Increasing :FinanceMarker.init(MarkerColor:Color.fromString("black"), LineColor:upcolor, LineWidth:1, LineDash :StyleParam.DrawingStyle.Solid),
//Decreasing :FinanceMarker.init(MarkerColor:dncolor, LineColor:dncolor, LineWidth:1, LineDash :StyleParam.DrawingStyle.Solid),
ShowLegend : false,
Line : Line.init
(
//Colorscale:colorscale,
//Color : Color.fromColorScaleValues(zd_colors),
Width : 0.5
),

                                                UseDefaults : false
                            );

@neilyoung2008
Copy link

//Increasing :FinanceMarker.init(MarkerColor:Color.fromString("black"), LineColor:upcolor, LineWidth:1, LineDash :StyleParam.DrawingStyle.Solid),
//Decreasing :FinanceMarker.init(MarkerColor:dncolor, LineColor:dncolor, LineWidth:1, LineDash :StyleParam.DrawingStyle.Solid),

The param : Increasing /Decreasing isnot work.

@neilyoung2008
Copy link

@kMutagene

@kMutagene
Copy link
Collaborator

@neilyoung2008 please open a new issue with a well formatted reproducible code example, as well as information about the version, language, and os you are using.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants