@@ -68,7 +68,7 @@ def pattern_recognition_initializer(candles,index):
68
68
69
69
70
70
def pattern_recognition ():
71
- symbols_file = open ("Prerequisites-Outputs\Tickers.csv" )
71
+ symbols_file = open (r "Prerequisites-Outputs\Tickers.csv" )
72
72
tickers = csv .reader (symbols_file )
73
73
74
74
@@ -77,7 +77,7 @@ def pattern_recognition():
77
77
78
78
ticker = company [0 ]
79
79
try :
80
- history_file = open ("Auto generated Dataset\{}.csv" .format (ticker ))
80
+ history_file = open (r "Auto generated Dataset\{}.csv" .format (ticker ))
81
81
except :
82
82
continue
83
83
@@ -110,23 +110,23 @@ def pattern_recognition():
110
110
list_clubber = [bullishengulf ,datee ]
111
111
export_data_complete = zip_longest (* list_clubber ,fillvalue = '' )
112
112
113
- with open ("Prerequisites-Outputs\BullishEngulfing.csv" ,'w' ,encoding = "ISO-8859-1" ,newline = "" ) as myfile :
113
+ with open (r "Prerequisites-Outputs\BullishEngulfing.csv" ,'w' ,encoding = "ISO-8859-1" ,newline = "" ) as myfile :
114
114
wr = csv .writer (myfile )
115
115
wr .writerow (("Ticker" ,"Date Of Formation" ))
116
116
wr .writerows (export_data_complete )
117
117
118
118
list_clubberr = [bearishengulf ,dateee ]
119
119
export_data_completee = zip_longest (* list_clubberr ,fillvalue = '' )
120
120
121
- with open ("Prerequisites-Outputs\BearishEngulfing.csv" ,'w' ,encoding = "ISO-8859-1" ,newline = "" ) as myfile :
121
+ with open (r "Prerequisites-Outputs\BearishEngulfing.csv" ,'w' ,encoding = "ISO-8859-1" ,newline = "" ) as myfile :
122
122
wr = csv .writer (myfile )
123
123
wr .writerow (("Ticker" ,"Date Of Formation" ))
124
124
wr .writerows (export_data_completee )
125
125
126
126
list_clubberrr = [gravestone ,dateeee ]
127
127
export_data_completeee = zip_longest (* list_clubberrr ,fillvalue = '' )
128
128
129
- with open ("Prerequisites-Outputs\Gravestone.csv" ,'w' ,encoding = "ISO-8859-1" ,newline = "" ) as myfile :
129
+ with open (r "Prerequisites-Outputs\Gravestone.csv" ,'w' ,encoding = "ISO-8859-1" ,newline = "" ) as myfile :
130
130
wr = csv .writer (myfile )
131
131
wr .writerow (("Ticker" ,"Date Of Formation" ))
132
132
wr .writerows (export_data_completeee )
0 commit comments