Skip to content
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

Merge changes from rd-mg #62

Open
wants to merge 76 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
d838d87
Update README.md
rd-mg Jun 30, 2022
d01fb1a
Update README.md
rd-mg Jun 30, 2022
5153b7d
LRSI computes now as tradingview
Jul 20, 2022
e06cafb
Added uptrend.py and Uptrend definitions as duplicated from crossovers
Jul 20, 2022
4efae60
Uptrend signal working
Jul 21, 2022
fc6ec91
Readme and config .md updated
Jul 21, 2022
b97c965
Readme and config .md updated
Jul 21, 2022
78eb8da
notification.py fix list out of index ['values']
Jul 22, 2022
d8d323d
notification.py fix list out of index ['values'] line 696
Jul 22, 2022
ca46fac
Merge pull request #1 from rd-mg/uptrend
rd-mg Jul 22, 2022
95e63b4
readme updated
Jul 27, 2022
d30b45b
macd_cross macdhist added
Nov 2, 2022
0cf79fc
ROC added, bbp middle band remove
Nov 9, 2022
9473704
ROC added
Nov 9, 2022
b3e7dc4
add roc to defaults
Nov 9, 2022
86fd10d
bbp mid_band needed
Nov 9, 2022
c3c4efe
NATR 14 added
Nov 9, 2022
d65aead
natr added
Nov 9, 2022
682a97b
natr init added
Nov 9, 2022
31e0321
typo
Nov 9, 2022
59cb356
added bbwidth to bollinger bands method
Nov 9, 2022
3e45f47
add.
Nov 9, 2022
c44d2df
bbwidth formula changed
Nov 9, 2022
cdaa12c
setCopywarning solution
Nov 9, 2022
7cfff14
bbp origanl method returned warning still happends
Nov 9, 2022
1f01c4c
aded hot cold previous to add informants
Nov 10, 2022
fc7f8a4
informants added to messages
Nov 10, 2022
8261e37
dataframe return
Nov 10, 2022
d9f4d29
change natr to indicators
Nov 10, 2022
a74b061
natr
Nov 10, 2022
0797ac2
natr moved
Nov 10, 2022
7594971
changed roc bb to indicators
Nov 10, 2022
47e739a
Readme mod
Nov 10, 2022
8d5d8f6
pandas-ta and ifish
Nov 14, 2022
a4a8758
ifish added updated
Nov 15, 2022
65d7929
Stoch_rsi changed to pandas-ta
Nov 15, 2022
d0fb8f2
stochrsi_cross changed to pandas-ta
Nov 15, 2022
52d442d
default max_periods changed to 24
Nov 15, 2022
d78b535
max_periods changed to 50
Nov 15, 2022
481b1ce
parameters updated
Nov 15, 2022
96762b0
updated ifish coldtresh
Nov 15, 2022
9e2f660
print commented
Nov 15, 2022
310308a
bbp warning solved
Nov 15, 2022
07a726c
ifish smooth 9
Nov 15, 2022
7a95cae
wma length 9
Nov 15, 2022
cc4f351
updated periods
Nov 16, 2022
1ef325d
updated periods
Nov 16, 2022
39721bd
indices error
Nov 16, 2022
68d5adf
indicators conditions updated
Nov 16, 2022
b1154f7
condition updated
Nov 16, 2022
599af5d
parameters updated
Nov 16, 2022
626887b
fix: app/requirements-step-1.txt to reduce vulnerabilities
snyk-bot Nov 18, 2022
81b5a15
iiv volume compute reformulated
Nov 19, 2022
6849cec
change to close to detect pump dump
Nov 19, 2022
73852a1
condition mod
Nov 19, 2022
399556d
fix
Nov 19, 2022
c3c1f7d
IIV returned to original code, IIP created
Nov 21, 2022
7159c5a
iip indicator added
Nov 21, 2022
ed42339
compute modified
Nov 25, 2022
0ab3d6b
debug print removed
Nov 25, 2022
9ad1208
avoid not send message to telegram chat because message is blank
Nov 26, 2022
ed7e812
undone
Nov 26, 2022
3f94120
fail to ban
Dec 8, 2022
d7ea2fa
-y
Dec 8, 2022
0b23e33
Merge pull request #8 from rd-mg/snyk-fix-a51ebfe14d45b6023d09214a2eb…
rd-mg Dec 8, 2022
fe0087a
requiremets update
Dec 8, 2022
a1711ad
ifish version
Jan 13, 2023
703613f
main bk
rd-mg Nov 22, 2023
5c63925
fix conflict due to update compatibility issues
rd-mg Nov 22, 2023
1c43c86
fix bbp iloc imp roc jinja2 downgraded
rd-mg Nov 23, 2023
fef2a60
fix roc coldtresh
rd-mg Nov 23, 2023
5f3b928
added ham stochhma avgrsi
rd-mg Feb 3, 2024
ef4caf1
pandas fixed
rd-mg Feb 3, 2024
fdbfe1b
fix operator
rd-mg Feb 3, 2024
43f84ec
fixed std crossed over indicator
rd-mg Feb 3, 2024
d7c762c
sqzmon fixed
rd-mg Nov 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions app/analyzers/indicators/bollinger_bands.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ def analyze(self, historical_data, signal=['bbwidth'], hot_thresh=None, cold_thr

for index in range(period_count, bb_df_size):
data_index = index - period_count
bb_values['lowerband'][index] = bb_data[0][data_index]
bb_values['middleband'][index] = bb_data[1][data_index]
bb_values['upperband'][index] = bb_data[2][data_index]
bb_values['bbwidth'][index] = (bb_data[2][data_index] - bb_data[0][data_index]) / bb_data[1][data_index]
bb_values['lowerband'].iloc[index] = bb_data[0][data_index]
bb_values['middleband'].iloc[index] = bb_data[1][data_index]
bb_values['upperband'].iloc[index] = bb_data[2][data_index]
bb_values['bbwidth'].iloc[index] = (bb_data[2][data_index] - bb_data[0][data_index]) / bb_data[1][data_index]

bb_values['is_hot'] = True
bb_values['is_cold'] = False
Expand Down
9 changes: 4 additions & 5 deletions app/analyzers/indicators/roc.py
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line 18: period_count (int, optional): Defaults to 15.
Is there a bad period_count default value or a wrong value in the description ?

Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@


class ROC(IndicatorUtils):
def analyze(self, historical_data, signal=['roc'], hot_thresh=None, cold_thresh=None, period_count=14):
def analyze(self, historical_data, signal=['roc'], hot_thresh=1, cold_thresh=-1, period_count=4):
"""Performs an ROC analysis on the historical data

Args:
historical_data (list): A matrix of historical OHCLV data.
period_count (int, optional): Defaults to 15. The number of data points to consider for
our exponential moving average.
period_count (int, optional): Defaults to 15. The number of data points to consider ROC

Returns:
pandas.DataFrame: A dataframe containing the indicators and hot/cold values.
Expand All @@ -26,7 +25,7 @@ def analyze(self, historical_data, signal=['roc'], hot_thresh=None, cold_thresh=
roc_values = abstract.ROC(dataframe, period_count).to_frame()
roc_values.dropna(how='all', inplace=True)
roc_values.rename(columns={0: 'roc'}, inplace=True)
roc_values['is_hot'] = True
roc_values['is_cold'] = False
roc_values['is_hot'] = (roc_values["roc"] >= hot_thresh)
roc_values['is_cold'] = (roc_values["roc"] <= hot_thresh)

return roc_values
2 changes: 1 addition & 1 deletion app/analyzers/uptrend.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


class UpTrend(IndicatorUtils):
def analyze(self, key_indicator, key_signal, key_indicator_index, key_period_count=1):
def analyze(self, key_indicator, key_indicator_index, key_signal, key_period_count=1):
""" Tests for key_indicator is going uptrend seeing period count back.

Args:
Expand Down
3 changes: 1 addition & 2 deletions app/behaviour.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,6 @@ def _get_uptrend_results(self, new_result):
uptrend_dispatcher = self.strategy_analyzer.uptrend_dispatcher()
results = {uptrend: list()
for uptrend in self.uptrend_conf.keys()}

for uptrend in self.uptrend_conf:
if uptrend not in uptrend_dispatcher:
self.logger.warn("No such uptrend %s, skipping.", uptrend)
Expand All @@ -410,8 +409,8 @@ def _get_uptrend_results(self, new_result):

dispatcher_args = {
'key_indicator': key_indicator['result'],
'key_signal': uptrend_conf['key_signal'],
'key_indicator_index': uptrend_conf['key_indicator_index'],
'key_signal': uptrend_conf['key_signal'],
'key_period_count': uptrend_conf['key_period_count']
}
except Exception as e:
Expand Down
Loading