Advertisement
ImDerekD

iSpy12_31.py

Dec 31st, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.99 KB | None | 0 0
  1. #!/usr/bin/bash python
  2.  
  3. import csv
  4. import datetime
  5. from datetime import datetime
  6. from colorama import Back, Fore, Style
  7. from colorama import init
  8. import time
  9. import itertools
  10. from itertools import zip_longest
  11. from time import sleep
  12. with open('/Users/King/Desktop/iSpy.csv', 'r') as csv_file:
  13. csv_reader = csv.reader(csv_file)
  14. header = next(csv_reader)
  15.  
  16.  
  17. ref = [] # Start off w/ empty list
  18. ref_Num = int(0) # First to go in list = ref # (390 cells in 1 day)(using ref+=1 for each row)
  19. data = [] # Not sure but I could rearrange for liquidity?
  20. Liquidity = float()
  21. found = int(0)
  22. Range = []
  23. Target = []
  24. Range_List = {}
  25. Low_Range_Found = {}
  26. High_Range_Found = {}
  27. Range_Found = {}
  28. range_ref_String = ('')
  29. dTime = []
  30. printRanges = str()
  31. range_identifier_low = 'Low'
  32. range_identifier_high = 'High'
  33. range_identifier_all = 'All'
  34. All_Range_References = []
  35. All_Referenced_Prices = []
  36. menu_ans = input('What would you like to do? \n [1] Print Liquidity Data | [2] See previous ranges | [3] Test\n')
  37. if menu_ans == '1':
  38. Liquidity_Data = input('Would you like to print liquidity data? [y/n]: ')
  39. if menu_ans == '2':
  40. printRanges = input('Which ranges would you like to see?: [High/Low/All]\n')
  41. range_identifier = ''
  42. new_range = bool
  43. t = bool
  44. tLow = bool
  45. tHigh = bool
  46. Target = float()
  47. Range_Dict = {}
  48. TickString = str()
  49. TickSum = int()
  50. Tick = int(0)
  51. Tick_String = ''
  52. StartTraceback = {}
  53. day_Count = int()
  54. tList = []
  55. last = float()
  56. LT = float()
  57. HT = float()
  58. last = float()
  59. Strength = int()
  60. TrendStrength = ''
  61. Price_Tick = int()
  62. Previous = []
  63. for row in csv_reader:
  64. # row = [Time, Open, Close, High, Low, realVol, Money_Flow]
  65. ref_Num += 1 # Starting at 0
  66. dTime = str(datetime.strptime(row[0], '%a %b %d %H:%M'))
  67. Time = dTime[-14:]
  68. Open_Price = float(row[1]) # Price Data Dictionary
  69. Close_Price = float(row[2]) # Price Data Dictionary
  70. High_Price = float(row[3]) # Price Data Dictionary
  71. Low_Price = float(row[4]) # Price Data Dictionary
  72. Money_Flow = float(row[6]) # Price Data Dictionary
  73. Vol = row[5] # Price Data Dictionary
  74. f_Vol = float(Vol[:-1]) # Price Data Dictionary
  75. m_Vol = str(Vol[-1:]) # Price Data Dictionary
  76. if m_Vol == "K": # Price Data Dictionary
  77. f_Vol = f_Vol * 1000 # Price Data Dictionary
  78. if m_Vol == "M": # Price Data Dictionary
  79. f_Vol = f_Vol * 1000000
  80. if m_Vol != "K" and m_Vol != "M":
  81. f_Vol = float(row[5]) # Price Data Dictionary
  82. HLCC = round(float(High_Price + Low_Price + Close_Price + Close_Price)/4, 2) # Price Data Dictionary & RangeReference Dictionary
  83. M_Price = round(float(Money_Flow) / f_Vol, 2) # Price Data Dictionary & RangeReference Dictionary
  84. Diff = round(HLCC - M_Price, 2) # Price Data Dictionary & RangeReference Dictionary & Data Dictionary
  85. MMM = float(f_Vol * HLCC) # Price Data Dictionary & RangeReference Dictionary & Data Dictionary
  86. Liq_change = float(Money_Flow - MMM) # Price Data Dictionary & RangeReference Dictionary & Data Dictionary
  87. Liquidity += Liq_change # Price Data Dictionary & RangeReference Dictionary & Data Dictionary
  88. Date = str(Time[:5]) # Important
  89. military_time = str(Time[-8:])
  90. criteria = abs(.003*HLCC) # Important
  91. allData = [ref_Num,Date, military_time, High_Price,Low_Price,Close_Price, HLCC, M_Price, f_Vol, Money_Flow,MMM, Liquidity,Liq_change]
  92. Data_Dict = {'REF#':[ref_Num],'Date':[Date],'Time':[military_time], 'Close_Price':[Close_Price], 'M_Price':[M_Price], 'Volume':[f_Vol]}
  93. '''USING THIS DATA
  94. [0]REFERENCE NUMBER
  95. [1]DATE
  96. [2]MILITARY_TIME
  97. [3]HIGH_PRICE
  98. [4]LOW_PRICE
  99. [5]CLOSE_PRICE
  100. [6]HLCC
  101. [7]M_Price
  102. [8]F_VOL
  103. [9]MONEY_FLOW
  104. [10]MARKETMAKERMOVE 'MMM'
  105. [11]LIQUIDITY
  106. [12]LIQ_CHANGE
  107. '''
  108. if abs(allData[7]-allData[6]) >= criteria:
  109. found +=1
  110. diff = abs(M_Price - Close_Price)
  111. Range_Clause = True
  112. range_identifier_all = 'All'
  113. if Range_Clause == True:
  114. t_price = M_Price
  115. found_Price = HLCC
  116. Low_Range = round(HLCC - abs(float(M_Price - HLCC)), 2)
  117. High_Range = round(HLCC + abs(float(M_Price - HLCC)), 2)
  118. Low_Target = round(Low_Range - abs(float(M_Price - HLCC)), 2)
  119. High_Target = round(High_Range + abs(float(M_Price - HLCC)), 2)
  120. if M_Price >= found_Price+diff:
  121. range_ref_String = "HIGH TARGET"
  122. tHigh = True
  123. Target = M_Price
  124. range_identifier = 'High'
  125. found_Price = HLCC
  126. range_identifier_all = 'All'
  127. tList = ['High', High_Target]
  128. highFilled = float()
  129. elif M_Price<= found_Price-diff:
  130. range_ref_String = "LOW TARGET"
  131. tLow = True
  132. Target = M_Price
  133. range_identifier = 'Low'
  134. range_identifier_all = 'All'
  135. found_Price = HLCC
  136. tList = ['Low', Low_Target]
  137. lowFilled = float()
  138. RT_Reference1 = [Low_Range, High_Range, Low_Target, High_Target]
  139. LRS = '$'+str(Low_Range)
  140. LRT = '$'+str(Low_Target)
  141. HRS = '$'+str(High_Range)
  142. HRT = '$'+str(High_Target)
  143. found_Price_String = '$'+str(found_Price)
  144. RT_Reference = [LRS, LRT, HRS, HRT]
  145. Target = str(Target)
  146. Target_String = '$'+str(Target)
  147. lows = [LRS, LRT]
  148. highs = [HRS, HRT]
  149. range_ref_String = range_ref_String
  150. target_String = range_ref_String+': $'
  151. end_String = 'Price while found: $'+str(Close_Price)
  152. if printRanges == range_identifier and range_identifier == range_identifier_low:
  153. Low_Range_Reference = [Date, military_time, range_ref_String, Target_String, end_String]
  154. Low_Range_Found = {'\nData Found':Low_Range_Reference, 'Watch for: $':lows, 'Potential Resistance: ':highs}
  155. Low_Range = Low_Range_Found
  156. for k, v in dict.items(Low_Range):
  157. print(Fore.RED, k, v)
  158. if printRanges == range_identifier and range_identifier == range_identifier_high:
  159. High_Range_Reference = [Date, military_time, range_ref_String, end_String]
  160. High_Range_Found = {'\nData Found': High_Range_Reference, 'Watch for: $':highs, 'Potential Support: ':lows}
  161. High_Range = High_Range_Found
  162. for k, v in dict.items(High_Range):
  163. print(Fore.CYAN, k, v)
  164. elif printRanges == range_identifier_all and range_identifier_all == range_identifier_all:
  165. Range_Reference = [Date, military_time, Close_Price, range_ref_String, Target_String]
  166. Low_Ranges = [LRS, LRT]
  167. High_Ranges = [HRS, HRT]
  168. Range_Found = {'<-- Reference':Range_Reference, 'Low Ranges':Low_Ranges, 'High Ranges':High_Ranges}
  169. Range_List[ref_Num] = Range_Found
  170. print(Back.BLUE+Fore.WHITE+str(found), str(Range_Found)+Style.RESET_ALL)
  171. if Range_Clause == True:
  172.  
  173. if range_ref_String == "HIGH TARGET" and Money_Flow < 300000000:
  174. print("MARKET MAKER HIGH TARGET")
  175. if range_ref_String == "LOW TARGET" and Money_Flow > 300000000:
  176. print("MARKET MAKER LOW TARGET")
  177. else:
  178. Range_Clause = False
  179. tHigh = False
  180. tLow = False
  181. if menu_ans == '1' and Liquidity_Data =='y':
  182. if Close_Price > Open_Price:
  183. Price_Tick = 1
  184. if Close_Price < Open_Price:
  185. Price_Tick = -1
  186. if Liq_change > 0:
  187. Liq_Tick = 1
  188. if Liq_change < 0:
  189. Liq_Tick = -1
  190. Tick = Liq_Tick + Price_Tick
  191. Strength += Tick
  192. if Tick > 0:
  193. Tick_String = Fore.BLUE+Back.GREEN+'STRONG BUYERS'+Style.RESET_ALL+' '+Fore.GREEN+str(Strength)
  194. if Tick < 0:
  195. Tick_String = Fore.RED+Back.YELLOW+'STRONG SELLERS'+Style.RESET_ALL+' '+Fore.RED+str(Strength)
  196. if Tick == 0 and Price_Tick > 0:
  197. Tick_String = Fore.WHITE+'WEAK BUYERS'+Style.RESET_ALL+' '+Fore.WHITE+str(Strength)
  198. if Tick == 0 and Liq_Tick > 0:
  199. Tick_String = Fore.RED+'SHORT COVERING'+Style.RESET_ALL+' '+Fore.YELLOW+Back.BLUE+str(Strength)
  200. Range_List[ref_Num] = Range_Found
  201.  
  202. if Range_Clause == True:
  203. if range_ref_String == "HIGH TARGET" and Money_Flow < 300000000:
  204. if Liq_change > 1000000:
  205. print("MARKET MAKER HIGH TARGET")
  206. if range_ref_String == "LOW TARGET" and Money_Flow > 300000000:
  207. if Liq_change < 1000000:
  208. print("MARKET MAKER LOW TARGET")
  209.  
  210. Close_Price = Close_Price
  211. if tHigh == True:
  212. t = True
  213. HRS = str(High_Range)
  214. HRT = str(High_Target)
  215. LRS = str(Low_Range)
  216. LRT = str(Low_Target)
  217. print(Fore.YELLOW+'['+Date+']',military_time,Style.RESET_ALL+Fore.BLUE+Back.YELLOW+Style.BRIGHT+'Current Liquidity:'+'{:20,.2f}'.format(Liquidity)+Style.RESET_ALL+Fore.BLUE+Back.YELLOW+Style.BRIGHT+' Liq Change: '+'{:20,.2f}'.format(Liq_change)+Style.RESET_ALL, Fore.YELLOW+Back.BLUE+Style.BRIGHT,'Last Price: [$'+str(Close_Price)+'] '+Style.RESET_ALL+Tick_String+Style.RESET_ALL+Fore.GREEN+Back.BLUE+Style.BRIGHT+' NEW HIGH RANGE FOUND:[$'+HRS+']'+' NEW HIGH TARGET FOUND: [$'+HRT+']'+Style.RESET_ALL)
  218. time.sleep(2)
  219. add_Range_Target = input('Would you like to add this range to file?: [y/n]:')
  220. if add_Range_Target == 'y':
  221. with open('/Users/King/Desktop/RangeTargets.csv', 'a') as csv_file:
  222. file_PriceList = [Date, military_time, range_ref_String, Close_Price, M_Price, HRT, Money_Flow, f_Vol, LRS, LRT, Liquidity, Liq_change]
  223. wr = csv.writer(csv_file)
  224. wr.writerow(file_PriceList)
  225. else:
  226. t = False
  227. Close_Price = Close_Price
  228. if tLow == True:
  229. t = True
  230. HRS = str(High_Range)
  231. HRT = str(High_Target)
  232. LRS = str(Low_Range)
  233. LRT = str(Low_Target)
  234. Low_Prices = {'LOW RANGE: $': Low_Range, 'LOW TARGET: $': Low_Target} ##### May not need this line
  235. print(Fore.YELLOW+'['+Date+']',military_time,Style.RESET_ALL+Fore.CYAN+Back.RED+Style.BRIGHT+'Current Liquidity:'+'{:20,.2f}'.format(Liquidity)+Style.RESET_ALL+Fore.CYAN+Back.RED+Style.BRIGHT+' Liq Change: '+'{:20,.2f}'.format(Liq_change)+Style.RESET_ALL, Fore.YELLOW+Back.BLUE+Style.BRIGHT,'Last Price: [$'+str(Close_Price)+'] '+Style.RESET_ALL+Tick_String+Style.RESET_ALL+Fore.CYAN+Back.RED+Style.BRIGHT+' NEW LOW RANGE FOUND:[$'+LRS+']'+' NEW LOW TARGET FOUND: [$'+LRT+']'+Style.RESET_ALL)
  236. time.sleep(2)
  237. add_Range_Target = input('Would you like to add this range to file?: [y/n]:')
  238. if add_Range_Target == 'y':
  239. with open('/Users/King/Desktop/RangeTargets.csv', 'a') as csv_file:
  240. file_PriceList = [Date, military_time, range_ref_String, Close_Price, M_Price, LRT, Money_Flow, f_Vol, HRS, HRT, Liquidity, Liq_change]
  241. wr = csv.writer(csv_file)
  242. wr.writerow(file_PriceList)
  243. elif Liq_change < -1000000 and tLow == False:
  244. print(Fore.YELLOW + '[' + Date + ']', military_time,Style.RESET_ALL + Fore.CYAN + Back.RED + Style.BRIGHT + 'Current Liquidity:' + '{:20,.2f}'.format(Liquidity) + Style.RESET_ALL + Fore.YELLOW + Back.RED + Style.BRIGHT + ' Liq Change: ' + '{:20,.2f}'.format(Liq_change) + Style.RESET_ALL, Fore.YELLOW + Back.RED + Style.BRIGHT,'Last Price: [$' + str(Close_Price) + '] ' + Style.RESET_ALL + Tick_String + Style.RESET_ALL + Fore.YELLOW + Back.RED + Style.BRIGHT + '**SELL SIGNAL**' + Style.RESET_ALL)
  245. time.sleep(1)
  246. else:
  247. t = False
  248. if abs(Liq_change) > 500000 and abs(Liq_change) < 1000000:
  249. time.sleep(.005)
  250. print(Fore.CYAN + '[' + Date + ']', military_time,Fore.CYAN + 'Current Liquidity:' + '{:20,.2f}'.format(Liquidity) + Style.RESET_ALL + Fore.YELLOW + Back.BLUE + Style.BRIGHT + ' Liq Change: ' + '{:20,.2f}'.format(Liq_change) + ' ' + Fore.YELLOW + Back.BLUE,'Last Price [$' + str(Close_Price) + '] ' + Tick_String + Style.RESET_ALL)
  251. elif Liquidity > 0:
  252. if Liq_change > 0:
  253. time.sleep(.005)
  254. print(Fore.YELLOW + '[' + Date + ']', military_time,
  255. Fore.GREEN + 'Current Liquidity:' + '{:20,.2f}'.format(
  256. Liquidity) + Fore.GREEN + ' Liq Change: ' + '{:20,.2f}'.format(Liq_change) + ' ' + Fore.YELLOW + Back.BLUE,'Last Price [$' + str(Close_Price) + '] ' + Tick_String + Style.RESET_ALL)
  257. if Liq_change < 0:
  258. time.sleep(.005)
  259. print(Fore.YELLOW + '[' + Date + ']', military_time,
  260. Fore.GREEN + 'Current Liquidity:' + '{:20,.2f}'.format(
  261. Liquidity) + Style.RESET_ALL + Fore.RED + ' Liq Change: ' + '{:20,.2f}'.format(Liq_change) + Style.RESET_ALL + ' ' + Fore.YELLOW + Back.BLUE,'Last Price [$' + str(Close_Price) + '] ' + Tick_String + Style.RESET_ALL)
  262. elif Liq_change > 0:
  263. time.sleep(.005)
  264. print(Fore.YELLOW + '[' + Date + ']', military_time,Fore.BLUE + 'Current Liquidity:' + '{:20,.2f}'.format(Liquidity) + Style.RESET_ALL + Fore.CYAN,' Liq Change: ' + '{:20,.2f}'.format(Liq_change) + ' ' + Fore.YELLOW + Back.BLUE,'Last Price [$' + str(Close_Price) + '] ' + Tick_String + Style.RESET_ALL)
  265. elif Liq_change < 0:
  266. time.sleep(.005)
  267. print(Fore.YELLOW + '[' + Date + ']', military_time,Fore.BLUE + 'Current Liquidity:' + '{:20,.2f}'.format(Liquidity) + Style.RESET_ALL + Fore.CYAN,' Liq Change: ' + '{:20,.2f}'.format(Liq_change) + ' ' + Fore.YELLOW + Back.BLUE+'Last Price [$' + str(Close_Price) + '] ' + Tick_String + Style.RESET_ALL)
  268.  
  269. if menu_ans == '3':
  270. Days = ref_Num // 390
  271. Hours = float(ref_Num / 60)
  272. HoursLeft = float(ref_Num / 390 - Days) / 60
  273. Minutes = ref_Num
  274. MinutesLeft = HoursLeft * 100
  275. print('Total Minutes recorded: ',ref_Num)
  276. print('Total Days recorded ', Days,'Days', str(round(HoursLeft, 2)), 'Hours', str(round(MinutesLeft, 2)), 'Minutes')
  277. testans = input('Would you like to see other found ranges?: [y/n]')
  278. if testans == 'y':
  279. with open('/Users/King/Desktop/RangeTargets.csv', 'r') as csv_file:
  280. csv_reader = csv.reader(csv_file)
  281. for row in csv_reader:
  282. Date = row[0]
  283. Time = row[1]
  284. range_ref_String = row[2]
  285. Close_Price = float(row[3])
  286. M_Price = float(row[4])
  287. TargetPrice = row[5]
  288. Money_Flow = float(row[6])
  289. f_Vol = float(row[7])
  290. OppRange = row[8]
  291. OppTarget = row[9]
  292. list = [Date, Time, range_ref_String]
  293. Targets = [M_Price, TargetPrice]
  294. oppositePrices = [OppRange, OppTarget]
  295. listlist = [TargetPrice, OppRange, OppTarget]
  296. dict = {'Info':list, 'Targets: ':Targets, 'Found price: ':Close_Price, 'Opposite Ranges/Targets':oppositePrices}
  297. print(dict)
  298.  
  299.  
  300.  
  301. print(Fore.CYAN+'REF#:', ref_Num)
  302. time.sleep(.25)
  303. print(Fore.WHITE+Time)
  304. time.sleep(.25)
  305. print("Last:", "$" + str(Close_Price))
  306. time.sleep(.25)
  307. print("HLCC:", "$" + str(HLCC))
  308. time.sleep(.25)
  309. print("Money Price: ", "$" + str(round(M_Price, 2)))
  310. time.sleep(.25)
  311. print('Price Diff: '+'$'+str(Diff))
  312. time.sleep(.25)
  313. if f_Vol > 1000000:
  314. print(Fore.YELLOW+'Volume:' + '{:20,.2f}'.format(f_Vol))
  315. else:
  316. print(Fore.WHITE+'Volume:' + '{:20,.2f}'.format(f_Vol))
  317. time.sleep(.25)
  318. if Money_Flow > 350000000:
  319. print(Fore.YELLOW+'$Flow:' + '{:20,.2f}'.format(Money_Flow))
  320. else:
  321. print(Fore.WHITE+'$Flow:' + '{:20,.2f}'.format(Money_Flow))
  322. time.sleep(.25)
  323. if Liq_change < 0:
  324. print(Fore.RED+'Liq Change:', '{:20,.2f}'.format(Liq_change), Style.RESET_ALL)
  325. else:
  326. print(Fore.CYAN+'Liq Change:', '{:20,.2f}'.format(Liq_change))
  327. time.sleep(.25)
  328. if Liquidity < 0:
  329. print(Fore.RED+'Current Liquidity:' + '{:20,.2f}'.format(Liquidity),Style.RESET_ALL)
  330. else:
  331. print(Fore.CYAN+'Current Liquidity:' + '{:20,.2f}'.format(Liquidity),Style.RESET_ALL)
  332. time.sleep(.25)
  333. if abs(Strength) > 2 and Strength > 2:
  334. print(Fore.CYAN+'Current Strength: '+ str(Strength))
  335. if Strength < -2:
  336. print(Fore.RED+'Current Strength: ' +str(Strength))
  337.  
  338.  
  339. '''if found >0:
  340. tList = tList
  341. if tList[1] == 'High':
  342. print(Fore.GREEN+'LAST RANGE FOUND: [$' + str(Low_Range)+']','[$' + str(High_Range)+']', ' [' + range_ref_String + ': $' + str(Target)+']'+Style.RESET_ALL)
  343. print(Fore.GREEN+'POTENTIAL TARGETS: [$' + str(Low_Target)+']', '[$' + str(High_Target)+']'+Style.RESET_ALL)
  344. print(Fore.GREEN+'Found price: [$' + found_price + ']', 'Target implies a move of [' + implied_move + '%]'+'from current price ['+str(Close_Price)+']'+Style.RESET_ALL)
  345. else:
  346. tList = tList
  347. if tList[1] == 'Low':
  348. print(Fore.RED+'LAST RANGE FOUND: [$' + str(Low_Range)+']','$' + str(High_Range) + ' [' + range_ref_String + ': $' + str(Target)+Style.RESET_ALL)
  349. print(Fore.RED+'POTENTIAL TARGETS: [$' + str(Low_Target)+']', '$' + str(High_Target)+Style.RESET_ALL)
  350. print(Fore.RED+'Found price: [$' + (found_price) + ']', 'Target implies a move of [' + implied_move + '%]' + 'from current price [' + str(Close_Price) + ']'+Style.RESET_ALL)'''
  351.  
  352. '''input = input('Would you like to see other found ranges?: [y/n]')
  353. if input == 'y':
  354. with open('/Users/King/Desktop/RangeTargets.csv' 'r') as csv_file:
  355. csv_reader = csv.reader(csv_file)
  356. for row in csv_file:
  357. row[0] = Date
  358. row[1] = Time
  359. row[2] = range_ref_String
  360. row[3] = Close_Price
  361. row[4] = M_Price
  362. row[5] = TargetPrice
  363. row[6] = Money_Flow
  364. row[7] = f_Vol
  365. row[8] = OppRange
  366. row[9] = OppTarget'''
  367.  
  368. '''if abs(Liq_change) > 500000:
  369. time.sleep(.005)
  370. print(Fore.CYAN+'['+Date+']',military_time,Fore.CYAN+'Current Liquidity:'+'{:20,.2f}'.format(Liquidity)+Style.RESET_ALL+Fore.YELLOW+Back.BLUE+Style.BRIGHT+' Liq Change: '+'{:20,.2f}'.format(Liq_change)+' '+Fore.YELLOW+Back.BLUE, 'Last Price [$'+str(Close_Price)+'] '+Tick_String+Style.RESET_ALL)
  371. else if Liquidity > 0:
  372. if Liq_change > 0:
  373. time.sleep(.005)
  374. print(Fore.YELLOW+'['+Date+']', military_time,Fore.GREEN+'Current Liquidity:'+'{:20,.2f}'.format(Liquidity)+Fore.GREEN+' Liq Change: ' + '{:20,.2f}'.format(Liq_change)+' '+Fore.YELLOW+Back.BLUE, 'Last Price [$'+str(Close_Price)+'] '+Tick_String+Style.RESET_ALL)
  375. if Liq_change < 0:
  376. time.sleep(.005)
  377. print(Fore.YELLOW+'['+Date+']', military_time,Fore.GREEN+'Current Liquidity:'+'{:20,.2f}'.format(Liquidity)+Style.RESET_ALL+Fore.RED+' Liq Change: '+'{:20,.2f}'.format(Liq_change)+Style.RESET_ALL+' '+Fore.YELLOW+Back.BLUE, 'Last Price [$'+str(Close_Price)+'] '+Tick_String+Style.RESET_ALL)
  378. else if Liq_change > 0:
  379. time.sleep(.005)
  380. print(Fore.YELLOW+'['+Date+']', military_time,Fore.BLUE+'Current Liquidity:'+'{:20,.2f}'.format(Liquidity)+Style.RESET_ALL+Fore.CYAN,' Liq Change: '+'{:20,.2f}'.format(Liq_change)+' '+Fore.YELLOW+Back.BLUE, 'Last Price [$'+str(Close_Price)+'] '+Tick_String+Style.RESET_ALL)
  381. else if Liq_change < 0:
  382. time.sleep(.005)
  383. print(Fore.RED+'['+Date+']', military_time,Fore.BLUE+'Current Liquidity:'+'{:20,.2f}'.format(Liquidity)+Style.RESET_ALL+Fore.CYAN,' Liq Change: '+'{:20,.2f}'.format(Liq_change)+' '+Fore.YELLOW+Back.BLUE, 'Last Price [$'+str(Close_Price)+'] '+Tick_String+Style.RESET_ALL)'''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement