r-mzy47 / candlesticks Goto Github PK
View Code? Open in Web Editor NEWLicense: BSD 3-Clause "New" or "Revised" License
License: BSD 3-Clause "New" or "Revised" License
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
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.
Case: See the mobile app pointer price indicator. It marks around 19378. Which is wrong and should indicate 19400 instead.
Case: See the mobile app pointer price indicator. The pointer price mark around 19400 is noticeably above the horizontal indicator around the value 19400.
Hello. thank to a nice chart. Background of chart does't work correctly when light theme is active.
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,
}
]
It would be very useful if you could include moving averages in the chart.
I want to show the animated chart on realtime data changes
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?
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.
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
Beautiful job.
This would be great if there was a possibility to show famous indicators like MA MACD and ...
Hey rmzy
Can you add an ability to draw a line,
so we can add moving average, or any other variable easily!
Thanks
Is it possible to choose which graphic ranges we want to make available?
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 :)
Could you make it possible to effect on candlesticks widget from the outside like changing colors and styles, adding indicators, min and max scale factor.
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;
}
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;
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.
Hello
is there is a way to draw on the chart like fib series lines
or lines, circles etc
I have added the ability to draw annotations for candle sticks in my fork of this project (https://github.com/MohiuddinM/candlesticks). Can you please take a look and decide if that is optimal and whether it can be pulled into the main repository.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.