Skip to content

Commit

Permalink
v2.16 - Nifty prediction preprocessing enhanced
Browse files Browse the repository at this point in the history
- Ticker 0 - Screen by Stock Name re-enabled in GUI
  • Loading branch information
pranjal-joshi committed Nov 26, 2023
1 parent 5d25fbb commit 59feb17
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 1,708 deletions.
5 changes: 4 additions & 1 deletion src/classes/Changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from classes.ColorText import colorText

VERSION = "2.15"
VERSION = "2.16"

changelog = colorText.BOLD + '[ChangeLog]\n' + colorText.END + colorText.BLUE + '''
[1.00 - Beta]
Expand Down Expand Up @@ -271,4 +271,7 @@
[2.15]
1. MA Reversal improved for trend following (Inspired from Siddhart Bhanushali's 44 SMA)
[2.16]
1. Nifty Prediction NaN values handled gracefully with forward filling if data is absent
2. Ticker 0 > Search by Stock name - re-enabled in GUI
''' + colorText.END
1 change: 1 addition & 0 deletions src/classes/Screener.py
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,7 @@ def getNiftyPrediction(self, data, proxyServer):
### v2 Preprocessing
for col in pkl['columns']:
data[col] = data[col].pct_change(fill_method=None) * 100
data = data.ffill().dropna()
data = data.iloc[-1]
###
data = pkl['scaler'].transform([data])
Expand Down
Loading

0 comments on commit 59feb17

Please sign in to comment.