Advertisement
ImDerekD_

11_22_scratch

Nov 22nd, 2019
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 122.13 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. import sys
  8. from termcolor import colored, cprint
  9. from colorama import init
  10. import numbers
  11. import time
  12. import itertools
  13. from itertools import zip_longest
  14. from time import sleep
  15. import hashlib
  16. import statistics
  17. import shutil
  18. import os
  19. from sty import fg, bg, ef, rs, RgbFg
  20. import glob
  21.  
  22. shutil.copy('/Users/King/data.csv', '/Users/King/SpyFlow Dropbox/SpyFlow_Dropbox/data.csv')
  23.  
  24.  
  25. with open('/Users/King/Spy_data_analysis.csv', 'w+') as csv_file2:
  26. writer_labels = ['ref_Num', 'Date', 'Time', 'Price', 'MoneyPrice', 'xString', 'qrdivmax', 'EstimatedPrice', 'EstPrice2', 'MTR', 'PainGauge', 'DR', 'IntradayStrength', 'new_Strength', 'LFP', 'LFPC','mRatio','sneakR','qratio','sneakRSum','avgsneakR','avg_QR','MIVCount','AvgLiqChange','lastDPrice','Weighted_Avg_DPrice','Weighted_Movement','UDV','UDR_Ticks','MACD','sneakR_Sum','avg_sneakR','gapRatio','Resistance','Support', 'ChgOpen', 'OpenPrice', 'HighPrice', 'LowPrice', 'LiqChange', 'Liquidity', 'Volume', 'MoneyFlow', 'MIV_Index', 'AvgVol', 'MTR_copy', 'PTLT Ratio', 'gapRatio', 'GDR', 'PVS']
  27. wr = csv.writer(csv_file2)
  28. wr.writerow(writer_labels)
  29.  
  30.  
  31.  
  32.  
  33. adj_Strength = float()
  34. analysis_list = []
  35. analysis_log = []
  36. avg_OC_Range = float()
  37. Avg_DPrice = float()
  38. Avg_Down_Move = float()
  39. avg_Flow = float(1)
  40. avg_HL_Range = float()
  41. avgHigh = float()
  42. avgLow = float()
  43. avg_Liq_change = float()
  44. Avg_MIV_Spike = float()
  45. avg_sneakR = float()
  46. Avg_Up_Move = float()
  47. avgVol = float()
  48. Avg_Move = float()
  49. avg_QR = float()
  50. avg_large_LFPC = float()
  51. avg_mRatio = float()
  52. avg_up_move_clone = float()
  53. avg_down_move_clone = float()
  54.  
  55.  
  56. BB_Strength = float()
  57. bearTS1 = bool
  58. bearTS = bool
  59. BES = bool
  60. bullTS = bool
  61.  
  62. CashOpenHash = '00491302948265c47e651fcff99fd9fb'
  63. CashOpen = float()
  64. CoverCount = int()
  65. CoverMoney = float()
  66. CoverPrice = float()
  67. C_Price = float()
  68. CoverLiquidity = float()
  69. CoverVolumeTotal = float()
  70. Cumulutive_DPrice = float()
  71. countitems = int()
  72.  
  73.  
  74. day_left = float()
  75. DU = int()
  76. DD = int()
  77. DownTicks = int()
  78. down_val = float()
  79. down_val_count = int()
  80. DOWN_c = int()
  81. DOWN_IV = float()
  82. DP_list = []
  83. DP_Uptick = int()
  84. DP_Downtick = int()
  85. DP_UptickList = []
  86. DP_DowntickList = []
  87. DRC = int()
  88. DR = float()
  89. Distribution_Price = float()
  90.  
  91.  
  92. est_price_x = float()
  93. est_diff_x = float()
  94. est_diff1 = float()
  95. est_price1 = float()
  96. est_price = float(1)
  97. LQPPrice_match = float()
  98. LQPPrice_no_match = float()
  99. EstLiqPrice = float()
  100. EstimatedPrice = float()
  101. est_price_filled = bool
  102. ExtremelyLargeFlowCount = int()
  103. ExtremelyLargesneakRCount = int()
  104. extremeBearTS = bool
  105. extremeBullTS1 = bool
  106. extremeBullTS = False
  107. extremeDR = bool
  108. extremeGR = bool
  109.  
  110. gapRatio = float()
  111. gapDistanceRatio = float()
  112.  
  113. highlist = []
  114. HOD = float()
  115.  
  116. info_datalist = []
  117.  
  118. labels = str()
  119. LargeFlowCount = int()
  120. LargeFlowSum = float()
  121. LargesneakRCount = int()
  122. lastFPrice = float()
  123. Liq_Tick_Total = int()
  124. LFPC = float()
  125. LFP = float(1)
  126. LOD = float()
  127. log = []
  128. LongPrice = float()
  129. LFPC_Count = int()
  130. lowlist = []
  131. LQP_Match = bool
  132.  
  133. Mark_The_Maker = bool
  134. MIV_Spike_List = []
  135. MIV_Spike_Count = int()
  136. MIV_Spike = float()
  137. MUTick = int()
  138. MDTick = int()
  139. MTR = float()
  140. MTR_copy = float()
  141. MT = int()
  142. mRatio = float()
  143. MIV_Index = float()
  144. money_analysis_log = []
  145. M_Price_clone = float()
  146. MoneyTickGauge = float()
  147.  
  148.  
  149. new_sneakR = float()
  150. new_Strength_String = str()
  151. nTS = bool
  152.  
  153.  
  154. pause = float()
  155. PD = bool
  156. PainGauge = float()
  157. PainGaugePct = float()
  158. PTLT_Ratio = float()
  159. Price_Tick_Total = int()
  160. price_tick_str = str()
  161. PriceTickGauge = float()
  162. PriceUpTickGauge = float()
  163. PriceDownTickGauge = float()
  164. projected_ss_eod = float()
  165. pg_up_var = int()
  166. pg_down_var = int()
  167.  
  168. real_ticks = int()
  169. rawdatalist = []
  170. rawdatalist1 = []
  171. rawdatalist2 = []
  172. rawdatalist3 = []
  173.  
  174. SAMS = bool
  175. ShortPrice = float()
  176. ShortVolumeTotal = float()
  177. S_Price = float()
  178. ShortLiquidity = float()
  179. ShortCount = int()
  180. ShortMoney = float()
  181. sumVol = float()
  182. sum_Flow = float()
  183. sumFlow = float()
  184. SumLiq = float()
  185. sum_down_move = float()
  186. sum_down_count = int()
  187. sum_up_move = float()
  188. sum_up_count = int()
  189. sum_OC_Range = float()
  190. sum_HL_Range = float()
  191. sneakR = float()
  192. sneakR_analysis_log = []
  193. sneakR_Sum = float()
  194. sneakR_lgst_avg_ratio = float()
  195. sneakR_log = []
  196. Status = str()
  197. sum_QR = float()
  198. sum_large_LFPC = float()
  199. sum_MRatio = float()
  200. sum_LFPC = float()
  201.  
  202. TA = bool
  203. TB = bool
  204. TATBR_Sum = float()
  205. TATBR_Ratio = float()
  206. TATBR_A = float()
  207. TATBR_B = float()
  208. TickGauge = float()
  209. TradingAbove_Count = int()
  210. TradingAbove_Diff = float()
  211. TradingBelow_Count = int()
  212. TradingBelow_Diff = float()
  213. technicals = []
  214. technicals_list = []
  215. TotalDiff = float()
  216. trend = float()
  217. PivotSpread = float()
  218.  
  219. UDR = float()
  220. UD_Ratio = float()
  221. UDR_Ticks = int()
  222. UDV = int()
  223. unfilled_TA_price = float()
  224. unfilled_TA_price = float()
  225. UP_c = int()
  226. UP_IV = float()
  227. UpTicks = int()
  228. up_val = float()
  229. up_val_count = int()
  230. underline = str()
  231. UpTicks = int()
  232.  
  233.  
  234. VeryLargesneakRCount = int()
  235. VeryLargeFlowCount = int()
  236.  
  237.  
  238. QR = float()
  239. qratio = float()
  240. qratio_div_max = float()
  241.  
  242. writedatalist = []
  243. Weighted_Avg_DPrice = float()
  244. Weighted_Movement = float()
  245.  
  246. xratio = float()
  247. xString = ''
  248.  
  249.  
  250.  
  251.  
  252. datafile = '/Users/King/data.csv'
  253. historicaldir = '/Users/King/SPY_CSV_FULL/FULLFILES/'
  254. Liquidity_Data = str()
  255.  
  256.  
  257.  
  258. Resistance = float()
  259. Support = float()
  260.  
  261. hidden_strength = float()
  262. hs_up = int()
  263. hs_down = int()
  264. mpricelist = []
  265. avgMPrice = float()
  266. menu_ans = input('What would you like to do? \n [1] Print Liquidity | [2] Chartplot | [3] Tcopy Ranges | [4] Show Est TA/TB Prices | [5] Analyze Scenarios | [6] Data Analysis\n')
  267. if menu_ans == '1':
  268. Liquidity_Data = input('Would you like to print liquidity data? [y/n]: ')
  269. PrintInfo = True
  270. if menu_ans == '2':
  271. import chartplot
  272. if menu_ans == '3':
  273. option3 = True
  274. if menu_ans == 'oldfile':
  275. PrintInfo = True
  276. try_file = input('Enter Date [MM_DD_YYYY]: ')
  277. Liquidity_Data = input('Would you like to print liquidity data? [y/n]: ')
  278.  
  279.  
  280. # for file in glob.glob (historicaldir+'*csv'):
  281. # historicaldate = file[39:-8]
  282.  
  283. datafile = historicaldir+'SPY_'+try_file+'FULL.csv'
  284.  
  285.  
  286. with open(datafile, 'r') as csv_file:
  287. csv_reader = csv.reader(csv_file)
  288. header = next(csv_reader)
  289.  
  290.  
  291. ref = [] # Start off w/ empty list
  292. ref_Num = int(0) # First to go in list = ref # (390 cells in 1 day)(using ref+=1 for each row)
  293. data = [] # Not sure but I could rearrange for liquidity?
  294. Liquidity = float()
  295. found = int(0)
  296. Range = []
  297. Target = []
  298. filled = bool
  299. filled_Price = float()
  300. Range_List = {}
  301. Low_Range_Found = {}
  302. High_Range_Found = {}
  303. ht_filled = bool
  304. hr_filled = bool
  305. lr_filled = bool
  306. lt_filled = bool
  307. lastDPrice = float()
  308.  
  309. lows_found = int()
  310. highs_found = int()
  311. Tick = int()
  312. Range_Found = {}
  313. range_ref_String = ('')
  314. dTime = []
  315. PrintInfo = bool
  316. new_range = bool
  317. t = bool
  318. tLow = bool
  319. tHigh = bool
  320. Target = float()
  321. Range_Dict = {}
  322. TickString = str()
  323. Tick_String = ''
  324. Strength = int()
  325. StartTraceback = {}
  326. day_Count = int()
  327. tList = []
  328. Last = float()
  329. LT = float()
  330. HT = float()
  331. ATR = float()
  332. OC_ATR = float()
  333. Avg_ATR = float()
  334. TrendStrength = ''
  335. Previous = []
  336. allfoundallfilled = {}
  337. lowfilled = float()
  338. highfilled = float()
  339. rangefilled = bool
  340. low_Ranges_Filled = int()
  341. high_Ranges_Filled = int()
  342. high_Targets_Filled = int()
  343. low_Targets_Filled = int()
  344. prevVol = float(1)
  345. prevFlow = float(1)
  346. lastFlow = float(1)
  347. lastVol = float(1)
  348. prevIndexValue = float(1)
  349. prevPrice = float(1)
  350. lastLFPC = float(1)
  351. lastsneakR = float(1)
  352. lastmRatio = float(1)
  353.  
  354. Status = str('')
  355. RangeTarget = float()
  356. rFound = bool
  357. count = int(0)
  358. PCT_Range_Str = ''
  359.  
  360.  
  361.  
  362. sum_OHLC_Range = float()
  363. WarningString = ''
  364. sum_Liq = float()
  365. avg_Liq_change = float()
  366. HighRangeFlow = float()
  367. LowRangeFlow = float()
  368. LiqFlowPrice = float()
  369. LiqFlowPriceClone = float()
  370. EntryStr = str()
  371. OC_HL_RangePct = float()
  372. StrengthReference = float()
  373. AvgStrengthReference = float()
  374. counter = int()
  375.  
  376. liqList = []
  377. PULQ = bool
  378.  
  379. BuyVolume = float()
  380. BuyPower = float()
  381. ShortVolume = float()
  382. ShortPower = float()
  383. SellVolume = float()
  384. SellPower = float()
  385. BuySellRatio = float()
  386. HL_RangePct = float()
  387.  
  388. Price1 = float()
  389. prevPrice1 = float()
  390. gapDown = int()
  391. gapUp = int()
  392. gapUpDistance = float()
  393. gapDownDistance = float()
  394. prevMPrice = float()
  395. prevMPrice2 = float()
  396. prevPrice1 = float()
  397. lastMPrice = float()
  398. lastHPrice = float()
  399. lastLPrice = float()
  400.  
  401.  
  402.  
  403.  
  404.  
  405.  
  406. for row in csv_reader:
  407. range_ref_String = ''
  408. LRS = '$'
  409. LRT = '$'
  410. HRS = '$'
  411. HRT = '$'
  412. found_Price_String = '$'
  413. end_String = 'Price while found: $'
  414. # row = [Time, Open, Close, High, Low, realVol, Money_Flow]
  415. ref_Num += 1
  416. dTime = str(datetime.strptime(row[0], '%a %b %d %H:%M'))
  417. Time = dTime[-14:]
  418. Open_Price = float(row[1]) # Price Data Dictionary
  419. Close_Price = float(row[2]) # Price Data Dictionary
  420. High_Price = float(row[3]) # Price Data Dictionary
  421. Low_Price = float(row[4]) # Price Data Dictionary
  422. Money_Flow = float(row[6]) # Price Data Dictionary
  423. Vol = row[5] # Price Data Dictionary
  424. f_Vol = float(Vol[:-1]) # Price Data Dictionary
  425. m_Vol = str(Vol[-1:]) # Price Data Dictionary
  426. if m_Vol == "K": # Price Data Dictionary
  427. f_Vol = f_Vol * 1000 # Price Data Dictionary
  428. if m_Vol == "M": # Price Data Dictionary
  429. f_Vol = f_Vol * 1000000
  430. if m_Vol != "K" and m_Vol != "M":
  431. f_Vol = float(row[5]) # Price Data Dictionary
  432. if f_Vol < 1:
  433. M_Price = HLCC
  434. else:
  435. M_Price = round(float(Money_Flow) / f_Vol, 2)
  436. HLCC = float(High_Price + Low_Price + Close_Price + Close_Price)/4 # Price Data Dictionary & RangeReference Dictionary # Price Data Dictionary & RangeReference Dictionary
  437. Diff = round(HLCC - M_Price, 2)
  438. findDiff = round(M_Price - Close_Price, 2)
  439. TotalDiff += findDiff
  440. PivotPrice = round(Close_Price + TotalDiff, 2)
  441. PivotSpread += findDiff
  442. if PivotPrice > Close_Price + .45:
  443. PivotStr = Fore.CYAN+str(PivotPrice)+Style.RESET_ALL
  444. if PivotPrice < Close_Price - .45:
  445. PivotStr = Fore.RED+str(PivotPrice)+Style.RESET_ALL
  446.  
  447. if abs(PivotPrice - Close_Price) < .15:
  448. PivotStr = Fore.WHITE+str(PivotPrice)+Style.RESET_ALL
  449.  
  450. if abs(PivotPrice - Close_Price) > .15 and abs(PivotPrice - Close_Price) < .45:
  451. PivotStr = Fore.YELLOW+str(PivotPrice)+Style.RESET_ALL # Price Data Dictionary & RangeReference Dictionary & Data Dictionary
  452.  
  453. if PivotPrice > Close_Price + .75:
  454. PivotStr = Fore.CYAN+Style.BRIGHT+str(PivotPrice)+Style.RESET_ALL
  455.  
  456. if PivotPrice < Close_Price - .75:
  457. PivotStr = Fore.RED+Style.BRIGHT+str(PivotPrice)+Style.RESET_ALL
  458. MMM = float(f_Vol * HLCC) # Price Data Dictionary & RangeReference Dictionary & Data Dictionary
  459. Liq_change = float(Money_Flow - MMM) # Price Data Dictionary & RangeReference Dictionary & Data Dictionary
  460. Liquidity += Liq_change # Price Data Dictionary & RangeReference Dictionary & Data Dictionary
  461. Date = str(Time[:5]) # Important
  462. military_time = str(Time[-8:])
  463. criteria = abs(.003*HLCC)
  464. hashTime = hashlib.md5(str.encode(military_time))
  465. Liq_Tick = int()
  466. Price_Tick = int()
  467. tREF = int()
  468. liqstr = '{:20,.2f}'.format(Liquidity)
  469. liqchgstr = '{:20,.2f}'.format(Liq_change)
  470. mf_Str = '{:20,.2f}'.format(Money_Flow)
  471.  
  472. rFound = False
  473.  
  474. OC_Range = abs(Close_Price - Open_Price)
  475. HL_Range = abs(High_Price - Low_Price)
  476. sum_OC_Range += OC_Range
  477. sum_HL_Range += HL_Range
  478. avg_HL_Range = round(sum_HL_Range / ref_Num, 2)
  479. avg_OC_Range = round(sum_OC_Range / ref_Num, 2)
  480.  
  481. sum_Liq += abs(Liq_change)
  482. liqList.append(sum_Liq)
  483.  
  484. abs_Liq = abs(Liq_change)
  485. prevLiq = float()
  486.  
  487. mticksymbol = ''
  488. ticksymbolc = ''
  489. ticksymbolo = ''
  490. M_Price_clone = M_Price
  491. mpricelist.append(M_Price)
  492. highlist.append(High_Price)
  493. lowlist.append(Low_Price)
  494.  
  495.  
  496. Weighted_Movement += (High_Price - Open_Price) + (Low_Price - Close_Price) + (Close_Price - Open_Price)
  497. Weighted_Movement = round(Weighted_Movement, 2)
  498.  
  499. if ref_Num == 1:
  500. CashOpen = Open_Price
  501.  
  502. if ref_Num >= 1:
  503. CashOpen = CashOpen
  504.  
  505.  
  506. chg_Open = round(100*(Close_Price - CashOpen) / CashOpen, 2)
  507.  
  508. if Close_Price > Open_Price:
  509. sum_up_move += abs(Close_Price - Open_Price)
  510. sum_up_count += 1
  511. if Close_Price < Open_Price:
  512. sum_down_move += abs(Close_Price - Open_Price)
  513. sum_down_count += 1
  514.  
  515.  
  516. if sum_up_count >= 1:
  517. avg_up_move_clone = round(sum_up_move / sum_up_count, 2)
  518. if sum_down_count >= 1:
  519. avg_down_move_clone = round(sum_down_move / sum_down_count, 2)
  520.  
  521. if ref_Num >= 2 and mRatio > 0:
  522. qratio = round(sneakR / mRatio, 2)
  523. qratio_div_max = round(qratio / 468, 2)
  524.  
  525.  
  526.  
  527. if Money_Flow > 0:
  528. MIV_Index = round(100 * (f_Vol / prevVol) - 100 * ((Money_Flow * HLCC) / (prevFlow * prevPrice)), 3)
  529. runningValueIndex = round(MIV_Index + prevIndexValue, 3)
  530. prevPrice = Close_Price
  531. prevFlow = Money_Flow
  532. prevVol = f_Vol
  533. prevIndexValue = MIV_Index
  534. MIV_Index_String = str(MIV_Index)
  535. runningValueIndex_String = str(runningValueIndex)
  536. MIV_Index_String = str(round(MIV_Index, 2))
  537.  
  538.  
  539. if ref_Num >= 10:
  540. highlist.pop(0)
  541. lowlist.pop(0)
  542.  
  543. avgHigh = statistics.mean(highlist)
  544. avgLow = statistics.mean(lowlist)
  545.  
  546.  
  547.  
  548.  
  549.  
  550.  
  551.  
  552.  
  553.  
  554. if ref_Num >=2:
  555. prevPrice1 = Close_Price
  556. prevMPrice = M_Price
  557.  
  558.  
  559.  
  560.  
  561. if ref_Num % 2 != 0:
  562. Price1 = Close_Price
  563. prevMPrice1 = M_Price
  564. prevVol1 = f_Vol
  565. prevFlow1 = Money_Flow
  566. HPrice1 = High_Price
  567. LPrice1 = Low_Price
  568.  
  569. if ref_Num % 2 == 0:
  570. Price2 = Close_Price
  571. prevMPrice2 = M_Price
  572. prevVol2 = f_Vol
  573. prevFlow2 = Money_Flow
  574. HPrice2 = High_Price
  575. LPrice2 = Low_Price
  576.  
  577.  
  578. if ref_Num % 2 != 0 and ref_Num > 2:
  579. Last = Price2
  580. lastMPrice = prevMPrice2
  581. lastVol = prevVol2
  582. lastFlow = prevFlow2
  583. lastHPrice = HPrice2
  584. lastLPrice = LPrice2
  585.  
  586.  
  587. if ref_Num % 2 == 0 and ref_Num >= 2:
  588. Last = Price1
  589. lastMPrice = prevMPrice1
  590. lastVol = prevVol1
  591. lastFlow = prevFlow1
  592. lastHPrice = HPrice1
  593. lastLPrice = LPrice1
  594.  
  595.  
  596.  
  597.  
  598. sumFlow += Money_Flow
  599. SumLiq += abs(Liq_change)
  600. sumVol += f_Vol
  601. if Money_Flow > 0 and OC_Range + HL_Range > 0:
  602. sneakR = round(.0000001*(Money_Flow / (OC_Range + HL_Range)), 2)
  603. new_sneakR = round(.0000001*(Money_Flow / (HL_Range)), 2)
  604. sneakR_Sum += round(sneakR, 2)
  605. avg_sneakR = round(sneakR_Sum / ref_Num, 2)
  606. day_left = 390 - ref_Num
  607. projected_ss_eod = round(day_left * avg_sneakR + sneakR_Sum + 200, 2)
  608.  
  609. sum_MRatio += mRatio
  610.  
  611. sneakR_log.append(sneakR)
  612.  
  613. if ref_Num >= 2:
  614. avgVol = round(sumVol / ref_Num, 2)
  615. avg_Flow = round(sumFlow / ref_Num, 2)
  616. avg_Liq_change = round(SumLiq / ref_Num, 2)
  617. mRatio = round(Money_Flow / avg_Flow, 3)
  618. xratio = round(100 * abs(Liq_change) / abs(Liquidity), 3)
  619. lastLFPC = LFPC
  620. lastmRatio = mRatio
  621. lastsneakR = sneakR
  622. avg_sneakR = round(sneakR_Sum / ref_Num, 2)
  623. avg_mRatio = round(sum_MRatio / ref_Num, 2)
  624. avg_QR = round(sum_QR / ref_Num, 2)
  625. if mRatio > 0:
  626. QR = round(sneakR / mRatio, 2)
  627. sum_QR += QR
  628.  
  629.  
  630. analysis_list = [Date, military_time, Close_Price, M_Price, liqchgstr, liqstr, mf_Str, mRatio, sneakR]
  631.  
  632. if mRatio >= 1:
  633. LargeFlowCount += 1
  634. LargeFlowSum += mRatio
  635. analysis_log.append(analysis_list)
  636. if mRatio >= 2:
  637. VeryLargeFlowCount += 1
  638. if mRatio >= 5:
  639. ExtremelyLargeFlowCount += 1
  640. money_analysis_log.append(Money_Flow)
  641.  
  642. if sneakR >= 100:
  643. if analysis_list not in analysis_log:
  644. analysis_log.append(analysis_list)
  645. sneakR_analysis_log.append(sneakR)
  646. LargesneakRCount += 1
  647. if sneakR >= 200:
  648. VeryLargesneakRCount += 1
  649. if sneakR >= 300:
  650. ExtremelyLargesneakRCount += 1
  651.  
  652.  
  653. if UP_c >= 1 and DOWN_c >= 1:
  654. UDR = round(UP_c / DOWN_c, 3)
  655. UDV = UP_c - DOWN_c
  656.  
  657. if UpTicks >= 1 and DownTicks >= 1:
  658. UDR_Ticks = round(UpTicks - DownTicks, 3)
  659.  
  660. MACD = UDR_Ticks - UDV
  661.  
  662. if UDV > UDR_Ticks:
  663. price_tick_str = fg(191)+bg(52)+'Last Price: [$%s' % Close_Price+']'
  664.  
  665. if UDV <= UDR_Ticks:
  666. price_tick_str = fg(123)+bg(0)+'Last Price: [$%s' % Close_Price+']'
  667.  
  668.  
  669.  
  670.  
  671.  
  672. if abs(Liq_change) > 0:
  673. LFP = round(Money_Flow / abs(Liq_change) *.01, 3)
  674. LFPC = round(1000 * (abs(Liq_change) / Money_Flow) * .01, 4)
  675. sum_LFPC += LFPC
  676. if LFPC >= .001:
  677. LFPC_Count += 1
  678. if Liq_change > 0:
  679. sum_large_LFPC += LFPC
  680.  
  681. if Liq_change < 0:
  682. sum_large_LFPC += (LFPC * -1)
  683.  
  684. if LFPC_Count >= 1:
  685.  
  686. avg_large_LFPC = round(100*(sum_large_LFPC / LFPC_Count), 2)
  687.  
  688. avg_LFPC = round(100*(sum_LFPC / ref_Num), 2)
  689.  
  690. if Close_Price < Last:
  691. down_val += abs(Close_Price - Last)
  692. down_val_count += 1
  693.  
  694. if Close_Price > Last:
  695. up_val += Close_Price - Last
  696. up_val_count += 1
  697. if up_val_count >= 1 and down_val_count >= 1:
  698. trend = round(up_val_count / down_val_count, 2)
  699.  
  700.  
  701. timecounter = .02
  702. if ref_Num >= 15:
  703. timecounter = .02-((ref_Num / 15) * .000669)
  704. pause = timecounter/.05
  705.  
  706.  
  707. if ref_Num == 1:
  708. HOD = High_Price
  709. LOD = Low_Price
  710.  
  711. if ref_Num > 3 and High_Price > HOD:
  712. HOD = High_Price
  713. else:
  714. HOD = HOD
  715.  
  716. if ref_Num > 3 and Low_Price < LOD:
  717. LOD = Low_Price
  718. else:
  719. LOD = LOD
  720.  
  721.  
  722.  
  723. if Close_Price >= Open_Price:
  724. PriceTickGauge += round(Close_Price - Open_Price, 3)
  725. MoneyTickGauge += round(M_Price - lastMPrice, 3)
  726.  
  727. if Close_Price <= Open_Price:
  728. PriceTickGauge += round(Close_Price - Open_Price, 3)
  729. MoneyTickGauge += round(M_Price - lastMPrice, 3)
  730.  
  731. if ref_Num >= 1:
  732. TickGauge = round(PriceTickGauge / MoneyTickGauge, 4)
  733.  
  734. if M_Price > High_Price or M_Price < Low_Price:
  735. if M_Price > High_Price:
  736. xString = 'TA'
  737. else:
  738. xString = 'TB'
  739.  
  740. else:
  741. xString = ''
  742.  
  743.  
  744.  
  745. ###############################################################################################
  746.  
  747. if abs(Liq_change) > 0 and Money_Flow > 0:
  748. if LFPC >= .0012:
  749. rawdatalist = [Date, military_time, Close_Price, liqchgstr, liqstr, mf_Str, M_Price, LFP, LFPC, est_price_x, mRatio, sneakR, qratio]
  750.  
  751. LFP = round(Money_Flow / abs(Liq_change) *.01, 3)
  752. est_diff_x = round(LFPC * Close_Price, 2)
  753. if qratio >= 80:
  754. est_diff_x = abs(est_diff_x) * -1
  755. if Liquidity < 0:
  756. if Liq_change < 0:
  757. est_price_x = round(est_diff_x + Close_Price, 2)
  758. TA = True
  759. TB = False
  760. if Liq_change > 0:
  761. est_price_x = round(Close_Price + (-1 * est_diff_x), 2)
  762. TA = False
  763. TB = True
  764.  
  765.  
  766. if Liquidity > 0:
  767. if Liq_change < 0:
  768. est_price_x = round(Close_Price + (-1 * est_diff_x), 2)
  769. TA = False
  770. TB = True
  771. if Liq_change > 0:
  772. est_price_x = round(est_diff_x + Close_Price, 2)
  773. TA = True
  774. TB = False
  775.  
  776. if TA == True:
  777. if Close_Price >= est_price_x:
  778. Status = 'FILLED'
  779. if Close_Price < est_price_x:
  780. if HOD >= est_price_x:
  781. Status = 'P|Filled'
  782. if HOD < est_price_x:
  783. Status = '[ NYF ]'
  784. unfilled_TA_price = est_price_x
  785.  
  786. if TB == True:
  787. if Close_Price <= est_price_x:
  788. Status = 'FILLED'
  789. if Close_Price > est_price_x:
  790. if LOD <= est_price_x:
  791. Status = 'P|Filled'
  792. if LOD > est_price_x:
  793. Status = '| NYF |'
  794. unfilled_TB_price = est_price_x
  795.  
  796.  
  797. # if LFPC >= .002:
  798. # if Liq_change < 0:
  799. # est_price_x = round(est_diff_x + Close_Price, 2)
  800. # if Liq_change > 0:
  801. # est_price_x = round(Close_Price + (-1 * est_diff_x), 2)
  802. #
  803. # if LFPC >= .01:
  804. # if Liq_change < 0:
  805. # est_price_x = round(Close_Price + (-1 * est_diff_x), 2)
  806. # if Liq_change > 0:
  807. # est_price_x = round(est_diff_x + Close_Price, 2)
  808. #
  809.  
  810.  
  811.  
  812.  
  813.  
  814.  
  815.  
  816.  
  817.  
  818.  
  819.  
  820.  
  821.  
  822.  
  823.  
  824.  
  825.  
  826.  
  827.  
  828. ######### Changing status in opt 4 to show filled/unfilled est TA/TB prices
  829. #########################################################################
  830.  
  831.  
  832.  
  833.  
  834.  
  835.  
  836.  
  837.  
  838.  
  839. percent_Strength = Strength / ref_Num
  840. allData = [ref_Num,Date, military_time, High_Price,Low_Price,Close_Price, HLCC, M_Price, f_Vol, Money_Flow,MMM, Liquidity,Liq_change]
  841. Data_Dict = {'REF#':[ref_Num],'Date':[Date],'Time':[military_time], 'Close_Price':[Close_Price], 'M_Price':[M_Price], 'Volume':[f_Vol]}
  842. '''USING THIS DATA
  843. [0]REFERENCE NUMBER
  844. [1]DATE
  845. [2]MILITARY_TIME
  846. [3]HIGH_PRICE
  847. [4]LOW_PRICE
  848. [5]CLOSE_PRICE
  849. [6]HLCC
  850. [7]M_Price
  851. [8]F_VOL
  852. [9]MONEY_FLOW
  853. [10]MARKETMAKERMOVE 'MMM'
  854. [11]LIQUIDITY
  855. [12]LIQ_CHANGE
  856. '''
  857.  
  858.  
  859.  
  860.  
  861.  
  862. if abs(allData[7]-allData[6]) >= criteria:
  863. diff = abs(M_Price - Close_Price)
  864. Range_Clause = True
  865. range_identifier_all = 'All'
  866. else:
  867. Range_Clause = False
  868. rFound = False
  869.  
  870. if Range_Clause == True:
  871. rFound = True
  872. r_price = M_Price
  873. found_Price = HLCC
  874. Low_Range = round(HLCC - abs(float(M_Price - HLCC)), 2)
  875. High_Range = round(HLCC + abs(float(M_Price - HLCC)), 2)
  876. Low_Target = round(Low_Range - abs(float(M_Price - HLCC)), 2)
  877. High_Target = round(High_Range + abs(float(M_Price - HLCC)), 2)
  878. RT_Reference1 = [Low_Range, High_Range, Low_Target, High_Target]
  879. LRS = '$' + str(Low_Range)
  880. LRT = '$' + str(Low_Target)
  881. HRS = '$' + str(High_Range)
  882. HRT = '$' + str(High_Target)
  883. found_Price_String = '$' + str(found_Price)
  884. RT_Reference = [LRS, LRT, HRS, HRT]
  885. lows = [LRS, LRT]
  886. highs = [HRS, HRT]
  887. range_ref_String = range_ref_String
  888. target_String = range_ref_String + ': $'
  889. end_String = 'Price while found: $' + str(Close_Price)
  890. Target_String = '$' + str(Target)
  891.  
  892.  
  893.  
  894. if abs(Liq_change) > 0:
  895. LiqFlowPrice = .01*round(Money_Flow / abs(Liq_change), 3)
  896. VolLiqPrice = round(f_Vol / abs(Liq_change), 2)
  897. LiqFlowPriceClone = round(1000 * (abs(Liq_change) / Money_Flow), 4) * .01
  898.  
  899.  
  900. if M_Price >= High_Range:
  901. found += 1
  902. range_ref_String = "HIGH TARGET"
  903. tHigh = True
  904. RangeTarget = High_Target
  905. Target = M_Price
  906. range_identifier = 'High'
  907. found_Price = HLCC
  908. range_identifier_all = 'All'
  909. thList = ['HIGH TARGET', High_Target, highfilled]
  910. filled = False
  911. tLow = False
  912. ht_filled = False
  913. hr_filled = False
  914. highs_found += 1
  915. HighRangeFlow += Money_Flow
  916. elif M_Price<= Low_Range:
  917. found += 1
  918. range_ref_String = "LOW TARGET"
  919. tLow = True
  920. tHigh = False
  921. RangeTarget = Low_Target
  922. Target = M_Price
  923. range_identifier = 'Low'
  924. range_identifier_all = 'All'
  925. found_Price = HLCC
  926. tlList = ['LOW TARGET', Low_Target, lowfilled]
  927. filled = False
  928. lt_filled = False
  929. lr_filled = False
  930. lows_found += 1
  931. LowRangeFlow += Money_Flow
  932.  
  933. if lows_found > 0:
  934. AvgLowRangeFlow = LowRangeFlow / lows_found
  935. if highs_found > 0:
  936. AvgHighRangeFlow = HighRangeFlow / highs_found
  937.  
  938.  
  939.  
  940.  
  941.  
  942.  
  943. if M_Price == lastMPrice:
  944. DRC += 1
  945. Distribution_Price = M_Price
  946. Cumulutive_DPrice += Distribution_Price
  947. if M_Price == lastMPrice and qratio >= 30 and LFPC >= .001:
  948. Resistance = M_Price
  949. else:
  950. Resistance = 0
  951.  
  952. if M_Price == lastMPrice and mRatio >= 1 and sneakR >= 20:
  953. Support = M_Price
  954. else:
  955. Support = 0
  956.  
  957. if DRC == 0 and ref_Num >= 2:
  958. lastDPrice = statistics.mean(mpricelist)
  959. Weighted_Avg_DPrice = statistics.mean(mpricelist)
  960.  
  961. if ref_Num >= 3:
  962. avgMPrice = statistics.mean(mpricelist)
  963. mpricelist.pop(0)
  964.  
  965.  
  966. if DRC >= 1:
  967. lastDPrice = Distribution_Price
  968. if HLCC > Distribution_Price:
  969. DP_Uptick += 1
  970. DU += 1
  971. DP_UptickList.append(DP_Uptick)
  972.  
  973. if HLCC < Distribution_Price:
  974. DD += 1
  975. DP_Downtick += 1
  976. DP_DowntickList.append(DP_Uptick)
  977.  
  978. Avg_DPrice = round(Cumulutive_DPrice / DRC, 2)
  979. if DRC < 2:
  980. Weighted_Avg_DPrice = round(((lastDPrice + Avg_DPrice + avgMPrice) / 3), 2)
  981.  
  982. if DRC >= 2:
  983. Weighted_Avg_DPrice = round(((lastDPrice + Avg_DPrice + avgMPrice) / 3), 2)
  984.  
  985.  
  986.  
  987.  
  988. if ref_Num >= 2:
  989.  
  990. if Close_Price < Open_Price:
  991. DOWN_c += .25
  992. if OC_Range > avg_OC_Range:
  993. pg_down_var += .25
  994. if M_Price < lastMPrice and lastMPrice >= Last:
  995. DOWN_c += .25
  996. if Close_Price < Last:
  997. DOWN_c += .25
  998. if Close_Price < lastLPrice:
  999. DOWN_c += .25
  1000.  
  1001.  
  1002. if Close_Price < Weighted_Avg_DPrice:
  1003. pg_down_var += .25
  1004. if High_Price <= Weighted_Avg_DPrice:
  1005. pg_down_var += .25
  1006. if abs(Close_Price - Open_Price) < abs(M_Price - lastMPrice):
  1007. pg_down_var += .25
  1008.  
  1009.  
  1010.  
  1011. if Close_Price > Open_Price:
  1012. UP_c += .25
  1013. if OC_Range > avg_OC_Range:
  1014. pg_up_var += .25
  1015. if M_Price > lastMPrice and lastMPrice <= Last:
  1016. UP_c += .25
  1017. if Close_Price > Last:
  1018. UP_c += .25
  1019. if Close_Price > lastHPrice:
  1020. UP_c += .25
  1021.  
  1022.  
  1023. if Close_Price > Weighted_Avg_DPrice:
  1024. pg_up_var += .25
  1025. if Low_Price >= Weighted_Avg_DPrice:
  1026. pg_up_var += .25
  1027. if abs(Close_Price - Open_Price) > abs(M_Price - lastMPrice):
  1028. pg_up_var += .25
  1029.  
  1030. if HLCC < lastLPrice:
  1031. if High_Price <= lastHPrice:
  1032. DownTicks += 1
  1033. DownTicks += 1
  1034. DOWN_IV += round(round(Close_Price - Last, 2) - avg_HL_Range, 2)
  1035.  
  1036. if HLCC > lastHPrice:
  1037. if Low_Price >= lastLPrice:
  1038. UpTicks += 1
  1039. UpTicks += 1
  1040. UP_IV += round(round(Close_Price - Last, 2) + avg_HL_Range, 2)
  1041.  
  1042. if Low_Price <= lastLPrice and Close_Price >= Last:
  1043. hs_up += 1
  1044. if High_Price >= lastHPrice and Close_Price <= Last:
  1045. hs_down += 1
  1046. if hs_up > 0 and hs_down > 0:
  1047. hidden_strength = round(hs_up / hs_down, 2)
  1048.  
  1049. if DOWN_c >= 1 and UP_c >= 1:
  1050. Avg_Up_Move = round(UP_IV / UP_c, 2)
  1051. Avg_Down_Move = round(DOWN_IV / DOWN_c, 2)
  1052. Avg_Move = round(100*(DOWN_IV + UP_IV) / Close_Price, 2)
  1053. # Avg_Move = round(Avg_Move1 * 100, 2)
  1054. PainGauge = round((DOWN_c + pg_down_var) / (UP_c + pg_up_var), 3)
  1055. PainGaugePct = round(100-100*abs(PainGauge - .637) / 1.529, 2)
  1056. # BB_Strength = round(DOWN_c / DOWN_IV, 2) + round(UP_c / UP_IV, 2)
  1057.  
  1058. else:
  1059. PainGauge = 1
  1060.  
  1061.  
  1062.  
  1063.  
  1064.  
  1065.  
  1066.  
  1067.  
  1068. if DU >= 1 and DD >= 1:
  1069. DR = round(DU / DD, 2)
  1070.  
  1071.  
  1072. if M_Price > lastMPrice:
  1073. mticksymbol = Fore.GREEN+'∆'
  1074. MUTick += 1
  1075. MT += 1
  1076. if HLCC > Last:
  1077. MUTick += 1
  1078. MT += 1
  1079. if HLCC > M_Price:
  1080. MTR_copy += round(High_Price - Low_Price, 2)
  1081. if M_Price < lastMPrice:
  1082. mticksymbol = Fore.RED+'â—Š'
  1083. MDTick += 1
  1084. MT += 1
  1085. if HLCC < Last:
  1086. MDTick += 1
  1087. MT += 1
  1088. if HLCC < M_Price:
  1089. MTR_copy += round(Low_Price - High_Price, 2)
  1090. if M_Price == lastMPrice:
  1091. if DRC >= 2:
  1092. if M_Price > lastDPrice:
  1093. MUTick += 1
  1094. MT += 1
  1095. if M_Price < lastDPrice:
  1096. MDTick += 1
  1097. MT += 1
  1098.  
  1099. else:
  1100. pass
  1101.  
  1102.  
  1103.  
  1104.  
  1105.  
  1106.  
  1107. if MUTick >= 1 and MDTick >= 1:
  1108. MTR = round(MUTick / MT, 3)
  1109.  
  1110. if ref_Num >= 2:
  1111.  
  1112. if Open_Price > Last:
  1113. gapUp += 1
  1114. gapUpDistance += round(Open_Price - Last, 2)
  1115.  
  1116. elif Open_Price < Last:
  1117. gapDown += 1
  1118. gapDownDistance += round(abs(Open_Price - Last), 2)
  1119.  
  1120. if gapUp >= 1 and gapDown >= 1:
  1121. gapRatio = round(gapUp / gapDown, 3)
  1122. gapDistanceRatio = round(gapUpDistance / gapDownDistance, 2)
  1123. if ref_Num < 390:
  1124. volatility_index = round((gapUpDistance + gapDownDistance + gapUp + gapDown) / abs(390-ref_Num), 2)
  1125. else:
  1126. volatility_index = round((gapUpDistance + gapDownDistance + gapUp + gapDown) / 390, 2)
  1127.  
  1128. if M_Price > High_Price:
  1129. TradingAbove_Count += 1
  1130. TradingAbove_Diff += round(abs(M_Price - High_Price), 2)
  1131.  
  1132. if M_Price < Low_Price:
  1133. TradingBelow_Count += 1
  1134. TradingBelow_Diff += round(abs(M_Price - Low_Price), 2)
  1135.  
  1136. if TradingAbove_Count >= 1 or TradingBelow_Count >= 1:
  1137. TATBR_Sum = round(100*(TradingAbove_Diff - TradingBelow_Diff) / Close_Price, 2)
  1138.  
  1139.  
  1140. if abs(MIV_Index) >= .25 and ref_Num > 1:
  1141. MIV_Spike += abs(MIV_Index)
  1142. MIV_Spike_Count += 1
  1143. MIV_Spike_List.append(abs(MIV_Index))
  1144. Avg_MIV_Spike = round(MIV_Spike / MIV_Spike_Count, 3)
  1145. if abs(MIV_Index) >= .25 and ref_Num > 1:
  1146. Avg_MIV_Spike_String = str(Avg_MIV_Spike)
  1147.  
  1148.  
  1149. newratio = round(10*(LFP * LFPC), 3)
  1150.  
  1151.  
  1152. if Close_Price >= Open_Price and Liq_change > 0:
  1153. UpTicks += 1
  1154. Price_Tick = 1
  1155. Liq_Tick = 1
  1156. BuyVolume += f_Vol
  1157. BuyPower += Liq_change
  1158. SellPower += Liq_change * -1
  1159.  
  1160. if Liquidity < 0:
  1161. ShortPower += Liq_change*-1
  1162.  
  1163. PULQ = False
  1164. elif Close_Price >= Open_Price and Liq_change < 0:
  1165. Price_Tick = 0
  1166. Liq_Tick = -1
  1167. ShortVolume += f_Vol
  1168. BuyVolume += Liq_change * -1
  1169. ShortPower += Liq_change * -1
  1170. ShortVolumeTotal += f_Vol
  1171. ShortMoney += Money_Flow
  1172. ShortCount += 1
  1173. ShortLiquidity += abs(Liq_change)
  1174. S_Price += HLCC
  1175.  
  1176. PULQ = True
  1177. elif Close_Price <= Open_Price and Liq_change > 0:
  1178. Price_Tick = -1
  1179. Liq_Tick = 0
  1180. ShortPower += Liq_change
  1181. BuyPower += Liq_change
  1182. SellPower += Liq_change
  1183. CoverVolumeTotal += f_Vol
  1184. CoverMoney += Money_Flow
  1185. CoverCount += 1
  1186. CoverLiquidity += Liq_change
  1187. C_Price += HLCC
  1188.  
  1189.  
  1190. PULQ = False
  1191. elif Close_Price <= Open_Price and Liq_change < 0:
  1192. Price_Tick = -1
  1193. Liq_Tick = -1
  1194. SellVolume += f_Vol
  1195. SellPower += abs(Liq_change)
  1196. BuyPower += Liq_change
  1197. DownTicks += 1
  1198.  
  1199.  
  1200.  
  1201.  
  1202.  
  1203. PULQ = False
  1204. Price_Tick_Total += Price_Tick
  1205. Liq_Tick_Total += Liq_Tick
  1206. if abs(Price_Tick_Total) >= 1 and abs(Liq_Tick_Total) >= 1:
  1207. PTLT_Ratio = round(abs(Price_Tick_Total) / abs(Liq_Tick_Total), 2)
  1208.  
  1209. if UpTicks >= 1 and DownTicks >= 1:
  1210. UDR = round(UpTicks / DownTicks, 3)
  1211. Tick = Liq_Tick + Price_Tick
  1212. Strength += Tick
  1213. percent_Strength = round(Strength / ref_Num, 4)
  1214. step1 = -210 * ref_Num
  1215. step2 = step1 / 390
  1216. step3 = Strength / 390
  1217. step4 = round(100*(step3 / step2), 4)
  1218. new_Strength = round(100 - (step4 * 100), 2)
  1219. # new_Strength = round(100-(100*abs(percent_Strength- -.3153) / .8794), 2)
  1220. # new_Strength = round(100-(100*abs(percent_Strength - -.305128) / .93333), 2)
  1221. Intraday_Strength = round(100-(100*abs(percent_Strength- -.3333) / .8974), 2)
  1222. adj_Strength = round(100-(100*abs(percent_Strength - -.3053) / .9512), 2)
  1223.  
  1224. LQP_Match = bool
  1225.  
  1226.  
  1227. if qratio < 30 and sneakR < 10 and LFPC >= .001:
  1228. if Liq_change < 0:
  1229. EstimatedPrice = round(Close_Price + (Close_Price * LFPC), 2)
  1230.  
  1231. if Liq_change > 0:
  1232. EstimatedPrice = round(Close_Price - (Close_Price * LFPC), 2)
  1233.  
  1234.  
  1235.  
  1236. if qratio >= 35 and sneakR >= 15 and LFPC >= .001:
  1237. if Liq_change > 0:
  1238. EstimatedPrice = round(Close_Price - (Close_Price * LFPC), 2)
  1239.  
  1240. if Liq_change < 0:
  1241. EstimatedPrice = round(Close_Price + (Close_Price * LFPC), 2)
  1242.  
  1243. if qratio < 20 and sneakR > qratio and LFPC >= .001:
  1244. if Liq_change < 0:
  1245. EstimatedPrice = round(Close_Price - (Close_Price * LFPC), 2)
  1246. if Liq_change > 0:
  1247. EstimatedPrice = round(Close_Price + (Close_Price * LFPC), 2)
  1248.  
  1249.  
  1250.  
  1251.  
  1252.  
  1253.  
  1254.  
  1255. if Liquidity < 0 and Liq_change < 0:
  1256. LQP_Match = True
  1257.  
  1258. if Liquidity > 0 and Liq_change > 0:
  1259. LQP_Match = True
  1260.  
  1261.  
  1262. if Liquidity > 0 and Liq_change < 0:
  1263. LQP_Match = False
  1264.  
  1265. if Liquidity < 0 and Liq_change > 0:
  1266. LQP_Match = False
  1267.  
  1268.  
  1269.  
  1270.  
  1271.  
  1272.  
  1273.  
  1274.  
  1275.  
  1276. if menu_ans == '1' or menu_ans == 'oldfile':
  1277. if Liquidity_Data == 'y':
  1278. PrintInfo = True
  1279. est_diff = round(.01*(100 - LFP), 2)
  1280. est_diff1 = round(LFPC * Close_Price, 2)
  1281. if Liquidity < 0:
  1282. if Liq_change < 0:
  1283. est_price = round(est_diff + Close_Price, 2)
  1284. est_price1 = round(est_diff1 + Close_Price, 2)
  1285. if Liq_change > 0:
  1286. est_price = round(Close_Price - est_diff, 2)
  1287. est_price1 = round(Close_Price + (-1 * est_diff1), 2)
  1288. if Liquidity > 0:
  1289. if Liq_change < 0:
  1290. est_price = round(Close_Price - est_diff, 2)
  1291. est_price1 = round(Close_Price + (-1 * est_diff1), 2)
  1292. if Liq_change > 0:
  1293. est_price = round(est_diff + Close_Price, 2)
  1294. est_price1 = round(est_diff1 + Close_Price, 2)
  1295.  
  1296.  
  1297. sumVol += f_Vol
  1298. sum_Flow += Money_Flow
  1299.  
  1300.  
  1301. avg_HL_Range = sum_HL_Range / ref_Num
  1302. avg_OC_Range = sum_OC_Range / ref_Num
  1303. avg_Liq_change = sum_Liq / ref_Num
  1304.  
  1305.  
  1306. if DRC < 2:
  1307. if Close_Price > Open_Price:
  1308. ticksymbolo = Fore.GREEN+Style.BRIGHT+'ˆ'+Style.RESET_ALL
  1309. if Close_Price < Open_Price:
  1310. ticksymbolo = Fore.RED+Style.BRIGHT+'ˇ'+Style.RESET_ALL
  1311.  
  1312. if DRC >= 2:
  1313. if HLCC >= Weighted_Avg_DPrice:
  1314. ticksymbolo = fg(14)+'ˆ'+rs.all
  1315. if HLCC <= Weighted_Avg_DPrice:
  1316. ticksymbolo = fg(227)+'ˇ'+rs.all
  1317.  
  1318.  
  1319. if (M_Price + lastMPrice) / 2 < (Last + Close_Price) / 2 - (.1 * avg_OC_Range):
  1320. if lastMPrice >= lastLPrice and lastMPrice <= lastHPrice:
  1321. ticksymbolc = Fore.GREEN+Style.BRIGHT+'ˆ '+Style.RESET_ALL
  1322. elif lastMPrice >= lastHPrice and lastMPrice <= lastHPrice + avg_OC_Range:
  1323. ticksymbolc = Fore.YELLOW+Style.BRIGHT+'∞ '+Style.RESET_ALL
  1324.  
  1325.  
  1326.  
  1327.  
  1328. if (M_Price + lastMPrice) / 2 > (Last + Close_Price) / 2 + (.1 * avg_OC_Range):
  1329. if lastMPrice >= lastLPrice and lastMPrice <= lastHPrice:
  1330. ticksymbolc = Fore.RED+Style.BRIGHT+'ˇ '+Style.RESET_ALL
  1331.  
  1332. elif lastMPrice <= lastLPrice and lastMPrice >= lastLPrice - avg_OC_Range:
  1333. ticksymbolc = Fore.YELLOW+Style.BRIGHT+'• '+Style.RESET_ALL
  1334.  
  1335.  
  1336.  
  1337.  
  1338.  
  1339. if abs(MIV_Index) >= .25 and ref_Num > 1:
  1340. MIV_Spike += abs(MIV_Index)
  1341. MIV_Spike_Count += 1
  1342. MIV_Spike_List.append(abs(MIV_Index))
  1343. Avg_MIV_Spike = round(MIV_Spike / MIV_Spike_Count, 3)
  1344. if abs(MIV_Index) >= .25 and ref_Num > 1:
  1345. Avg_MIV_Spike_String = str(Avg_MIV_Spike)
  1346. if MIV_Index > 0:
  1347. MIV_Index_String = str(round(MIV_Index, 2))
  1348. print(Fore.BLACK+Back.RED+Style.BRIGHT+'MIV_Index: '+Style.RESET_ALL+Fore.BLACK+Back.RED+'[+'+MIV_Index_String+'%]'+Style.RESET_ALL+Fore.BLACK+Back.RED+Style.BRIGHT+'Avg Spike: '+Style.RESET_ALL+Fore.BLACK+Back.RED+'[+',Avg_MIV_Spike,'%]'+Style.RESET_ALL+Fore.WHITE+'Volume:'+'{:,.2f}'.format(f_Vol)+Style.RESET_ALL)
  1349.  
  1350. elif MIV_Index < 0:
  1351. MIV_Index_String = str(round(MIV_Index, 2))
  1352. print(Fore.BLACK+Back.CYAN+Style.BRIGHT+'MIV_Index: '+Style.RESET_ALL+Fore.BLACK+Back.CYAN+'['+MIV_Index_String+'%]'+Style.RESET_ALL+Fore.BLACK+Back.CYAN+Style.BRIGHT+'Avg Spike: '+Style.RESET_ALL+Fore.BLACK+Back.CYAN+'[',Avg_MIV_Spike,'%]'+Style.RESET_ALL+Fore.WHITE+'Volume:'+'{:,.2f}'.format(f_Vol)+Style.RESET_ALL)
  1353.  
  1354.  
  1355.  
  1356.  
  1357. if abs(Liq_change) > 0:
  1358. LFP = round(Money_Flow / abs(Liq_change) *.01, 3)
  1359. LFPC = round(1000 * (abs(Liq_change) / Money_Flow) * .01, 4)
  1360.  
  1361. if LFP < 13 and LFPC < .085:
  1362. LFP_WarningStr = 'FKN SELL THIS SHIT SON %s' % LFP
  1363. LFP_WarningStr_clr = colored(LFP_WarningStr, 'red', attrs=['bold','blink'])
  1364. # print(LFP_WarningStr_clr)
  1365.  
  1366. if LFP < 20 and LFP > 13:
  1367. LFP_WarningStr = 'FKN BUY THIS SHIT SON %s' % LFP
  1368. LFP_WarningStr_clr = colored(LFP_WarningStr, 'cyan', attrs=['bold','blink'])
  1369. # print(LFP_WarningStr_clr)
  1370.  
  1371.  
  1372. # if Money_Flow > 0 and lastFlow > 0:
  1373. # if f_Vol > 0 and lastVol > 0:
  1374. # M_index = round(100*(Money_Flow / lastFlow), 3)
  1375. # V_index = round(100*(f_Vol / lastVol), 3)
  1376. # new_MIV = round(M_index - V_index, 3)
  1377. # avgVol = sumVol / ref_Num
  1378.  
  1379. #
  1380. # if new_MIV >= .15 and OC_Range < avg_HL_Range:
  1381. # WarningString = Fore.CYAN+'BULLISH MV'
  1382. # print(WarningString)
  1383. #
  1384. # if new_MIV <= -.15 and OC_Range < avg_HL_Range:
  1385. # WarningString = Fore.RED+'BEARISH MV'
  1386. # print(WarningString)
  1387.  
  1388.  
  1389.  
  1390.  
  1391.  
  1392.  
  1393.  
  1394. SS = str(new_Strength)
  1395. abs_Liq = abs(Liq_change)
  1396. counter += 1
  1397.  
  1398.  
  1399.  
  1400. if ShortCount >= 1:
  1401. ShortPrice = round(S_Price / ShortCount, 2)
  1402.  
  1403. if CoverCount >= 1:
  1404. CoverPrice = round(C_Price / CoverCount, 2)
  1405.  
  1406.  
  1407. if ref_Num < 10:
  1408. AvgStrengthReference += new_Strength
  1409. if ref_Num == 20:
  1410. AvgStrengthReference = StrengthReference / ref_Num
  1411. StrengthReference = AvgStrengthReference
  1412. counter = 1
  1413. if ref_Num >= 20:
  1414. counter += 1
  1415. AvgStrengthReference = AvgStrengthReference + new_Strength
  1416.  
  1417. if counter < 20 and counter >= 1:
  1418. AvgStrengthReference = AvgStrengthReference / counter
  1419. StrengthReference = (AvgStrengthReference + new_Strength) / counter
  1420.  
  1421. if counter == 20:
  1422. counter = counter * 0
  1423. AvgStrengthReference = AvgStrengthReference * 0 + StrengthReference
  1424. StrengthReference = StrengthReference
  1425.  
  1426.  
  1427.  
  1428.  
  1429. if M_Price == lastMPrice:
  1430. WarningString = '!!!'
  1431. mticksymbol = Fore.YELLOW+'≈'
  1432. else:
  1433. WarningString = ''
  1434. if OC_Range >= avg_HL_Range:
  1435. if Liq_change > avg_Liq_change:
  1436. if Close_Price > Open_Price:
  1437. WarningString = Fore.CYAN+'[xxx]'+Style.RESET_ALL
  1438. if Close_Price < Open_Price:
  1439. WarningString = Fore.RED+'[xxx]'+Style.RESET_ALL
  1440. else:
  1441. WarningString = Fore.YELLOW+'[xxx]'
  1442.  
  1443. else:
  1444. WarningString = ''
  1445.  
  1446.  
  1447. if PULQ == True and OC_Range <= avg_OC_Range *.3:
  1448. if abs(Liq_change) < 500 and Liq_change < 0:
  1449. if abs(Liq_change) < avg_Liq_change * .05:
  1450. WarningString = '[*]'
  1451. else:
  1452. WarningString = ''
  1453.  
  1454.  
  1455. if mRatio >= 1:
  1456. WarningString = Fore.WHITE+' $'
  1457. if mRatio > 2:
  1458. WarningString = Style.RESET_ALL+Style.BRIGHT+' $'
  1459. if mRatio >= 3:
  1460. WarningString = Style.RESET_ALL+ef.u+' $$$'+rs.all
  1461. if ref_Num >= 5:
  1462. OC_RangePct = round(OC_Range / avg_OC_Range * 100, 2)
  1463. HL_RangePct = round(HL_Range / avg_HL_Range * 100, 2)
  1464.  
  1465. if abs(OC_Range) > 0 and abs(HL_Range) > 0:
  1466. RangePct = round(OC_Range / (HL_Range / avg_HL_Range) * 1000, 4)
  1467. OCHL_RangePct = round(OC_Range / HL_Range * 100, 4)
  1468. OC_HL_RangePctStr = str(OC_HL_RangePct)+'%'
  1469. OCHL_RangePctStr = str(OC_HL_RangePct)+'%'
  1470. else:
  1471. OCHL_RangePctStr = ''
  1472. OC_HL_RangePctStr = ''
  1473.  
  1474.  
  1475. Tick_String = ''
  1476. # if LFP < 100 and LFPC >= .001:
  1477. # est_diff = round(.01*(100 - LFP), 2)
  1478. # if Liq_change > 0:
  1479. # est_price = round(est_diff + Close_Price, 2)
  1480. # if Liq_change < 0:
  1481. # est_price = round(Close_Price - est_diff, 2)
  1482.  
  1483. if LFPC > 0:
  1484. est_diff = round(LFPC * Close_Price, 2)
  1485. if Liq_change > 0 and Liquidity > 0:
  1486. est_price = round(est_diff + Close_Price, 2)
  1487. if Liq_change < 0 and Liquidity < 0:
  1488. est_price = round(est_diff + Close_Price, 2)
  1489. if Liquidity > 0 and Liq_change < 0:
  1490. est_price = round(Close_Price - est_diff, 2)
  1491.  
  1492. else:
  1493. est_price = M_Price
  1494.  
  1495.  
  1496. if M_Price < lastMPrice and Close_Price < Last:
  1497. if M_Price - lastMPrice < Close_Price - Last and abs(Close_Price - Last) >= avg_OC_Range:
  1498. Tick_String = fg(35)+bg(233)+'BULL STRENGTH'+rs.all+WarningString+' '
  1499.  
  1500. if M_Price - lastMPrice > abs(Close_Price - Last) and Liq_change > 0:
  1501. Tick_String = fg(0)+bg(226)+ef.u+ef.b+'REVERSAL'+rs.all+WarningString+' '
  1502.  
  1503.  
  1504. elif M_Price > lastMPrice and Close_Price > Last:
  1505. if M_Price - lastMPrice < (Close_Price - Last)*.5 and abs(Close_Price - Last) >= avg_OC_Range:
  1506. Tick_String = fg(188)+bg(21)+ef.b+'BULL ACCELLERATION'+rs.all+WarningString+' '
  1507.  
  1508.  
  1509. if M_Price > lastMPrice and Close_Price < Last:
  1510. Tick_String = fg(158)+bg(124)+'BEARISH REVERSAL'+rs.all+WarningString+' '
  1511.  
  1512. if Liq_change > 0:
  1513. if M_Price < Close_Price:
  1514. if LFPC >= .001:
  1515. Tick_String = fg(220)+bg(0)+'SKETCH AF ALGO UPTICK'+rs.all+WarningString+' '
  1516. else:
  1517. Tick_String = fg(50)+bg(100)+'ALGO UPTICK'+rs.all+WarningString+' '
  1518.  
  1519. if M_Price >= Close_Price and M_Price < High_Price + .01:
  1520. if Close_Price >= Open_Price:
  1521. Tick_String = Fore.BLUE+Back.GREEN+'UPTICK'+Style.RESET_ALL+WarningString+' '
  1522.  
  1523. if M_Price == High_Price or M_Price == lastHPrice:
  1524. Tick_String = colored('SHORTING HIGH', 'yellow', attrs=['blink'])+Style.RESET_ALL+WarningString+' '
  1525.  
  1526. if Liq_change < 0:
  1527.  
  1528. if Close_Price > Open_Price and M_Price < Close_Price:
  1529. if M_Price < lastMPrice:
  1530. if abs(M_Price - lastMPrice) >= .5 * avg_OC_Range:
  1531. Tick_String = colored('FAKEY IMPULSE', 'blue')+Style.RESET_ALL+WarningString+' '
  1532. else:
  1533.  
  1534. Tick_String = colored('EXTENDO SHORT', 'blue')+Style.RESET_ALL+WarningString+' '
  1535. else:
  1536.  
  1537. if OC_Range > avg_HL_Range:
  1538. Tick_String = fg(11)+bg(60)+'PRICE UP LIQ DOWN'+rs.all+' '
  1539.  
  1540. if Close_Price > lastHPrice:
  1541. if MTR >= .5:
  1542. Tick_String = fg(232)+bg(32)+'PRICE UP LIQ DOWN'+rs.all+WarningString+' '
  1543. else:
  1544. pass
  1545.  
  1546. else:
  1547. Tick_String = Fore.WHITE+'PRICE UP LIQ DOWN'+WarningString+' '
  1548. else:
  1549. pass
  1550.  
  1551.  
  1552.  
  1553.  
  1554.  
  1555.  
  1556.  
  1557. if mRatio < .20 and sneakR < 9: ############## THIS IS GOOD
  1558. if M_Price > High_Price or M_Price >= lastHPrice: ##################### THIS IS GOOD
  1559. Tick_String = colored('DUMP COMING', 'yellow', 'on_red') ####################### THIS IS GOOD
  1560. bearTS = True
  1561.  
  1562. if mRatio < .16 and sneakR < 8:
  1563. Tick_String = colored('MAX VOLATILITY PUMP & DUMP', 'red', attrs=['bold', 'blink'])
  1564. bearTS = True
  1565.  
  1566. else:
  1567. pass
  1568.  
  1569.  
  1570.  
  1571.  
  1572.  
  1573. else:
  1574. bearTS = False
  1575. pass
  1576.  
  1577.  
  1578. if M_Price > High_Price and M_Price > lastHPrice:
  1579. ta_price = round((Close_Price * LFPC) + Close_Price, 2)
  1580. if LFPC >= .0013 and LFPC < .002:
  1581.  
  1582.  
  1583. bullTS = False
  1584. Tick_String = colored('TRADING ABOVE', 'cyan', 'on_grey')+WarningString+' ($%s) ' % ta_price
  1585. if LFPC >= .002:
  1586. bullTS = False
  1587. Tick_String = colored('TRADING ABOVE', 'grey', 'on_cyan')+WarningString+' ($%s) ' % ta_price
  1588. else:
  1589. pass
  1590. if M_Price < Low_Price and M_Price < lastLPrice:
  1591. tb_price = round(Close_Price - (LFPC * Close_Price), 2)
  1592.  
  1593. # tb_price = round((Close_Price * (LFPC * -1) + Close_Price), 2)
  1594. if LFPC >= .0013 and LFPC < .002:
  1595. Tick_String = colored('TRADING BELOW', 'red', 'on_grey')+WarningString+' ($%s) ' % tb_price
  1596. if LFPC >= .002:
  1597. Tick_String = colored('TRADING BELOW', 'grey', 'on_red')+WarningString+' ($%s) ' % tb_price
  1598. else:
  1599. pass
  1600.  
  1601.  
  1602. if mRatio >= 2 and Range_Clause == False:
  1603. if mRatio >= 5:
  1604. if MIV_Index < 0 and abs(MIV_Index) > Avg_MIV_Spike:
  1605. if Liq_change > 0:
  1606. if Liquidity < 0:
  1607. Tick_String = Fore.WHITE+Style.BRIGHT+'MASSIVE FKN DUMPING'+Style.RESET_ALL+WarningString+' '
  1608. elif Liquidity > 0:
  1609. Tick_String = Fore.CYAN+Style.BRIGHT+'MASSIVE FKN BUYING'+Style.RESET_ALL+WarningString+' '
  1610. if Liq_change < 0:
  1611. Tick_String = Fore.WHITE+Style.BRIGHT+Back.RED+'MASSIVE FKN DUMPING'+Style.RESET_ALL+WarningString+' '
  1612. bearTS = True
  1613.  
  1614. else:
  1615. bearTS = False
  1616. pass
  1617.  
  1618.  
  1619. if MIV_Index > 0 and MIV_Index > Avg_MIV_Spike:
  1620. if Liq_change < 0:
  1621. Tick_String = Fore.WHITE+Style.BRIGHT+'MASSIVE FKN DUMPING'+Style.RESET_ALL+WarningString+' '
  1622. bearTS = True
  1623. else:
  1624. bearTS = False
  1625. pass
  1626.  
  1627.  
  1628. if abs(MIV_Index) < Avg_MIV_Spike and abs(MIV_Index) < .25:
  1629. Tick_String = Style.BRIGHT+'MASSIVE FLOW NO MIV'+Style.RESET_ALL+WarningString+' '
  1630.  
  1631. else:
  1632. Tick_String = Style.BRIGHT+Back.YELLOW+Fore.WHITE+'MASSIVE FLOW'+Style.RESET_ALL+WarningString+' '
  1633.  
  1634.  
  1635.  
  1636. pass
  1637.  
  1638.  
  1639. if abs(Liq_change) < .05 * avg_Liq_change:
  1640. if Open_Price > Last:
  1641. Tick_String = fg(150)+bg(52)+'ALGOS DOING SOME BEARSHIT'+rs.all
  1642.  
  1643. # Tick_String = Fore.RED+Style.BRIGHT+Back.WHITE+'ALGOS DOIN SUMBEARSHIT'+Style.RESET_ALL+WarningString+' '
  1644.  
  1645.  
  1646. if Close_Price < lastDPrice:
  1647. if M_Price > lastMPrice and Liq_change < 0:
  1648. Tick_String = fg(233)+bg(184)+'ALGOS DOIN SOME BULLSHIT'+rs.all
  1649.  
  1650. # Tick_String = Fore.CYAN+Style.BRIGHT+'ALGOS DOIN SUMBULLSHIT'+Style.RESET_ALL+WarningString+' '
  1651.  
  1652. else:
  1653. pass
  1654.  
  1655.  
  1656.  
  1657.  
  1658.  
  1659.  
  1660.  
  1661.  
  1662. if Liq_change > 0:
  1663. if Liq_change > avg_Liq_change * 2 and M_Price >= Close_Price + (.75 * avg_HL_Range):
  1664. if sneakR < 10:
  1665. bullTS = True
  1666. if MIV_Index < -.25:
  1667. Tick_String = colored('BULL EXHAUSTION SETUP', 'cyan', 'on_red')
  1668. bearTS = True
  1669.  
  1670. else:
  1671. Tick_String = colored('BEAR EXHAUSTION SETUP', 'red', 'on_cyan')
  1672. else:
  1673. pass
  1674. else:
  1675. bullTS = False
  1676. pass
  1677.  
  1678.  
  1679. if mRatio >= 1 and sneakR > 100:
  1680. if M_Price > lastMPrice and Close_Price < Last:
  1681. Tick_String = colored('LARGE DUMPING', 'white', 'on_red')+WarningString+' '
  1682.  
  1683. if mRatio < .25 and sneakR < 5:
  1684. if mRatio < .2 and LFP < 100:
  1685. if Liq_change > 0:
  1686. Tick_String = Fore.BLUE+Style.BRIGHT+'BREAKOUT'+Style.RESET_ALL+WarningString+' '
  1687. bullTS = True
  1688.  
  1689. if Liq_change < 0:
  1690. Tick_String = Fore.YELLOW+Style.BRIGHT+'BREAKDOWN'+Style.RESET_ALL+WarningString+' '
  1691. bearTS = True
  1692. else:
  1693. Tick_String = Fore.RED+Back.YELLOW+Style.BRIGHT+'VOLATILITY COMING'+Style.RESET_ALL+WarningString+' '
  1694. nTS = True
  1695.  
  1696.  
  1697. else:
  1698. bearTS = False
  1699. bullTS = False
  1700. nTS = False
  1701. pass
  1702.  
  1703. else:
  1704. nTS = False
  1705. bearTS = False
  1706. bullTS = False
  1707. pass
  1708.  
  1709.  
  1710. if OC_Range > avg_OC_Range and f_Vol < avgVol * .3 and HL_Range > avg_HL_Range:
  1711. if Close_Price < Open_Price and Close_Price < M_Price:
  1712. Tick_String = Fore.RED+Style.BRIGHT+'SKETCHY SELLING'+Style.RESET_ALL+WarningString+' '
  1713.  
  1714. if Close_Price > Open_Price and Close_Price > M_Price:
  1715. Tick_String = Fore.GREEN+Style.BRIGHT+'SKETCHY BUYING'+Style.RESET_ALL+WarningString+' '
  1716.  
  1717.  
  1718.  
  1719.  
  1720.  
  1721.  
  1722. # if Open_Price > Last and mRatio < .15:
  1723. # Tick_String = colored('PUMP N DUMP V2', 'yellow', attrs=['blink'])
  1724. # bearTS = True
  1725. #
  1726. # else:
  1727. # pass
  1728.  
  1729. if sneakR >= 20 and mRatio < 1:
  1730. if Liq_change < 0 and mRatio >= .6:
  1731. if LFP < 500:
  1732. if est_price < Close_Price:
  1733. price_str = str(est_price)
  1734. Tick_String = 'PROBABLY TRADING BELOW'+' ($%s)' % price_str
  1735. if est_price > Close_Price:
  1736. price_str = str(est_price)
  1737. Tick_String = 'PROBABLY TRADING ABOVE'+' ($%s)' % price_str
  1738.  
  1739.  
  1740. else:
  1741. pass
  1742. else:
  1743. pass
  1744.  
  1745.  
  1746.  
  1747. if mRatio < .18 and sneakR < 10:
  1748. if LFPC >= .001:
  1749. if Liquidity < 0:
  1750. if Liq_change < 0:
  1751. est_price = round(est_diff + Close_Price, 2)
  1752. est_price1 = round(est_diff1 + Close_Price, 2)
  1753.  
  1754. if Liq_change > 0:
  1755. est_price = round(Close_Price - est_diff, 2)
  1756. est_price1 = round(Close_Price + (-1 * est_diff1), 2)
  1757.  
  1758. if Liquidity > 0:
  1759. if Liq_change < 0:
  1760. est_price = round(Close_Price - est_diff, 2)
  1761. est_price1 = round(Close_Price + (-1 * est_diff1), 2)
  1762.  
  1763. if Liq_change > 0:
  1764. est_price = round(est_diff + Close_Price, 2)
  1765. est_price1 = round(est_diff1 + Close_Price, 2)
  1766.  
  1767.  
  1768. if est_price1 > Close_Price:
  1769. if M_Price > High_Price:
  1770. if Liq_change < avg_Liq_change and abs(Liq_change) > 500:
  1771. Tick_String = fg(117)+bg(240)+'RELENTLESS BEAR TRAP'+rs.all+WarningString+' '
  1772. if Liq_change >= avg_Liq_change:
  1773. Tick_String = fg(52)+bg(240)+'RELENTLESS BULL TRAP'+rs.all+WarningString+' '
  1774. if est_price1 < Close_Price:
  1775. Tick_String = fg(52)+bg(240)+'RELENTLESS BULL TRAP'+rs.all+WarningString+' '
  1776. nTS = True
  1777. else:
  1778. nTS = False
  1779. pass
  1780. else:
  1781. nTS = False
  1782. pass
  1783.  
  1784. if mRatio < .15 and sneakR < 8:
  1785. if M_Price > High_Price:
  1786. if Liq_change > avg_Liq_change:
  1787. est_price = round(-1*(LFPC * Close_Price) + Close_Price, 2)
  1788. est_price_str = str(est_price)
  1789. Tick_String = Fore.YELLOW+'GET THE FUCK OUT ($%s)' % est_price_str
  1790. bearTS = True
  1791.  
  1792. if M_Price < Low_Price:
  1793. if abs(Liq_change) > avg_Liq_change:
  1794. est_price = round(1*(LFPC * Close_Price) + Close_Price, 2)
  1795. est_price_str = str(est_price)
  1796. Tick_String = Fore.YELLOW+'MONEY MOVING ($%s)' % est_price_str
  1797. bullTS = True
  1798.  
  1799. else:
  1800. bearTS = False
  1801. bullTS = False
  1802. pass
  1803.  
  1804.  
  1805.  
  1806.  
  1807.  
  1808. if Liq_change < 0 and M_Price > Close_Price:
  1809. if mRatio < .5 and sneakR < 10:
  1810. Tick_String = colored('MAJOR DOWNTICK', 'yellow', 'on_red', attrs=['bold'])
  1811. bearTS = True
  1812.  
  1813. else:
  1814. pass
  1815.  
  1816. else:
  1817. bearTS = False
  1818.  
  1819. if sneakR >= 200:
  1820. Tick_String = fg(184)+bg(17)+'HUGE sneakR (%s)' % sneakR
  1821.  
  1822.  
  1823. if sneakR >= 100 and mRatio >= 3:
  1824. Tick_String = colored('SERIOUSLY BULLISH', 'white', 'on_blue', attrs=['bold'])
  1825. bullTS = True
  1826.  
  1827. if mRatio >= 5:
  1828.  
  1829.  
  1830. if sneakR / mRatio >= 35 and sneakR > 200:
  1831. Tick_String = colored('EXTREMELY FKN BULLISH', 'grey', 'on_cyan', attrs=['bold', 'blink'])
  1832. bullTS = True
  1833. bearTS = False
  1834. if sneakR / mRatio <= 15 and Liq_change < 0:
  1835. Tick_String = bg(100)+bg(153)+fg(95)+fg(160)+'MASSIVE DUMPING <LONG TERM CONFIDENCE (3-5DAYS) ONLY>'+rs.all+WarningString+' '
  1836. bearTS = True
  1837. bullTS = False
  1838.  
  1839. else:
  1840. bullTS = False
  1841. bearTS = False
  1842. pass
  1843. else:
  1844. bullTS = False
  1845. bearTS = False
  1846. pass
  1847.  
  1848.  
  1849. else:
  1850. bullTS = False
  1851. bearTS = False
  1852. pass
  1853.  
  1854. if sneakR < 50 and mRatio >= 5:
  1855. if Close_Price > lastMPrice + avg_HL_Range:
  1856. Tick_String = colored('TOP CALLA', 'red', 'on_white', attrs=['bold'])
  1857. bearTS = True
  1858. if Close_Price < lastMPrice - avg_HL_Range:
  1859. Tick_String = colored('FOUND THE BOTTOM', 'blue', 'on_cyan')
  1860. bullTS = True
  1861. else:
  1862. bullTS = False
  1863. bearTS = False
  1864.  
  1865.  
  1866.  
  1867. if mRatio >= 1 and mRatio < 1.5:
  1868. if sneakR >= 60 and Liq_change >= avg_Liq_change:
  1869. Tick_String = fg(117)+bg(244)+'BUY ENTRY'+rs.all+WarningString+' '
  1870. bullTS = True
  1871.  
  1872. else:
  1873. pass
  1874.  
  1875. if Open_Price > Last:
  1876. if mRatio < .175 and sneakR < 10:
  1877. if Liq_change > 0:
  1878. est_price = round(1*(LFPC * Close_Price) + Close_Price, 2)
  1879. Tick_String = fg(0)+bg(118)+'ALGOS WANT IT HIGHER ($'+str(est_price)+')'+fg.rs
  1880. if Liq_change < 0:
  1881. est_price = round(-1*(LFPC * Close_Price) + Close_Price, 2)
  1882. Tick_String = fg(0)+bg(94)+'ALGOS WANT IT LOWER ($'+str(est_price)+')'+rs.all
  1883. else:
  1884. pass
  1885.  
  1886. if sneakR >= 20 and mRatio < .35:
  1887. if ref_Num >= 2 and lastmRatio < 1:
  1888. Tick_String = fg(197)+bg(235)+'$ BEING PUT TO WORK $'+rs.all+WarningString+' '
  1889. bullTS = True
  1890. else:
  1891. bullTS = False
  1892. pass
  1893.  
  1894.  
  1895.  
  1896.  
  1897. if mRatio >= 3 and sneakR / mRatio <= 10:
  1898. if mRatio >= qratio:
  1899. if Liquidity > 0:
  1900. Tick_String = fg(16)+bg(213)+'MASSIVE BUYING <LONG TERM CONFIDENCE ONLY>'+rs.all+WarningString+' '
  1901. bullTS = True
  1902. bearTS = False
  1903. if Liquidity < 0 or Liquidity - Liq_change < 0:
  1904. Tick_String = bg(100)+bg(153)+fg(95)+fg(160)+'MASSIVE SHORT COVERING <LONG TERM CONFIDENCE ONLY>'+rs.all+WarningString+' '
  1905. bearTS = True
  1906. bullTS = False
  1907. else:
  1908. bearTS1 = False
  1909. bullTS = False
  1910. bearTS = False
  1911.  
  1912.  
  1913. else:
  1914. bearTS1 = False
  1915.  
  1916. if Liquidity < 0:
  1917. if Liq_change <= avg_Liq_change and Liq_change > 0: #################
  1918. Tick_String = fg(169)+bg(0)+'PIRANAHS BITING'+rs.all+WarningString+' ' #################
  1919. if Liq_change > avg_Liq_change * 2 and Liq_change > 0:
  1920. if mRatio >= 1 and mRatio < 3:
  1921. Tick_String = fg(153)+bg(88)+ef.u+'MASSIVE SHORT COVERING RALLY'+rs.all+WarningString+' '
  1922. bullTS = True
  1923. bearTS1 = False
  1924. if mRatio >= 3:
  1925. Tick_String = fg(158)+bg(235)+'DANGEROUS SHORT COVERING'+rs.all+WarningString+' ' ##############
  1926. bearTS1 = True
  1927. bullTS = False
  1928.  
  1929. else:
  1930. bullTS = False
  1931. bearTS1 = False
  1932. pass
  1933.  
  1934. if sneakR >= 25 and new_sneakR / sneakR < 1.1:
  1935. if mRatio < .5:
  1936. if Liquidity > 0:
  1937. Tick_String = fg(118)+bg(234)+'BULLISH ACCUMULATION'+rs.all+WarningString+' '
  1938. if Liquidity < 0:
  1939. Tick_String = fg(96)+fg(17)+bg(103)+bg(141)+'BEARISH ACCUMULATION'+rs.all+WarningString+' '
  1940. if Liq_change < 0 and Close_Price < Open_Price:
  1941. if Close_Price < lastLPrice and abs(Liq_change) > avg_Liq_change + (avg_Liq_change * .2):
  1942. if Intraday_Strength >= new_Strength:
  1943. Tick_String = fg(50)+bg(243)+'REDBULL RALLY'+rs.all+WarningString+' '
  1944. bullTS = True
  1945. if new_Strength < Intraday_Strength:
  1946. Tick_String = fg(255)+bg(52)+'BEARS RUN IT'+rs.all+WarningString+' '
  1947. bullTS = False
  1948. bearTS = True
  1949.  
  1950.  
  1951.  
  1952.  
  1953.  
  1954. else:
  1955. bullTS = False
  1956. bearTS = False
  1957. pass
  1958.  
  1959.  
  1960. if DR >= 4:
  1961. extremeDR = True
  1962. else:
  1963. extremeDR = False
  1964.  
  1965. if gapRatio >= 5:
  1966. extremeGR = True
  1967. else:
  1968. extremeGR = False
  1969.  
  1970.  
  1971. if LFPC >= .002 and Range_Clause == False:
  1972. if mRatio >= .2 and sneakR < 10:
  1973. if Liq_change > 0 and M_Price > lastMPrice:
  1974. bullTS = True
  1975. bearTS = False
  1976. est_diff = LFPC * Close_Price
  1977. est_price = round(est_diff + Close_Price, 2)
  1978. Tick_String = fg(159)+'MASSIVE BUYING '+str(est_price)+rs.all+WarningString+' '+str(M_Price_clone)
  1979.  
  1980.  
  1981. if Liq_change < 0 and M_Price < lastMPrice:
  1982. bearTS = True
  1983. bullTS = False
  1984. est_diff = (LFPC * -1) * Close_Price
  1985. est_price = round(est_diff + Close_Price, 2)
  1986. Tick_String = fg(154)+'MASSIVE SELLING '+str(est_price)+rs.all+WarningString+' '
  1987.  
  1988. else:
  1989. bearTS = False
  1990. bullTS = False
  1991.  
  1992. else:
  1993. bearTS = False
  1994. bullTS = False
  1995.  
  1996.  
  1997. if LFPC >= .01:
  1998. if newratio >= 1 and qratio < 10:
  1999. if Liq_change > 0:
  2000. Tick_String = fg(167)+fg(134)+bg(59)+'ALGOS BIGLY SELLERS'+rs.all+WarningString+' '
  2001. if Liq_change < 0:
  2002. Tick_String = fg(156)+fg(84)+'ALGOS BIGLY BUYERS'+rs.all+WarningString+' '
  2003.  
  2004.  
  2005. if qratio < 10:
  2006. if Liq_change > 0 or MIV_Index > 0:
  2007. Tick_String = fg(9)+bg(235)+'QRATIO = '+str(qratio)+rs.all+WarningString+' '
  2008.  
  2009. if Liq_change < 0 or MIV_Index < 0:
  2010. Tick_String = fg(51)+bg(234)+'QRATIO = '+str(qratio)+rs.all+WarningString+' '
  2011.  
  2012. if qratio >= 80 and Liq_change > 0:
  2013. Tick_String = fg(9)+bg(235)+'QRATIO = '+str(qratio)+rs.all+WarningString+' '
  2014. bearTS = True
  2015. bullTS = False
  2016.  
  2017. elif qratio >= 150:
  2018. Tick_String = fg(214)+bg(234)+'MASSIVE QRATIO ['+str(qratio)+']'+rs.all+WarningString+' '
  2019. bearTS = True
  2020. bullTS = False
  2021.  
  2022.  
  2023. if sneakR < 10 and LFPC >= .0015 and qratio < 20:
  2024. Tick_String = fg(191)+bg(232)+'BIG MOVE COMING'+rs.all+WarningString+' '
  2025.  
  2026. if sneakR < 5 and LFPC >= .0015:
  2027. Tick_String = fg(191)+bg(232)+'BIG MOVE COMING'+rs.all+WarningString+' '
  2028.  
  2029. if LFPC >= .003:
  2030. Tick_String = fg(191)+bg(232)+'LARGE LFPC '+str(LFPC)+rs.all+WarningString+' '
  2031.  
  2032.  
  2033.  
  2034. if sneakR < 5 and qratio < 11 and mRatio < 1:
  2035. if Liq_change > 0:
  2036. bearTS = True
  2037. Tick_String = fg(233)+bg(1)+ef.b+'*BEAR MOVE COMING*'+rs.all+WarningString+' '
  2038.  
  2039. if sneakR >= 350:
  2040. Tick_String = fg(227)+bg(55)+'MASSIVE sneakR ['+str(sneakR)+']'+rs.all+WarningString+' '
  2041. nTS = True
  2042. bearTS = False
  2043. bullTS = False
  2044.  
  2045.  
  2046. ######################################################################################################################################################
  2047.  
  2048.  
  2049.  
  2050. if mRatio > 1.5 and LFP < 100:
  2051. if LQP_Match == False and Liq_change < 0:
  2052. if qratio < 10 and sneakR < 30:
  2053. if sneakR > 10 and mRatio >= 2:
  2054. extremeBullTS = False
  2055. extremeBearTS = True
  2056. Tick_String = fg(197)+bg(0)+ef.b+ef.u+'*SELL* MAX * CONFIDENCE *'+rs.all+WarningString+' '
  2057. if sneakR < 10:
  2058. if SAMS == False:
  2059. extremeBullTS = True
  2060. extremeBearTS = False
  2061. Tick_String = fg(129)+bg(16)+ef.u+'RIDE THE FKN SKETCH WAVE'+rs.all+WarningString+' '
  2062.  
  2063. if SAMS == True:
  2064. extremeBullTS = False
  2065. extremeBearTS = True
  2066. Tick_String = fg(129)+bg(16)+ef.u+'BUY SIGNAL - TOO RISKY (SAMS)'
  2067.  
  2068.  
  2069. if qratio > sneakR and qratio < 10:
  2070. if LFPC >= .0015:
  2071. extremeBullTS = False
  2072. extremeBearTS = True
  2073. Tick_String = fg(197)+bg(0)+ef.b+ef.u+'*DUMB SELLING*SMART BUYING* (1)'+rs.all+WarningString+' '
  2074.  
  2075.  
  2076. if qratio <= 4 and Liq_change > 0 and LFPC >= .001:
  2077. extremeBullTS = False
  2078. extremeBearTS = True
  2079. Tick_String = fg(197)+bg(0)+ef.b+ef.u+'*DUMB SELLING*SMART BUYING* (2)'+rs.all+WarningString+' '
  2080.  
  2081.  
  2082.  
  2083.  
  2084.  
  2085.  
  2086. if sneakR > 100 and LFPC >= .0015:
  2087. if Range_Clause == False:
  2088. if qratio >= 35:
  2089. if SAMS == False:
  2090. extremeBullTS = True
  2091. extremeBearTS = False
  2092. Tick_String = fg(129)+bg(16)+ef.u+'RIDE THE FKN SKETCH WAVE'+rs.all+WarningString+' '
  2093.  
  2094. if SAMS == True:
  2095. extremeBullTS = False
  2096. extremeBearTS = True
  2097. Tick_String = fg(129)+bg(16)+ef.u+'BUY SIGNAL - TOO RISKY (SAMS)'
  2098. # if qratio < 35:
  2099. # if Liq_change < 0:
  2100. # extremeBullTS = False
  2101. # extremeBearTS = True
  2102. # Tick_String = fg(197)+bg(0)+ef.b+ef.u+'*SELL* MAX * CONFIDENCE *'+rs.all+WarningString+' '
  2103. # if Liq_change > 0:
  2104. # extremeBearTS = False
  2105. # extremeBullTS = True
  2106. # Tick_String = fg(129)+bg(16)+ef.u+'RIDE THE FKN SKETCH WAVE'+rs.all+WarningString+' '
  2107.  
  2108.  
  2109. if LFPC < .001:
  2110. if sneakR > qratio and sneakR < 10 and mRatio >= 1:
  2111. bearTS = True
  2112. bullTS = False
  2113. Tick_String = Fore.RED+'BIG FKN SELLOFF COMING'+Style.RESET_ALL
  2114. extremeBullTS = False
  2115. if sneakR < 10 and sneakR >= qratio:
  2116.  
  2117.  
  2118.  
  2119.  
  2120. if mRatio >= 1 and LFPC >= .001:
  2121.  
  2122. if SAMS == True:
  2123. extremeBullTS = False
  2124. extremeBearTS = True
  2125. Tick_String = 'BUY SIGNAL - TOO RISKY (SAMS)'
  2126.  
  2127. if SAMS == False:
  2128. extremeBullTS = True
  2129. extremeBearTS = False
  2130. Tick_String = fg(129)+bg(16)+ef.u+'STUPID RIP COMING'+rs.all+WarningString+' '
  2131.  
  2132. if mRatio + qratio < sneakR and LFP < 200:
  2133. if LFPC < .001 and MIV_Index < 0:
  2134. if LQP_Match == True:
  2135. extremeBearTS = True
  2136. extremeBullTS = False
  2137. Tick_String = fg(197)+bg(0)+ef.b+ef.u+'*EXTREME BEAR SIGNAL*'+rs.all+WarningString+' '
  2138.  
  2139. if LQP_Match == False:
  2140. extremeBearTS = False
  2141. extremeBullTS = True
  2142. Tick_String = fg(156)+bg(232)+ef.b+ef.u+'*POTENTIAL BULL SIGNAL*'+rs.all+WarningString+' '
  2143.  
  2144.  
  2145.  
  2146.  
  2147.  
  2148.  
  2149.  
  2150.  
  2151.  
  2152.  
  2153.  
  2154.  
  2155. if LFPC >= .0019 and sneakR < 10 and qratio < sneakR:
  2156. if SAMS == False:
  2157. extremeBullTS = True
  2158. extremeBearTS = False
  2159. Tick_String = fg(156)+bg(234)+ef.b+'*BUY* MAX * CONFIDENCE *'+rs.all+WarningString+' '
  2160.  
  2161. if SAMS == True:
  2162. extremeBullTS = False
  2163. extremeBearTS = True
  2164. Tick_String = 'BUY SIGNAL - TOO RISKY (SAMS)'
  2165.  
  2166.  
  2167.  
  2168. if Liq_change < 0 and qratio > 50 and MIV_Index > 2:
  2169. Tick_String = fg(197)+bg(0)+ef.b+ef.u+'*! SELL * ABSOLUTE * MAX * CONFIDENCE !*'+rs.all+WarningString+' '
  2170. extremeBullTS = False
  2171. SAMS = True
  2172. extremeBearTS = True
  2173. nTS = False
  2174.  
  2175.  
  2176. if sneakR < 1:
  2177. Tick_String = fg(197)+bg(0)+ef.b+ef.u+'*! SELL * ABSOLUTE * MAX * CONFIDENCE !*'+rs.all+WarningString+' '
  2178. extremeBullTS = False
  2179. SAMS = True
  2180. extremeBearTS = True
  2181.  
  2182. if sneakR < 10 and sneakR >= qratio:
  2183. if mRatio >= 1.25 or LFPC >= .0015:
  2184. if Liq_change < 0:
  2185. extremeBearTS = False
  2186. extremeBullTS = True
  2187. # extremeBullTS1 = True
  2188. Tick_String = fg(129)+bg(16)+ef.u+'STUPID RIP COMING'+rs.all+WarningString+' '
  2189.  
  2190.  
  2191.  
  2192. if Liq_change > 0:
  2193. extremeBearTS = False
  2194. extremeBullTS = False
  2195. extremeBullTS1 = True
  2196. Tick_String = fg(217)+bg(237)+'IFFY FKN RIP COMING'+rs.all+WarningString+' '
  2197. if lastMPrice > HOD and Range_Clause == False:
  2198. extremeBearTS = False
  2199. extremeBullTS = True
  2200. # extremeBullTS1 = True
  2201. Tick_String = fg(129)+bg(16)+ef.u+'MONEY ABOVE HOD'+rs.all+WarningString+' '
  2202.  
  2203. # if qratio < 10 and mRatio >= 2 and LFPC >= .0014 and sneakR < 20 and sneakR >= 10 and Liquidity < 0 and LQP_Match == True:
  2204. # YOU NEED TO ADD THIS FOR BULLISH EXTREME SIGNALS^^^^^^^
  2205.  
  2206.  
  2207. # #
  2208. #
  2209.  
  2210.  
  2211.  
  2212.  
  2213.  
  2214.  
  2215.  
  2216.  
  2217.  
  2218.  
  2219.  
  2220.  
  2221.  
  2222.  
  2223.  
  2224.  
  2225.  
  2226.  
  2227.  
  2228.  
  2229.  
  2230.  
  2231.  
  2232.  
  2233.  
  2234.  
  2235.  
  2236.  
  2237.  
  2238. Range_List[ref_Num] = Range_Found
  2239. # else:
  2240. # Tick_String = Fore.WHITE+'PRICE UP LIQ DOWN'+Style.RESET_ALL+WarningString+' '+Fore.WHITE+str(Strength)
  2241.  
  2242.  
  2243. # if abs(Liq_change) <= avg_Liq_change:
  2244. # Tick_String = Fore.RED+'SHORT RALLY'+Style.RESET_ALL+WarningString+' '+Fore.RED+str(Strength)
  2245. # # else:
  2246. # Tick_String = Fore.WHITE+'PRICE UP LIQ DOWN'+Style.RESET_ALL+WarningString+' '+Fore.WHITE+str(Strength)
  2247.  
  2248. # if Tick == -1 and Liq_Tick == 0:
  2249. # if Liquidity < 0:
  2250. # if abs(Liq_change) > avg_Liq_change*2:
  2251. # Tick_String = Fore.RED+'MM\'s BEARISH'+Style.RESET_ALL+WarningString+' '+Fore.YELLOW+str(Strength)
  2252. # else:
  2253. # Tick_String = Fore.RED+'SHORT COVERING'+Style.RESET_ALL+WarningString+' '+Fore.YELLOW+Back.BLUE+Style.BRIGHT+str(Strength)
  2254.  
  2255. Range_List[ref_Num] = Range_Found
  2256. else:
  2257.  
  2258. # if Range_Clause == True:
  2259. # if range_ref_String == "HIGH TARGET" and Money_Flow < 300000000:
  2260. # if Liq_change > 1000000:
  2261. # print("MARKET MAKER HIGH TARGET")
  2262. # if range_ref_String == "LOW TARGET" and Money_Flow > 300000000:
  2263. # if Liq_change < 1000000:
  2264. # print("MARKET MAKER LOW TARGET")
  2265.  
  2266. if lr_filled == False:
  2267. if filled == False:
  2268. if range_ref_String == "LOW TARGET" and Low_Price <= Low_Range:
  2269. filled_Price = Low_Price
  2270. time.sleep(pause)
  2271. print(Fore.WHITE + Back.RED + "LOW RANGE FILLED" + Style.RESET_ALL)
  2272. time.sleep(1)
  2273. lr_filled = True
  2274. lt_filled = False
  2275. lrf = 1
  2276. low_Ranges_Filled += lrf
  2277. if lt_filled == False and lr_filled == True:
  2278. if Close_Price <= Low_Target:
  2279. filled_target_price = Close_Price
  2280. time.sleep(pause)
  2281. print(Fore.RED + Back.YELLOW + 'LOW TARGET FILLED' + Style.RESET_ALL)
  2282. time.sleep(1)
  2283. lt_filled = True
  2284. filled = True
  2285. low_Targets_Filled += 1
  2286. if hr_filled == False:
  2287. if filled == False:
  2288. if range_ref_String == "HIGH TARGET" and High_Price >= High_Range:
  2289. filled_range_price = High_Price
  2290. time.sleep(pause)
  2291. print(Fore.CYAN + "HIGH RANGE FILLED" + Style.RESET_ALL)
  2292. time.sleep(1)
  2293. hr_filled = True
  2294. ht_filled = False
  2295. hrf = 1
  2296. high_Ranges_Filled += hrf
  2297. if ht_filled == False and hr_filled == True:
  2298. if Close_Price >= High_Target:
  2299. filled_target_price = High_Price
  2300. print(Fore.CYAN + "HIGH TARGET FILLED")
  2301. time.sleep(1)
  2302. ht_filled = True
  2303. filled = True
  2304. high_Targets_Filled += 1
  2305.  
  2306.  
  2307. if menu_ans == 'oldfile' or menu_ans == '1':
  2308. if Liquidity_Data == 'y':
  2309. if rFound == True:
  2310. if tHigh == True:
  2311. HRS = str(High_Range)
  2312. HRT = str(High_Target)
  2313. LRS = str(Low_Range)
  2314. LRT = str(Low_Target)
  2315. MIV_Index_String = str(MIV_Index)
  2316.  
  2317. 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,price_tick_str+Style.RESET_ALL+ticksymbolo+mticksymbol+ticksymbolc+' ]'+Style.RESET_ALL+Tick_String+Style.RESET_ALL+Fore.GREEN+Back.BLUE+Style.BRIGHT+' NEW HIGH RANGE FOUND:[$'+HRS+']'+' NEW HIGH TARGET FOUND: [$'+HRT+']'+Fore.WHITE+' '+MIV_Index_String+'%'+Style.RESET_ALL+Fore.CYAN+' Avg High Flow: $'+'{:20,.2f}'.format(AvgHighRangeFlow), 'MoneyFlow: $','{:20,.2f}'.format(Money_Flow)+Style.RESET_ALL+Fore.WHITE+'Volume: '+'{:20,.2f}'.format(f_Vol))
  2318. time.sleep(1)
  2319.  
  2320.  
  2321. else:
  2322. tHigh = False
  2323. else:
  2324. rFound = False
  2325.  
  2326. if rFound == True:
  2327. if tLow == True:
  2328. HRS = str(High_Range)
  2329. HRT = str(High_Target)
  2330. LRS = str(Low_Range)
  2331. LRT = str(Low_Target)
  2332. lowFlow = str(AvgLowRangeFlow)
  2333. flow = str(Money_Flow)
  2334. MIV_Index_String = str(MIV_Index)
  2335.  
  2336. Low_Prices = {'LOW RANGE: $': Low_Range, 'LOW TARGET: $': Low_Target} ##### May not need this line
  2337. 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,price_tick_str+Style.RESET_ALL+ticksymbolo+mticksymbol+ticksymbolc+Style.RESET_ALL+' '+Tick_String+Style.RESET_ALL+Fore.CYAN+Back.RED+Style.BRIGHT+' NEW LOW RANGE FOUND:[$'+LRS+']'+' NEW LOW TARGET FOUND: [$'+LRT+']'+Fore.WHITE+' '+MIV_Index_String+'%'+Style.RESET_ALL+Fore.RED+' Avg Low Flow: $','{:20,.2f}'.format(AvgLowRangeFlow),'MoneyFlow: $','{:20,.2f}'.format(Money_Flow)+Style.RESET_ALL+Fore.WHITE+'Volume: '+'{:20,.2f}'.format(f_Vol))
  2338. time.sleep(1)
  2339.  
  2340. else:
  2341. tLow = False
  2342. else:
  2343. rFound = False
  2344.  
  2345.  
  2346.  
  2347. if bullTS == True:
  2348. print(Fore.CYAN+ '[' + Date + ']', military_time,PCT_Range_Str,Style.RESET_ALL + Fore.WHITE + Back.BLUE + 'Current Liquidity:' + '{:20,.2f}'.format(Liquidity) + Style.RESET_ALL + Fore.WHITE + Back.BLUE + ' Liq Change: ' + '{:20,.2f}'.format(Liq_change) + Style.RESET_ALL, Fore.WHITE + Back.BLUE + Style.BRIGHT+Style.RESET_ALL+' '+price_tick_str+Style.RESET_ALL+ticksymbolo+mticksymbol+ticksymbolc+ Style.RESET_ALL + ' '+Tick_String + Style.RESET_ALL + Fore.YELLOW + Back.RED + Style.BRIGHT + Style.RESET_ALL, M_Price)
  2349. time.sleep(pause)
  2350.  
  2351.  
  2352. if bearTS == True:
  2353. print(Fore.RED+ '[' + Date + ']', military_time,PCT_Range_Str,Style.RESET_ALL + Fore.WHITE + Back.RED + 'Current Liquidity:' + '{:20,.2f}'.format(Liquidity) + Style.RESET_ALL + Fore.WHITE + Back.RED + ' Liq Change: ' + '{:20,.2f}'.format(Liq_change) + Style.RESET_ALL, Fore.WHITE + Back.RED + Style.BRIGHT+Style.RESET_ALL+' '+price_tick_str+Style.RESET_ALL+ticksymbolo+mticksymbol+ticksymbolc+ Style.RESET_ALL + ' '+Tick_String + Style.RESET_ALL + Fore.YELLOW + Back.RED + Style.BRIGHT + Style.RESET_ALL, M_Price)
  2354. time.sleep(pause)
  2355.  
  2356. if nTS == True:
  2357. print(Fore.YELLOW+Style.BRIGHT+fg(123)+bg(236)+ef.u+ '[' + Date + ']', military_time,PCT_Range_Str,Style.RESET_ALL + Fore.YELLOW + Style.BRIGHT+fg(123)+bg(236)+ef.u+'Current Liquidity:' + '{:20,.2f}'.format(Liquidity) + Style.RESET_ALL + Fore.YELLOW + Style.BRIGHT+fg(123)+bg(236)+ef.u+' Liq Change: ' + '{:20,.2f}'.format(Liq_change) + Style.RESET_ALL, Fore.YELLOW + Style.BRIGHT+fg(123)+bg(236)+ef.u+price_tick_str + ']'+Style.RESET_ALL+ticksymbolo+mticksymbol+ticksymbolc+ Style.RESET_ALL + ' '+Tick_String + Style.RESET_ALL + Fore.YELLOW + Back.RED + Style.BRIGHT + Style.RESET_ALL,fg(123)+bg(236)+'Est Price: $',EstimatedPrice,rs.all, M_Price)
  2358. time.sleep(pause)
  2359.  
  2360. if bearTS1 == True:
  2361. print(Fore.YELLOW+Style.BRIGHT+fg(178)+bg(236)+ef.b+ '[' + Date + ']', military_time,PCT_Range_Str,Style.RESET_ALL + Fore.YELLOW + Style.BRIGHT+fg(178)+bg(236)+ef.b+'Current Liquidity:' + '{:20,.2f}'.format(Liquidity) + Style.RESET_ALL + Fore.YELLOW + Style.BRIGHT+fg(178)+bg(236)+ef.b+' Liq Change: ' + '{:20,.2f}'.format(Liq_change) + Style.RESET_ALL, Fore.YELLOW + Style.BRIGHT+fg(178)+bg(236)+ef.b+price_tick_str + ']'+Style.RESET_ALL+ticksymbolo+mticksymbol+ticksymbolc+ Style.RESET_ALL + ' '+Tick_String + Style.RESET_ALL + Fore.YELLOW + Back.RED + Style.BRIGHT + Style.RESET_ALL, M_Price)
  2362. time.sleep(pause)
  2363.  
  2364.  
  2365.  
  2366.  
  2367.  
  2368. if bearTS == False and bullTS == False:
  2369. if nTS == False and bearTS1 == False and Range_Clause == False:
  2370. if extremeBearTS == True:
  2371. print(Fore.YELLOW+Style.BRIGHT+bg(233)+fg(88)+ '[' + Date + ']', military_time,PCT_Range_Str, Fore.YELLOW + Style.BRIGHT+fg(233)+fg(88)+'Current Liquidity:' + '{:20,.2f}'.format(Liquidity), Fore.YELLOW + Style.BRIGHT+bg(233)+fg(88)+' Liq Change: ' + '{:20,.2f}'.format(Liq_change)+ Fore.YELLOW + Style.BRIGHT+bg(233)+fg(88)+' Last Price: '+ef.u+'[$' +str(Close_Price) +']'+rs.all+ticksymbolo+mticksymbol+ticksymbolc+ ' '+Tick_String+ Fore.YELLOW + Back.RED + Style.BRIGHT + Style.RESET_ALL, M_Price)
  2372. time.sleep(timecounter)
  2373.  
  2374. elif extremeBullTS == True:
  2375. print(Fore.YELLOW+fg(46)+bg(234)+ '[' + Date + ']', military_time,PCT_Range_Str, Fore.YELLOW +fg(46)+bg(234)+'Current Liquidity:' + '{:20,.2f}'.format(Liquidity), Fore.YELLOW +fg(46)+bg(234)+' Liq Change: ' + '{:20,.2f}'.format(Liq_change)+ Fore.YELLOW +fg(46)+bg(234)+' Last Price: [$' + str(Close_Price) + ']'+ticksymbolo+mticksymbol+ticksymbolc+ ' '+Tick_String+ Fore.YELLOW + Back.RED + Style.RESET_ALL, M_Price)
  2376. time.sleep(timecounter)
  2377.  
  2378. elif extremeBullTS1 == True:
  2379. print(Fore.YELLOW+fg(215)+bg(233)+ '[' + Date + ']', military_time,PCT_Range_Str, Fore.YELLOW +fg(215)+bg(233)+'Current Liquidity:' + '{:20,.2f}'.format(Liquidity), Fore.YELLOW +fg(215)+bg(233)+' Liq Change: ' + '{:20,.2f}'.format(Liq_change)+ Fore.YELLOW +fg(215)+bg(233)+' Last Price: [$' + str(Close_Price) + ']'+ticksymbolo+mticksymbol+ticksymbolc+ ' '+Tick_String+ Fore.YELLOW + Back.RED + Style.RESET_ALL, M_Price)
  2380. time.sleep(timecounter)
  2381.  
  2382. else:
  2383.  
  2384.  
  2385.  
  2386. if mRatio >= .45 and LFPC >= .001:
  2387. bg_color_code = bg(57)+bg(236)
  2388. bullish_price_str = fg(190)+fg(40)
  2389. bearish_price_str = fg(88)+fg(226)
  2390. if Liquidity + Liq_change > 0:
  2391. if Liq_change > 0:
  2392. time.sleep(timecounter)
  2393. print(Fore.YELLOW +bg_color_code+fg(191)+'[' + Date + ']', military_time,PCT_Range_Str,fg(94)+fg(154) + 'Current Liquidity:' + '{:20,.2f}'.format(Liquidity) +bg_color_code+fg(94)+fg(154)+ ' Liq Change: ' + '{:20,.2f}'.format(Liq_change) + ' ' +Style.RESET_ALL+bg_color_code+bullish_price_str+' Last Price: [$'+str(Close_Price)+']'+Style.RESET_ALL+ticksymbolo+mticksymbol+ticksymbolc+ Style.RESET_ALL+' '+Tick_String + Style.RESET_ALL+Fore.WHITE+' '+SS+'%'+Style.RESET_ALL,M_Price, ' | ', est_price1)
  2394.  
  2395. if Liq_change < 0:
  2396. time.sleep(timecounter)
  2397. print(Fore.YELLOW +bg_color_code+fg(191)+'[' + Date + ']', military_time,PCT_Range_Str,fg(88)+fg(196) + 'Current Liquidity:' + '{:20,.2f}'.format(Liquidity) +bg_color_code+fg(88)+fg(196)+' Liq Change: ' + '{:20,.2f}'.format(Liq_change) + ' ' +Style.RESET_ALL+bg_color_code+bearish_price_str+' Last Price: ['+str(Close_Price)+']'+Style.RESET_ALL+ticksymbolo+mticksymbol+ticksymbolc+ Style.RESET_ALL+ ' '+Tick_String + Style.RESET_ALL+Fore.WHITE+' '+SS+'%'+Style.RESET_ALL, M_Price, ' | ', est_price1)
  2398.  
  2399.  
  2400.  
  2401. if Liquidity + Liq_change < 0 and Liquidity < 0:
  2402. if Liq_change > 0:
  2403. time.sleep(timecounter)
  2404. print(bg_color_code+fg(191)+'[' + Date + ']', military_time,PCT_Range_Str,fg(88)+fg(196) + 'Current Liquidity:' + '{:20,.2f}'.format(Liquidity) +bg_color_code+fg(88)+fg(196)+' Liq Change: ' + '{:20,.2f}'.format(Liq_change) + ' ' +Style.RESET_ALL+bg_color_code+bearish_price_str+'Last Price: ['+str(Close_Price)+']'+Style.RESET_ALL+ticksymbolo+mticksymbol+ticksymbolc+Style.RESET_ALL +' '+Tick_String + Style.RESET_ALL + ' ' + Fore.WHITE+SS+'%'+Style.RESET_ALL, M_Price, ' | ', est_price1)
  2405.  
  2406. if Liq_change < 0:
  2407. time.sleep(timecounter)
  2408. print(bg_color_code+fg(191)+'[' + Date + ']', military_time,PCT_Range_Str,fg(94)+fg(154) + 'Current Liquidity:' + '{:20,.2f}'.format(Liquidity) + bg_color_code+fg(94)+fg(154)+' Liq Change: ' + '{:20,.2f}'.format(Liq_change) + ' ' +Style.RESET_ALL+bg_color_code+bullish_price_str+'Last Price: ['+str(Close_Price)+']'+Style.RESET_ALL+ticksymbolo+mticksymbol+ticksymbolc+Style.RESET_ALL + ' '+Tick_String+ Style.RESET_ALL +' ' + Fore.WHITE+SS+'%'+Style.RESET_ALL, M_Price, ' | ', est_price1)
  2409.  
  2410. else:
  2411. if Liq_change < -1000000:
  2412. print(Fore.YELLOW + '[' + Date + ']', military_time,PCT_Range_Str,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,price_tick_str +']'+Style.RESET_ALL+ticksymbolo+mticksymbol+ticksymbolc+ Style.RESET_ALL + ' '+Tick_String + Style.RESET_ALL + Fore.YELLOW + Back.RED + Style.BRIGHT + '**SELL SIGNAL**' + Style.RESET_ALL, M_Price)
  2413. time.sleep(1)
  2414. if abs(Liq_change) > 500000:
  2415. time.sleep(timecounter)
  2416. print(Fore.CYAN + '[' + Date + ']', military_time,PCT_Range_Str,Fore.CYAN + 'Current Liquidity:' + '{:20,.2f}'.format(Liquidity) + Style.RESET_ALL + Fore.YELLOW + Back.BLUE + Style.BRIGHT + ' Liq Change: ' + '{:20,.2f}'.format(Liq_change) + ' ' +Style.RESET_ALL+price_tick_str+Style.RESET_ALL+ticksymbolo+mticksymbol+ticksymbolc+ ' '+ Tick_String + Style.RESET_ALL + ' ' + Fore.WHITE+SS+'%'+Style.RESET_ALL, M_Price, ' | ', est_price1)
  2417.  
  2418. if Liquidity < 0:
  2419. if Liq_change > 0:
  2420. if extremeDR == True:
  2421. time.sleep(timecounter)
  2422. print(fg(129)+bg(233)+'[' + Date + ']', military_time,PCT_Range_Str+Style.RESET_ALL+Fore.BLUE+ 'Current Liquidity:' + '{:20,.2f}'.format(Liquidity) + Style.RESET_ALL +Fore.WHITE+' Liq Change: ' + '{:20,.2f}'.format(Liq_change) + ' ' +Style.RESET_ALL+price_tick_str+Style.RESET_ALL+ticksymbolo+mticksymbol+ticksymbolc+Style.RESET_ALL +' '+Tick_String + Style.RESET_ALL + ' ' + Fore.WHITE+SS+'%'+Style.RESET_ALL, M_Price, ' | ', est_price1)
  2423. elif extremeGR == True:
  2424. time.sleep(timecounter)
  2425. print(fg(234)+bg(124)+'[' + Date + ']', military_time,PCT_Range_Str+Style.RESET_ALL+Fore.BLUE+ 'Current Liquidity:' + '{:20,.2f}'.format(Liquidity) + Style.RESET_ALL +Fore.WHITE+' Liq Change: ' + '{:20,.2f}'.format(Liq_change) + ' ' +Style.RESET_ALL+price_tick_str+Style.RESET_ALL+ticksymbolo+mticksymbol+ticksymbolc+Style.RESET_ALL +' '+Tick_String + Style.RESET_ALL + ' ' + Fore.WHITE+SS+'%'+Style.RESET_ALL, M_Price, ' | ', est_price1)
  2426. else:
  2427. time.sleep(timecounter)
  2428. print(Fore.YELLOW+'[' + Date + ']', military_time,PCT_Range_Str+Style.RESET_ALL+Fore.BLUE+ 'Current Liquidity:' + '{:20,.2f}'.format(Liquidity) + Style.RESET_ALL +Fore.WHITE+' Liq Change: ' + '{:20,.2f}'.format(Liq_change) + ' ' +Style.RESET_ALL+price_tick_str+Style.RESET_ALL+ticksymbolo+mticksymbol+ticksymbolc+Style.RESET_ALL +' '+Tick_String + Style.RESET_ALL + ' ' + Fore.WHITE+SS+'%'+Style.RESET_ALL, M_Price, ' | ', est_price1)
  2429. if Liq_change < 0:
  2430. if extremeDR == True:
  2431. time.sleep(timecounter)
  2432. print(fg(129)+bg(233)+'[' + Date + ']', military_time,PCT_Range_Str+Style.RESET_ALL+Fore.BLUE+ 'Current Liquidity:' + '{:20,.2f}'.format(Liquidity) + Style.RESET_ALL +Fore.CYAN+' Liq Change: ' + '{:20,.2f}'.format(Liq_change) + ' ' +Style.RESET_ALL+price_tick_str+Style.RESET_ALL+ticksymbolo+mticksymbol+ticksymbolc+Style.RESET_ALL +' '+Tick_String + Style.RESET_ALL + ' ' + Fore.WHITE+SS+'%'+Style.RESET_ALL, M_Price, ' | ', est_price1)
  2433. elif extremeGR == True:
  2434. time.sleep(timecounter)
  2435. print(fg(234)+bg(124)+'[' + Date + ']', military_time,PCT_Range_Str+Style.RESET_ALL+Fore.BLUE+ 'Current Liquidity:' + '{:20,.2f}'.format(Liquidity) + Style.RESET_ALL +Fore.WHITE+' Liq Change: ' + '{:20,.2f}'.format(Liq_change) + ' ' +Style.RESET_ALL+price_tick_str+Style.RESET_ALL+ticksymbolo+mticksymbol+ticksymbolc+Style.RESET_ALL +' '+Tick_String + Style.RESET_ALL + ' ' + Fore.WHITE+SS+'%'+Style.RESET_ALL, M_Price, ' | ', est_price1)
  2436. else:
  2437. time.sleep(timecounter)
  2438. print(Fore.YELLOW+'[' + Date + ']', military_time,PCT_Range_Str+Style.RESET_ALL+Fore.BLUE+ 'Current Liquidity:' + '{:20,.2f}'.format(Liquidity) + Style.RESET_ALL +Fore.CYAN+' Liq Change: ' + '{:20,.2f}'.format(Liq_change) + ' ' +Style.RESET_ALL+price_tick_str+Style.RESET_ALL+ticksymbolo+mticksymbol+ticksymbolc+Style.RESET_ALL +' '+Tick_String + Style.RESET_ALL + ' ' + Fore.WHITE+SS+'%'+Style.RESET_ALL, M_Price, ' | ', est_price1)
  2439.  
  2440.  
  2441. if Liquidity > 0:
  2442. if Liq_change > 0:
  2443. if extremeDR == True:
  2444. time.sleep(timecounter)
  2445. print(fg(129)+bg(233)+'[' + Date + ']', military_time,PCT_Range_Str,Fore.GREEN + 'Current Liquidity:' + '{:20,.2f}'.format(Liquidity) + Fore.GREEN + ' Liq Change: ' + '{:20,.2f}'.format(Liq_change) + ' '+Style.RESET_ALL+price_tick_str+Style.RESET_ALL+ticksymbolo+mticksymbol+ticksymbolc+ Style.RESET_ALL+ ' '+Tick_String + Style.RESET_ALL+Fore.WHITE+' '+SS+'%'+Style.RESET_ALL, M_Price, ' | ', est_price1)
  2446.  
  2447. else:
  2448. time.sleep(timecounter)
  2449. print(Fore.YELLOW + '[' + Date + ']', military_time,PCT_Range_Str,Fore.GREEN + 'Current Liquidity:' + '{:20,.2f}'.format(Liquidity) + Fore.GREEN + ' Liq Change: ' + '{:20,.2f}'.format(Liq_change) + ' '+Style.RESET_ALL+price_tick_str+Style.RESET_ALL+ticksymbolo+mticksymbol+ticksymbolc+ Style.RESET_ALL+ ' '+Tick_String + Style.RESET_ALL+Fore.WHITE+' '+SS+'%'+Style.RESET_ALL, M_Price, ' | ', est_price1)
  2450.  
  2451. if Liq_change < 0:
  2452. if extremeDR == True:
  2453. time.sleep(timecounter)
  2454. print(fg(129)+bg(233)+'[' + Date + ']', military_time,PCT_Range_Str,Fore.GREEN + 'Current Liquidity:' + '{:20,.2f}'.format(Liquidity) + Style.RESET_ALL + Fore.RED + ' Liq Change: ' + '{:20,.2f}'.format(Liq_change) + Style.RESET_ALL + ' '+price_tick_str+Style.RESET_ALL+ticksymbolo+mticksymbol+ticksymbolc+ Style.RESET_ALL+ ' '+Tick_String + Style.RESET_ALL+Fore.WHITE+' '+SS+'%'+Style.RESET_ALL, M_Price, ' | ', est_price1)
  2455.  
  2456. else:
  2457. time.sleep(timecounter)
  2458. print(Fore.YELLOW + '[' + Date + ']', military_time,PCT_Range_Str,Fore.GREEN + 'Current Liquidity:' + '{:20,.2f}'.format(Liquidity) + Style.RESET_ALL + Fore.RED + ' Liq Change: ' + '{:20,.2f}'.format(Liq_change) + Style.RESET_ALL + ' '+price_tick_str+Style.RESET_ALL+ticksymbolo+mticksymbol+ticksymbolc+ Style.RESET_ALL+ ' '+Tick_String + Style.RESET_ALL+Fore.WHITE+' '+SS+'%'+Style.RESET_ALL, M_Price, ' | ', est_price1)
  2459.  
  2460.  
  2461.  
  2462. # elif Liq_change > 0:
  2463. # time.sleep(timecounter)
  2464. # print(Fore.YELLOW + '[' + Date + ']', military_time,PCT_Range_Str,Fore.BLUE + 'Current Liquidity:' + '{:20,.2f}'.format(Liquidity) + Style.RESET_ALL + Fore.WHITE,' Liq Change: ' + '{:20,.2f}'.format(Liq_change) + ' ' + Fore.YELLOW + Back.BLUE,price_tick_str+Style.RESET_ALL+ticksymbolo+mticksymbol+ticksymbolc+Style.RESET_ALL + ' '+Tick_String + Style.RESET_ALL + ' ' + Fore.WHITE+SS+'%'+Style.RESET_ALL, M_Price, ' | ', est_price1)
  2465. # elif Liq_change < 0:
  2466. # time.sleep(timecounter)
  2467. # print(Fore.YELLOW + '[' + Date + ']', military_time,PCT_Range_Str,Fore.BLUE + 'Current Liquidity:' + '{:20,.2f}'.format(Liquidity) + Style.RESET_ALL + Fore.CYAN,' Liq Change: ' + '{:20,.2f}'.format(Liq_change) + ' ' + Fore.YELLOW + Back.BLUE+price_tick_str+Style.RESET_ALL+ticksymbolo+mticksymbol+ticksymbolc+Style.RESET_ALL + ' '+Tick_String+ Style.RESET_ALL + ' ' + Fore.WHITE+SS+'%'+Style.RESET_ALL, M_Price, ' | ', est_price1)
  2468.  
  2469.  
  2470.  
  2471.  
  2472.  
  2473. if menu_ans == '5' or Liquidity_Data == 'n5':
  2474. import analyze8
  2475.  
  2476.  
  2477.  
  2478.  
  2479.  
  2480.  
  2481. if menu_ans == '4' or Liquidity_Data == 'n4':
  2482.  
  2483.  
  2484.  
  2485.  
  2486.  
  2487. labels = ' Date Time Last LiqChange Liquidity $Flow | $Price | LFP | LFPC |EstPrice| Status | mRatio | sneakR | qratio'
  2488. underline = '-------------------------------------------------------------------------------------------------------------------------------------------------------------------------'
  2489. # if M_Price > High_Price or M_Price < Low_Price:
  2490.  
  2491. # if Money_Flow > 0 and abs(Liq_change) > 0:
  2492. # if qratio >= 35:
  2493. # if Liq_change > 0:
  2494. # EstimatedPrice = round(Close_Price + (Close_Price * LFPC), 2)
  2495. # if Liq_change < 0:
  2496. # EstimatedPrice = round(Close_Price - (Close_Price * LFPC), 2)
  2497. #
  2498. # else:
  2499. # EstimatedPrice = est_price_x
  2500.  
  2501. if M_Price > High_Price or M_Price < Low_Price:
  2502. if LFPC >= .001 and Range_Clause == False:
  2503. if sneakR >= 15 and qratio >= 35:
  2504. if EstimatedPrice >= HOD or EstimatedPrice <= LOD:
  2505. rawdatalist = [Date, military_time, Close_Price, liqchgstr, liqstr, mf_Str, M_Price, LFP, LFPC, EstimatedPrice, mRatio, sneakR, qratio]
  2506. rawdatalist.insert(10, Status)
  2507. rawdatalist1.append(rawdatalist)
  2508. if qratio < 25:
  2509. if EstimatedPrice >= HOD or EstimatedPrice <= LOD:
  2510. if sneakR < 10 or sneakR > qratio:
  2511. if Liq_change < 0:
  2512. EstimatedPrice = round(Close_Price + (Close_Price * LFPC), 2)
  2513. if Liq_change < 0:
  2514. EstimatedPrice = round(Close_Price - (Close_Price * LFPC), 2)
  2515. rawdatalist = [Date, military_time, Close_Price, liqchgstr, liqstr, mf_Str, M_Price, LFP, LFPC, EstimatedPrice, mRatio, sneakR, qratio]
  2516. rawdatalist.insert(10, Status)
  2517. rawdatalist1.append(rawdatalist)
  2518.  
  2519. else:
  2520.  
  2521. pass
  2522. if sneakR > 100 and qratio >= 35:
  2523. if rawdatalist in rawdatalist1:
  2524. pass
  2525. else:
  2526.  
  2527. rawdatalist1.append(rawdatalist)
  2528.  
  2529.  
  2530.  
  2531.  
  2532.  
  2533. if menu_ans == '6' or menu_ans == 'x' or Liquidity_Data == 'n6' or Liquidity_Data == 'nx':
  2534.  
  2535. newratio = round(10*(LFP * LFPC), 3)
  2536. if abs(Liq_change) > 0:
  2537. LFP = round(Money_Flow / abs(Liq_change) *.01, 3)
  2538. LFPC = round(1000 * (abs(Liq_change) / Money_Flow) * .01, 4)
  2539. est_diff = round(.01*(100 - LFP), 2)
  2540. est_diff1 = round(LFPC * Close_Price, 2)
  2541. if Liquidity < 0:
  2542. if Liq_change < 0:
  2543. est_price = round(Close_Price - est_diff1, 2)
  2544. est_price1 = round(est_diff1 + Close_Price, 2)
  2545. if Liq_change > 0:
  2546. est_price = round(Close_Price + est_diff1, 2)
  2547. est_price1 = round(Close_Price + (-1 * est_diff1), 2)
  2548. if Liquidity > 0:
  2549. if Liq_change < 0:
  2550. est_price = round(Close_Price - est_diff1, 2)
  2551. est_price1 = round(Close_Price + (-1 * est_diff1), 2)
  2552. if Liq_change > 0:
  2553. est_price = round(est_diff1 + Close_Price, 2)
  2554. est_price1 = round(est_diff1 + Close_Price, 2)
  2555.  
  2556.  
  2557.  
  2558.  
  2559. # sneakR2_div_sneakR = round(new_sneakR / sneakR, 2)
  2560.  
  2561. mf_Str = '{:20,.2f}'.format(Money_Flow)
  2562.  
  2563. liqstr = '{:20,.2f}'.format(Liquidity)
  2564. liqchgstr = '{:20,.2f}'.format(Liq_change)
  2565. OC_Range = round(OC_Range, 2)
  2566. HL_Range = round(HL_Range, 2)
  2567. sneakR_Sum = round(sneakR_Sum, 2)
  2568.  
  2569. x_desc = ' Time Date Price LiqChg Liquidity $Price WA|DP PG | MTR | DR ITD_BP%/AdjBP% sneakR_Sum avgQR TickGauge'
  2570. if M_Price > High_Price or M_Price < Low_Price and EstimatedPrice != est_price_x:
  2571. if EstimatedPrice > HOD or EstimatedPrice < LOD:
  2572. EstimatedPrice = EstimatedPrice
  2573. else:
  2574. EstimatedPrice = 0
  2575. else:
  2576. EstimatedPrice = 0
  2577.  
  2578.  
  2579.  
  2580.  
  2581. rawdatalist = [Date, military_time, Close_Price, liqchgstr, liqstr, mf_Str, M_Price, LFP, LFPC, est_price1, mRatio, sneakR, qratio, EstimatedPrice]
  2582.  
  2583. # if M_Price > High_Price or M_Price < Low_Price and LFPC >= .001:
  2584. # if EstimatedPrice > HOD or EstimatedPrice < LOD:
  2585. # EstimatedPrice = EstimatedPrice
  2586. # else:
  2587. # EstimatedPrice = 0
  2588. # else:
  2589. # EstimatedPrice = 0
  2590. # if sneakR < 10 and qratio < 30:
  2591. # if Liq_change < 0:
  2592. # EstimatedPrice_try = round(Close_Price + (Close_Price * LFPC), 2)
  2593. # if Liq_change > 0:
  2594. # EstimatedPrice_try = round(Close_Price - (Close_Price * LFPC), 2)
  2595. #
  2596. # if EstimatedPrice_try > HOD or EstimatedPrice_try < LOD:
  2597. # EstimatedPrice = EstimatedPrice_try
  2598.  
  2599. # if sneakR >= 15 and LFPC >= .001 and qratio >= 35:
  2600. # if EstimatedPrice > HOD or EstimatedPrice < LOD:
  2601. # EstimatedPrice = EstimatedPrice
  2602. # else:
  2603. # EstimatedPrice = 0
  2604. #
  2605. # else:
  2606. # EstimatedPrice = 0
  2607. #
  2608. #
  2609. # else:
  2610. # EstimatedPrice = 0
  2611.  
  2612.  
  2613.  
  2614.  
  2615. writedatalist = [ref_Num, Date, military_time[:-3], Close_Price, M_Price, xString, qratio_div_max, EstimatedPrice, est_price1, MTR, PainGauge, DR, Intraday_Strength, new_Strength, LFP, LFPC, mRatio, sneakR, qratio, sneakR_Sum, avg_sneakR, avg_QR, MIV_Spike_Count, avg_Liq_change, lastDPrice, Weighted_Avg_DPrice, Weighted_Movement, UDV, UDR_Ticks, MACD, sneakR_Sum, avg_sneakR, gapRatio, Resistance, Support, chg_Open, Open_Price, High_Price, Low_Price, Liq_change, Liquidity, f_Vol, Money_Flow, MIV_Index, avgVol, MTR_copy, PTLT_Ratio, gapRatio, gapDistanceRatio, PivotSpread]
  2616. with open('/Users/King/Spy_data_analysis.csv', 'a') as csv_file2:
  2617. reader2 = csv.reader(csv_file2)
  2618. wr = csv.writer(csv_file2)
  2619. wr.writerow(writedatalist)
  2620. info_datalist = [Date, ref_Num, military_time, Close_Price, liqchgstr, liqstr, M_Price, Weighted_Avg_DPrice, PainGauge, MTR, DR, gapRatio, gapDistanceRatio, Intraday_Strength, new_Strength, sneakR_Sum, avg_QR, PTLT_Ratio]
  2621.  
  2622. rawdatalist3.append(info_datalist)
  2623. rawdatalist2.append(rawdatalist)
  2624. # if LFPC >= .0013 and LFP < 60:
  2625. # rawdatalist2.append(rawdatalist)
  2626. print(labels)
  2627. print(underline)
  2628.  
  2629. for i in rawdatalist1:
  2630. countitems += 1
  2631. print(i)
  2632.  
  2633. if menu_ans == '6' or Liquidity_Data == 'n6':
  2634. for i in rawdatalist2:
  2635. print(i)
  2636. import dprice
  2637. import dprice1
  2638.  
  2639. if menu_ans == 'x' or Liquidity_Data == 'nx':
  2640. print(x_desc)
  2641. for i in rawdatalist3:
  2642. print(i)
  2643.  
  2644.  
  2645. if menu_ans == '7' or Liquidity_Data == 'n7':
  2646.  
  2647.  
  2648. bigFlowbigMovepct = round(100*(LargeFlowCount / (DOWN_c + UP_c)), 2)
  2649. sum_large_LFPC = round((100*sum_large_LFPC) / 2, 3)
  2650.  
  2651. if TradingAbove_Count >= 1:
  2652. TATBR_A = round(TradingAbove_Diff / TradingAbove_Count, 2)
  2653.  
  2654. if TradingBelow_Count >= 1:
  2655. TATBR_B = round(TradingBelow_Diff / TradingBelow_Count, 2)
  2656.  
  2657. if TradingAbove_Count >= 1 and TradingBelow_Count >= 1:
  2658. if TradingAbove_Count >= TradingBelow_Count:
  2659. TATBR = round(TradingAbove_Count / TradingBelow_Count, 2)
  2660. TATBR_diff = round((TradingAbove_Diff / TradingAbove_Count) / (TradingBelow_Diff / TradingBelow_Count), 2)
  2661. if TradingAbove_Count < TradingBelow_Count:
  2662. TATBR = round(TradingBelow_Count / TradingAbove_Count, 2)
  2663. TATBR_diff = round((TradingBelow_Diff / TradingBelow_Count) / (TradingAbove_Diff / TradingAbove_Count), 2)
  2664.  
  2665. print(ef.u+Date, military_time,rs.all+'\n')
  2666.  
  2667.  
  2668.  
  2669. if new_Strength <= Intraday_Strength:
  2670. print(fg(233)+fg(0)+bg(2)+'Adj BP%: ',adj_Strength,'%',' BP%: ',new_Strength,'%'+rs.all)
  2671. print('PTLT Ratio: ',PTLT_Ratio)
  2672. print('U/D Ratio: ',UD_Ratio)
  2673. print('Price Tick Total: ',Price_Tick_Total)
  2674. print('Liq Tick Total: ',Liq_Tick_Total)
  2675. print('Bullish Percentile: ',new_Strength,'%')
  2676. print('IntraDay BP%: ',Intraday_Strength,'%')
  2677. print('Adj BP%: ',adj_Strength,'%')
  2678.  
  2679. sneakR_Sum = round(sneakR_Sum, 2)
  2680. TradingBelow_Diff = round(TradingBelow_Diff, 2)
  2681. TradingAbove_Diff = round(TradingAbove_Diff, 2)
  2682. sneakR_lgst_avg_ratio = round(max(sneakR_log) / avg_sneakR, 3)
  2683. if UpTicks > DownTicks:
  2684. print('Downticks: '+str(DOWN_c)+' | '+str(DownTicks)+'\n'+fg(39)+bg(238)+'Upticks: '+str(UP_c)+' | '+str(UpTicks)+rs.all)
  2685. else:
  2686. print(fg(9)+bg(16)+'Downticks: '+str(DOWN_c)+' | '+str(DownTicks),rs.all+'\n'+'Upticks: '+str(UP_c)+' | '+str(UpTicks)+rs.all)
  2687.  
  2688. if Avg_Up_Move > abs(Avg_Down_Move):
  2689. print(fg(39)+'Avg Up Move: $'+str(avg_up_move_clone)+rs.all,'\n'+'Avg Down Move: $'+str(avg_down_move_clone))
  2690. else:
  2691. if abs(Avg_Down_Move) > Avg_Up_Move:
  2692. print('Avg Up Move: $'+str(avg_up_move_clone)+rs.all,'\n'+fg(9)+'Avg Down Move: $'+str(avg_down_move_clone)+rs.all)
  2693. else:
  2694. print('Avg Up Move: $'+str(avg_up_move_clone)+'\n'+'Avg Down Move: $'+str(avg_down_move_clone))
  2695.  
  2696.  
  2697. print('Avg HL Range: $'+str(avg_HL_Range))
  2698. print('Large Flow Count: ', LargeFlowCount,' (%s' % bigFlowbigMovepct+'%) Of Up/DownTicks')
  2699. if MTR >= .5:
  2700. if MTR >= .55:
  2701. if MTR >= .6:
  2702. print(fg(39)+bg(238)+'MoneyTickRatio: '+str(MTR)+rs.all)
  2703.  
  2704.  
  2705. else:
  2706. print(fg(38)+'MoneyTickRatio: '+str(MTR)+rs.all)
  2707. else:
  2708. print(fg(79)+'MoneyTickRatio: '+str(MTR)+rs.all)
  2709.  
  2710.  
  2711. else:
  2712. print(fg(9)+'MoneyTickRatio: ',MTR,rs.all)
  2713. if DR >= 1:
  2714. if DR > 2:
  2715. print(fg(39)+bg(238)+'$ Strength: '+str(DR)+rs.all)
  2716. else:
  2717. print(fg(50)+'$ Strength: '+str(DR)+rs.all)
  2718.  
  2719.  
  2720.  
  2721. if DR < 1:
  2722. print(fg(9)+'$ Strength: '+str(DR)+rs.all)
  2723.  
  2724. if PainGauge < 1:
  2725. if PainGauge < .8:
  2726. print(fg(39)+bg(238)+'PainGauge: %s (%s' % (PainGauge, PainGaugePct)+'%)',rs.all)
  2727. else:
  2728. print(fg(117)+bg(238)+'PainGauge: %s (%s' % (PainGauge, PainGaugePct)+'%)',rs.all)
  2729.  
  2730. if PainGauge >= 1:
  2731. print(fg(9)+'PainGauge: %s (%s' % (PainGauge, PainGaugePct)+'%)',rs.all)
  2732.  
  2733.  
  2734. avg_sneakr_avg_m = round(avg_sneakR / avg_mRatio, 3)
  2735.  
  2736. if avg_sneakr_avg_m >= avg_sneakR:
  2737. if avg_sneakr_avg_m < 25 and avg_sneakR < 20:
  2738. print(ef.u+fg(0)+bg(1)+'Avg sneakR1: ',avg_sneakR,rs.all+'\n'+fg(191)+bg(124)+ef.b+'Avg sneakR / avg mRatio',avg_sneakr_avg_m,rs.all)
  2739. else:
  2740.  
  2741. print(ef.dim+fg(100)+'Avg sneakR1: ',avg_sneakR,rs.all+'\n'+fg(9)+ef.u+'Avg sneakR / avg mRatio',avg_sneakr_avg_m,rs.all)
  2742.  
  2743. # print(ef.dim+'Avg sneakR1: ',avg_sneakR,rs.all+'\n'+fg(50)+ef.u+'Avg sneakR / avg mRatio',avg_sneakr_avg_m,rs.all)
  2744. else:
  2745. print(fg(50)+ef.u+'Avg sneakR1: ',avg_sneakR,rs.all+'\n'+ef.dim+fg(100)+'Avg sneakR / avg mRatio',avg_sneakr_avg_m, rs.all)
  2746.  
  2747. if sneakR_lgst_avg_ratio >= 7:
  2748. print('sneakR lgst:avg: '+fg(9)+str(sneakR_lgst_avg_ratio)+rs.all)
  2749. else:
  2750. print(fg(123)+bg(90)+ef.u+'sneakR lgst:avg: '+str(sneakR_lgst_avg_ratio)+rs.all)
  2751.  
  2752. print('Implied Vol: ',Avg_Move,'%')
  2753. print('LFPC Volatility %: ',sum_large_LFPC,'%')
  2754.  
  2755. print('TATBR Sum As % Of Price: ',str(TATBR_Sum)+'%')
  2756. print('Largest Sneak Ratio: ', max(sneakR_log))
  2757.  
  2758. print(ef.u+'Trading Above Count: ', TradingAbove_Count, 'Trading Above $ Total: $', TradingAbove_Diff,rs.all)
  2759. print(ef.u+'Trading Below Count: ', TradingBelow_Count, 'Trading Below $ Total: $', TradingBelow_Diff,rs.all)
  2760. if TradingAbove_Count >= 1 and TradingBelow_Count >= 1:
  2761. if TradingAbove_Count > TradingBelow_Count:
  2762. if TATBR > TATBR_diff:
  2763. print(ef.dim+'TATBR: ',TATBR,rs.all,'\n'+fg(172)+ef.u+'TATBR Diff: ',TATBR_diff,rs.all)
  2764.  
  2765. if TATBR_diff > TATBR:
  2766. print(ef.dim+'TATBR: ',TATBR,rs.all,'\n'+fg(39)+ef.u+'TATBR Diff: ',TATBR_diff,rs.all)
  2767.  
  2768. if TradingBelow_Count > TradingAbove_Count:
  2769. if TATBR > TATBR_diff:
  2770. print(fg(154)+'TATBR: ',TATBR,rs.all,'\n'+fg(17)+bg(154)+ef.u+'TATBR Diff: ',TATBR_diff,rs.all)
  2771.  
  2772. if TATBR_diff > TATBR:
  2773. print(fg(154)+'TATBR: ',TATBR,rs.all,'\n'+fg(157)+bg(17)+ef.u+'TATBR Diff: ',TATBR_diff,rs.all,)
  2774.  
  2775.  
  2776. print('TATBR_A: ',TATBR_A)
  2777. print('TATBR_B: ',TATBR_B)
  2778. print('GapUps: ',gapUp)
  2779. print('GapDowns: ',gapDown)
  2780. print('UpCount: ',UP_c)
  2781. print('DownCount: ',DOWN_c)
  2782.  
  2783.  
  2784.  
  2785. if gapRatio >= 1:
  2786. if gapRatio >= 1.5:
  2787. print(bg(123)+fg(4)+ef.u+ef.b+'GapRatio: ',gapRatio,rs.all)
  2788. else:
  2789. print(fg(39)+'GapRatio: ',gapRatio,rs.all)
  2790.  
  2791. if gapRatio < 1:
  2792. print(fg(9)+'GapRatio: ',gapRatio,rs.all)
  2793. print('MIV Spike Count: ',MIV_Spike_Count)
  2794. print('Avg MIV Spike',Avg_MIV_Spike,'%')
  2795. print('sneakR_Sum: ',sneakR_Sum)
  2796. if avg_mRatio >= 1:
  2797. print(fg(159)+bg(52)+'Avg mRatio: ',avg_mRatio,rs.all)
  2798. else:
  2799. print('Avg mRatio: ',avg_mRatio)
  2800.  
  2801. print('Avg Liq Change: $','{:5,.2f}'.format(avg_Liq_change))
  2802. if chg_Open > 0:
  2803. print(fg(51)+'% Chg Open: ',chg_Open,'%',rs.all)
  2804. else:
  2805. print(fg(9)+'% Chg Open: ',chg_Open,'%',rs.all)
  2806.  
  2807. liqstr = '{:5,.2f}'.format(Liquidity)
  2808. avg_pct_liq_chg = round(100*(avg_Liq_change / abs(Liquidity)), 3)
  2809. print('Liquidity: $',liqstr)
  2810. print('Avg Liq Change % Liquidity: ',avg_pct_liq_chg,'%')
  2811. if avg_QR < 25:
  2812. print(fg(11)+bg(59)+'Avg QR: ',avg_QR,rs.all)
  2813. else:
  2814. print(fg(20)+bg(59)+'Avg QR: ',avg_QR,rs.all)
  2815. print('PivotPrice: '+PivotStr)
  2816. sum_LFPC = round(sum_LFPC, 4)
  2817.  
  2818.  
  2819. print('SUM LFPC | AVG LFPC: %s | %s' % (sum_LFPC, avg_LFPC))
  2820.  
  2821. print('GapUpDistance: %s' % gapUpDistance)
  2822. print('GapDownDistance: %s' % gapDownDistance)
  2823. print('GDR: %s' % gapDistanceRatio)
  2824. print('Volatility Index: %s' % volatility_index)
  2825. print('Avg Vol: %s' % avgVol)
  2826.  
  2827.  
  2828. if menu_ans == '3':
  2829. import tcopy
  2830.  
  2831.  
  2832.  
  2833.  
  2834.  
  2835.  
  2836.  
  2837.  
  2838. if PrintInfo == True:
  2839.  
  2840.  
  2841. print('MIV Spike Count: ',MIV_Spike_Count)
  2842. print('Avg MIV Spike',Avg_MIV_Spike,'%')
  2843. print(Fore.CYAN + 'REF#:', ref_Num)
  2844. time.sleep(.25)
  2845. print(Fore.WHITE + Time)
  2846. time.sleep(.25)
  2847. print('Adj BP%: ',adj_Strength,'%')
  2848.  
  2849. print("Last:", "$" + str(Close_Price))
  2850. time.sleep(.25)
  2851. print("HLCC:", "$" + str(HLCC))
  2852. time.sleep(.25)
  2853. if HLCC >= M_Price:
  2854. print(Fore.CYAN+"Money Price: "+" $" + str(round(M_Price, 2))+Style.RESET_ALL)
  2855. time.sleep(.25)
  2856. print(Fore.CYAN+'Price Diff: ' + '$' + str(Diff)+Style.RESET_ALL)
  2857.  
  2858. if HLCC < M_Price:
  2859. print(Fore.RED+"Money Price: "+Fore.RED+" $" + str(round(M_Price, 2))+Style.RESET_ALL)
  2860. time.sleep(.25)
  2861. print(Fore.RED+'Price Diff: ' + '$' + str(Diff)+Style.RESET_ALL)
  2862.  
  2863. time.sleep(.25)
  2864. if f_Vol > 1000000:
  2865. print(Fore.YELLOW + 'Volume:' + '{:20,.2f}'.format(f_Vol))
  2866. else:
  2867. print(Fore.WHITE + 'Volume:' + '{:20,.2f}'.format(f_Vol))
  2868. time.sleep(.25)
  2869. if Money_Flow > 350000000:
  2870. print(Fore.YELLOW + '$Flow:' + '{:20,.2f}'.format(Money_Flow))
  2871. else:
  2872. print(Fore.WHITE + '$Flow:' + '{:20,.2f}'.format(Money_Flow))
  2873. time.sleep(.25)
  2874. if Liq_change < 0:
  2875. print(Fore.RED + 'Liq Change:', '{:20,.2f}'.format(Liq_change), Style.RESET_ALL)
  2876. else:
  2877. print(Fore.CYAN + 'Liq Change:', '{:20,.2f}'.format(Liq_change))
  2878. time.sleep(.25)
  2879. if Liquidity < 0:
  2880. print(Fore.RED + 'Current Liquidity:' + '{:20,.2f}'.format(Liquidity), Style.RESET_ALL)
  2881. else:
  2882. print(Fore.CYAN + 'Current Liquidity:' + '{:20,.2f}'.format(Liquidity), Style.RESET_ALL)
  2883. time.sleep(.25)
  2884. print('Avg MIV Spike: ',Avg_MIV_Spike,'%')
  2885. print('Gap Ratio: ',gapRatio)
  2886. if percent_Strength >= -.68:
  2887. percent_Strength_String = Fore.GREEN+'Current Strength: '+str(percent_Strength)+'%'+Style.RESET_ALL
  2888. print(percent_Strength_String)
  2889. if percent_Strength <-.68:
  2890. percent_Strength_String = Fore.RED+'Current Strength: '+str(percent_Strength)+'%'+Style.RESET_ALL
  2891. print(percent_Strength_String)
  2892.  
  2893. # new_Strength = 100-(100*abs(percent_Strength- -.3153) / .8719)
  2894. if new_Strength > 70:
  2895. if Intraday_Strength >= new_Strength:
  2896. print(ef.u+'Adj BP%: ',adj_Strength,'%',rs.all,'\n'+'Bullishness Percentile: '+str(round(new_Strength, 2)))
  2897. else:
  2898. new_Strength_String = Fore.CYAN+'Bullishness Percentile: '+str(round(new_Strength, 2))+'%'+Style.RESET_ALL
  2899.  
  2900. else:
  2901. print('Adj BP%: ',adj_Strength,'%')
  2902. new_Strength_String = Fore.RED+'Bullishness Percentile: '+str(round(new_Strength, 2))+'%'+Style.RESET_ALL
  2903.  
  2904. print('PainGauge: ',PainGauge)
  2905. print('IntraDay Strength: ',Intraday_Strength,'%')
  2906. # pctShortBuying = round(BuyPower / ShortPower, 4)*100
  2907. # pctNetSelling = round(SellPower / ShortPower, 4)*100
  2908. # pctNetBuying = round(BuyPower / SellPower, 4)*100
  2909. # pctNetBuyingStr = str(pctNetBuying)
  2910. # pctNetSellingStr = str(pctNetSelling)
  2911. # pctShortBuyingStr = str(pctShortBuying)
  2912. # print('Buy Power', '{:5,.2f}'.format(BuyPower), 'Short Power:','{:5,.2f}'.format(ShortPower))
  2913. # print('Buy Power as % of Short Selling: ['+pctShortBuyingStr+'%]')
  2914. # print('Sell Power as % of Short Selling: ['+pctNetSellingStr+'%]')
  2915. # BullBearRatio = abs(round(float(pctShortBuying / pctNetSelling), 4))
  2916. # print('Bull Bear Ratio: ',BullBearRatio)
  2917. print('UpTick/DownTick Ratio: ',UDR)
  2918. print('Money Tick Ratio: '+str(MTR)+mticksymbol+Style.RESET_ALL)
  2919. if DRC >= 1:
  2920. print('DRC: ', DRC)
  2921. print('Avg Distribution Price: $'+str(Avg_DPrice))
  2922. print('Weighted Avg DPrice: $'+str(Weighted_Avg_DPrice))
  2923.  
  2924. print('Last Distribution Price: $'+str(lastDPrice))
  2925. # print('Resistance: $',max(DP_list))
  2926. # print('Support: $',min(DP_list))
  2927. print('$ Strength: '+str(DR))
  2928.  
  2929.  
  2930. if lows_found >= 1 or highs_found >= 1:
  2931. print('\nLow Ranges/Targets Found|Filled:',lows_found, '| ', low_Ranges_Filled)
  2932. print('\nHigh Ranges/Targets Found|Filled: ',highs_found, '| ', high_Ranges_Filled)
  2933. print('Total found: ',found)
  2934. if hidden_strength > 0:
  2935. print('Hidden Strength: %s' % hidden_strength)
  2936. print('Avg sneakR: %s' % avg_sneakR)
  2937. print('Projected sneakR_Sum EOD: %s' % '{:2,.2f}'.format(projected_ss_eod))
  2938. print('Pivot Spread: $%s' % PivotSpread)
  2939.  
  2940. Style.RESET_ALL
  2941.  
  2942.  
  2943.  
  2944. ### OTHER COLORS - 45, 94
  2945. ### 52, 87 (bullish maybe)
  2946. ### 220, 0 (bearish/volatile maybe
  2947. ### 236, 16, dope color combo
  2948. ###197, 232, like a pink on black looks dope
  2949. ### 171,232
  2950. ### 122, 53
  2951. ### 190, 16
  2952. ### 159, 235
  2953. ###118, 234
  2954. ### 246, 237
  2955. ### 152, 233
  2956. ### I like 213 and 113 fg
  2957. ### 15, 161
  2958. ### 21, 85
  2959. ### 130, 120, like a pink on green, bullish
  2960. ### fg 152 is super nice
  2961. ###122 IDK 234
  2962. ###51 IDK 16
  2963. ### 0 IDK 155
  2964. ### 16 IDK 40
  2965. # 209 IDK 233
  2966. # 191 IDK 16 < Straight Yellow
  2967. # 119 IDK 232 < Straight green
  2968.  
  2969.  
  2970. ### ABSOLUTE MAX CONFIDENCE , sneakR < 5, qratio <= 10, LFPC >= .002
  2971. ### QRATIO >= 150
  2972.  
  2973.  
  2974. ############## 11 / 06 /
  2975. ######09-20 13:03:00 | 0.093 12.28 132.043 -0.034 0.0034 1,240.75 | -0.66% | -0.55% | -0.43% | -0.32% | -0.7%
  2976.  
  2977. # 08-21 12:41:00 | 0.044 0.66 15.0 -0.006 0.0094 1,184.37 | 0.08% | 0.07% | 0.0% | -0.1% | 0.15%
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement