Skip to content

Instantly share code, notes, and snippets.

View deerme's full-sized avatar

Pedro V deerme

View GitHub Profile
# we are using mplfinance to help us visualize the indicator
import mplfinance as mpf
# to make the visualization better by only taking the last 100 rows of data
df = df[-100:]
# extract only ['Open', 'High', 'Close', 'Low'] from df
ohcl = df[['Open', 'High', 'Close', 'Low']]
# add colors for the 'value bar'
@deerme
deerme / websocket-pybithumb-with-pyqt.py
Created February 7, 2022 18:10 — forked from mr-yoo/websocket-pybithumb-with-pyqt.py
pybithumb websocket test with PyQt
from pybithumb import WebSocketManager
import sys
from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
from PyQt5.QtGui import QIcon
import time
class Worker(QThread):
recv = pyqtSignal(str)
@deerme
deerme / screenutils.py
Created November 18, 2022 13:03 — forked from jdevera/screenutils.py
Gnu screen handling in python
#!/usr/bin/env python
# -*- coding:utf-8 -*-
#
# Now this lib is on her own full repository and pypi page:
# http://github.com/Christophe31/screenutils
# http://pypi.python.org/pypi/screenutils
#
# This may not work with bpython, use python 2.6 or upper
#
# This program is free software. It comes without any warranty, to