ded118ad8554f0faedc61193e60fb9bbde026a4d,Screener/QMAScreener.py,,,#,77

Before Change


	if dma10 == 0 or dma20 == 0 or dma50 == 0:
		continue
	else:
		print(s)
		analyze(dma10, dma20, dma50, s)


After Change


df = df.loc[df["type"] == "cs"]
df = df.head(numberOfStocks)

for i,r in df["symbol"].iteritems():
	print("Getting Averages for "+r+"\n")
	dma10, dma20, dma50 = get_ma(r)
	if dma10 == -1 or dma20 == -1 or dma50 == -1:
		continue
	else:
		analyze(dma10, dma20, dma50, r)


print("Major List:")
print(masterlist)
print("Minor List")
print(minorlist)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: Vaibhav/Stock-Analysis
Commit Name: ded118ad8554f0faedc61193e60fb9bbde026a4d
Time: 2018-08-15
Author: ishuvaibhav@gmail.com
File Name: Screener/QMAScreener.py
Class Name:
Method Name:


Project Name: inspirehep/magpie
Commit Name: e4488b9b68416439a226b48b74c22ae84c129db1
Time: 2016-02-10
Author: jan.stypka@cern.ch
File Name: magpie/api.py
Class Name:
Method Name: batch_train


Project Name: nilmtk/nilmtk
Commit Name: a459f98d5776c449dac0f7f3ecc72bef3132ff77
Time: 2013-12-17
Author: jack-list@xlk.org.uk
File Name: examples/load_redd.py
Class Name:
Method Name: