Giter VIP home page Giter VIP logo

candlesticks's People

Contributors

108yen avatar kadnium avatar r-mzy47 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

candlesticks's Issues

Indicators

Beautiful job.
This would be great if there was a possibility to show famous indicators like MA MACD and ...

No x-axis in the graph.

X-axis are usually for displaying the date of the candlestick, and your package is missing this property.
Screen Shot 2021-05-28 at 9 26 52 AM

Intervals choose

Is it possible to choose which graphic ranges we want to make available?

[Questions] Zoom and Reset

hey again, so I noticed that zooming on windows the zoom in is scroll down and zoom out is scroll up is that intended? and I have more general quest about what is the best way to rest the state of the chart for when I select a new instrument for charting, I get index errors when I just override my chart state, I tried adding a unique key to the constructor of the widget . I realize this might be more a flutter question, I am new to flutter :) I am just doing a prototype of my project which has a vue3+ webview2 frontend for potential refactor

[Feature] Ability to pass custom indictor data

Hey and thanks for sharing!
I wonder how difficult it would be to implement a way for users to pass extra data for drawing like a list of doubles which length matches the candles list. this will make it easy to create custom on chart indicators. In my use case I already have calculated the indicators I use in my backend so it would be great I could just reuse them. anyway if this is not in the scope or vison of your project please let me know thanks :)

Issue on price pointer indicator for mobile

I created a horizontal indicator to determine some levels

class HorizontalLineIndicator extends Indicator {
  HorizontalLineIndicator({
    required String title,
    required double value,
    Color? color,
  }) : super(
          name: '$title on $value',
          dependsOnNPrevCandles: 0,
          calculator: (index, candles) => [value],
          indicatorComponentsStyles: [
            IndicatorStyle(name: "ind", color: color ?? Colors.blue),
          ],
        );
}

This way I realized there are some mismatches between price marks.


Case: See the web app pointer price indicator. It marks almost 19400. This is correctly matching.

issue1


Case: See the mobile app pointer price indicator. It marks around 19378. Which is wrong and should indicate 19400 instead.

issue2


Case: See the mobile app pointer price indicator. The pointer price mark around 19400 is noticeably above the horizontal indicator around the value 19400.

issue3

Draw

Hello
is there is a way to draw on the chart like fib series lines
or lines, circles etc

Out of Bounds on Smaller Candles Sizes

If I make a smaller dataset, like by using this for loop, I get out of bounds issues with the grapher. This is on windows.

List<Candle> getCandles(){
  final List<Candle> output = [];
  final time = DateTime.now();
  for (int i = 0; i < 10; i++){
    output.add(Candle(open: 1700 + i*20, high: 1800 + i * 20 + 0.0000001, low: 1700 + i * 10-0.00011, close: 1800 + i * 10, volume: 1.0 * i, date: time.subtract(Duration(days: 1 * i))));
  }
  return output;
}

image

If I increase that for loop to 1000 or so it doesn't appear.

My current hack is to do this in the time_row.dart file.

//int candleNumber = (step + 1) ~/ 2 - 10 + index * step + -1;
int candleNumber = index;

Moving Averages

It would be very useful if you could include moving averages in the chart.

Draw line

Hey rmzy
Can you add an ability to draw a line,
so we can add moving average, or any other variable easily!
Thanks

Indicator cannot be imported

image

For some weird reason, I cannot import the Indicator class. Apparently, import 'package:candlesticks/candlesticks.dart'; is not enough.

What is wrong with this?

RangeError exception on Smaller Candles Sizes

Hi @r-mzy47,

I am having the same problem with [#3] in version 2.1.0.

======== Exception caught by widgets library =======================================================
The following RangeError was thrown building TimeRow(dirty, state: _TimeRowState#3ab16):
RangeError (index): Invalid value: Not in inclusive range 0..10: 13
My candlesticks data:
[
{
date: 2022-04-17 23:00:00.000,
high: 40444.68,
low: 40167.07,
open: 40441.43,
close: 40167.07,
volume: 0.31,
},
{
date: 2022-04-18 00:00:00.000,
high: 40248.44,
low: 40025.83,
open: 40139.87,
close: 40063.51,
volume: 0.31,
},
{
date: 2022-04-18 01:00:00.000,
high: 40115.37,
low: 39849.07,
open: 40074.19,
close: 40088.32,
volume: 0.3,
},
{
date: 2022-04-18 02:00:00.000,
high: 40416.11,
low: 40061.47,
open: 40070.36,
close: 40343.83,
volume: 0.31,
},
{
date: 2022-04-18 03:00:00.000,
high: 40421.44,
low: 40220.83,
open: 40370.33,
close: 40238.37,
volume: 0.3,
},
{
date: 2022-04-18 04:00:00.000,
high: 40259.17,
low: 40095.77,
open: 40237.88,
close: 40178.74,
volume: 0.32,
},
{
date: 2022-04-18 05:00:00.000,
high: 40301.75,
low: 39895.45,
open: 40180.5,
close: 39964.25,
volume: 0.3,
},
{
date: 2022-04-18 06:00:00.000,
high: 39960.45,
low: 39511.67,
open: 39958.12,
close: 39656.38,
volume: 0.29,
},
{
date: 2022-04-18 07:00:00.000,
high: 39732.64,
low: 39546.85,
open: 39636.84,
close: 39701.03,
volume: 0.3,
},
{
date: 2022-04-18 08:00:00.000,
high: 39792.9,
low: 39630.19,
open: 39681.94,
close: 39721.78,
volume: 0.27,
},
{
date: 2022-04-18 09:00:00.000,
high: 39912.2,
low: 39700.37,
open: 39706.27,
close: 39768.48,
volume: 0.25,
}
]

How do we style the candlesticks?

Can you please guide me to style the Default Candles . I was trying to be add a little padding around each of the candles. Can you please guide me to achieve this?

Draw arrows and horizontal lines in the chart

I would like to have up and down arrows for buy and sell signals and horizontal lines for resistance levels that I already have calculated.

Can you give me a hint on how to accomplish that?

ps: Thanks for making this package free. It will help me a lot.

Dynamic Indicator Color By Value

I want to customize the color of the indicator for specific candles. I couldn't find a solution for this. Is there a feature that enables this?
I tried adding values equal to the number of candles for IndicatorStyles, but it didn't work.

Hide default Volume bar?

I can't find any parameter which I could use to switch volume var off from the default widget.
My problem is that I have no volume data provided at all within API I want to use (forex pairs). And if I don't put volume data in the widget (vol is required field), it won't work.
Can it be done?
Thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.