Now the volume values depends on the previous value and outliers probability and looks more realistic. The generator algorithm creates a series of candles better for difficult trends, include differ outliers for upper and lower shadows of candles and its bodies. Also, bugs with negative numbers in series should no longer appear.
Example of the long-time series with realistic dispersion of volume values and differ trends:
ZigZagFilter()
was changed to Pandas Dataframe instead of dict.WARNING! Python supported version was changed to 3.9.
Now you can draw an additional custom lines and markers on main chart with candles (using RenderBokeh()
method). You can specify trend directions with simple words: up
, down
, no
or chars: u
, d
, n
, when using --split-trend
key (in addition to the existing ability to identify trend with symbols /\-
), e.g. --split-trend=up-down-no-up
, --split-trend=u-d-n-u
etc. Also, you can choose themes for charts drawn by RenderBokeh()
method with the new parameter darkTheme
(if True
then using dark theme, else light theme).
Light style example (with some custom markers and new average line):
Dark style example (with some custom markers):
RenderBokeh()
method was added layouts
parameter. You can add new Bokeh Chart-objects on the Main Chart with that parameter. Also, darkTheme
parameter was added. If it True
, then will be used dark theme, False
(by default) mean light theme. Also, you can manipulate with chart and adding lines or markers to the main chart. Use markers
and lines
parameters for it. markers
is a Pandas Dataframe with custom series, where additional markers will place on main series. None
by default. One marker is a custom symbol, e.g. ×, ↓ or ↑ or anyone else. Marker data must contain at least two columns. There are datetime
with date and time and some markers columns (markersUpper
, markersCenter
or markersLower
). Length of marker dataframes must be equal to the length of main candle series. lines
is a list with custom series, where additional chart-lines will place on main series. None
by default. Line data must contain at least two columns. There are datetime
with date and time and custom_line_name
with y-coordinates. Length of the chart-line dataframes must be equal to the length of main candle series.up
, down
, no
or chars: u
, d
, n
for the --split-trend
key, in addition to the existing ability to set up of the trend with symbols /\-
. To separate words or chars use the hyphen symbol, e.g. --split-trend=up-down-no-up
, --split-trend=u-d-n-u
etc.PriceGenerator
was added.--split-trend
and --split-count
. These keys affect the appearance of the trend and the number of candles in each trend.
--split-trend
key shows trends movements, e.g. --split-trend=/\-
means that generated candles has uptrend at first part, next downtrend and then no trend.--split-count
key set count of candles of difference periods, e.g. --split-count 5 10 15
means that generated candles has 3 trends with 5, 10 and 15 candles in chain.pandas_ta
library:
--horizon
when loading from a file is used to specify loading of the last N = horizon candles.--precision
key is used to specify the signs after comma.--ticker
, --timeframe
, --start
, --horizon
, --max-close
, --min-close
, --init-close
, --max-outlier
, --max-body
, --max-volume
, --up-candles-prob
, --outliers-prob
, --trend-deviation
. That keys are overriding default parameters.RenderGoogle()
and a --render-google
key that can draw not interactive Google Candlestick Chart.README.md
(english) and README_RU.md
(russian).The first version of PriceGenerator library allows you to:
./media/test.csv
);./media/index.html.md
);./media/index.html
);./media/index.html.png
).Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Опубликовать ( 0 )