Skip to content

Commit fa9abac

Browse files
committed
added more documentation:
1 parent 90de852 commit fa9abac

12 files changed

+27
-15
lines changed

LDA/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
work in progress

Patterns/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
work in progress

Regression/README.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Copy over a csv file containing the data.
2+
3+
To run: ``` python StockPredictPrices.py ```
4+
5+
then follow instructions.

Scrapers/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
To run: ``` python 'Single Stock Scraper.py' ```

Screener/QMAScreener.py

+15-14
Original file line numberDiff line numberDiff line change
@@ -38,22 +38,23 @@ def get_ma(stock):
3838
try:
3939
data = stock.get_historical(date10, theDate)
4040
prices_50 = stock.get_50day_moving_avg()
41+
42+
count = 0
43+
for theData in data:
44+
if count < 10:
45+
count = count + 1
46+
prices_10.append(float(theData['Adj_Close']))
47+
else:
48+
continue
49+
count = 0
50+
for theData in data:
51+
if count < 20:
52+
count = count + 1
53+
prices_20.append(float(theData['Adj_Close']))
54+
else:
55+
continue
4156
except:
4257
return 0,0,0
43-
count = 0
44-
for theData in data:
45-
if count < 10:
46-
count = count + 1
47-
prices_10.append(float(theData['Adj_Close']))
48-
else:
49-
continue
50-
count = 0
51-
for theData in data:
52-
if count < 20:
53-
count = count + 1
54-
prices_20.append(float(theData['Adj_Close']))
55-
else:
56-
continue
5758
print prices_50
5859
return prices_10, prices_20, prices_50
5960

Screener/README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
TO run: ``` python QMAScreener ```
1+
To run: ``` python QMAScreener ```
2+
3+
You can change the ticker file on line 65.

Sentiment/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
work in progress

figure_1-1.png

41.4 KB
Loading

figure_1-2.png

48 KB
Loading

figure_1-3.png

42.4 KB
Loading

figure_1-4.png

33.2 KB
Loading

figure_1.png

39.6 KB
Loading

0 commit comments

Comments
 (0)