简介
该用户还未填写简介
擅长的技术栈
可提供的服务
暂无可提供的服务
# MACD Source Code```pythonclass MACDIndicator(object):def __init__(self,close: pd.Series,short: int = 12,long: int = 26,mid: int = 9,):self._close =
# KDJ Source Code```pythonclass KDJIndicator(object):def __init__(self,low: pd.Series,high: pd.Series,close: pd.Series,n: int = 9,m1: int = 3,
# EMA Source Code```pythonclass EMAIndicator(object):def __init__(self,value: pd.Series,period: int = 5,):self._value = value.copy()self._period = periodself._run()
# MACD Source Code```pythonclass MACDIndicator(object):def __init__(self,close: pd.Series,short: int = 12,long: int = 26,mid: int = 9,):self._close =
利用二叉树遍历解决24点问题Source Code#!/usr/bin/python# -*- coding: utf-8 -*-# @Time: 2020/11/12 21:50# @Author : SandQuantimport itertoolsdef add(a, b):return a + bdef sub(a, b):return a - bdef pro(a, b):return
#!/usr/bin/python# -*- coding: utf-8 -*-# @Time: 2021/11/4 11:48# @Author : SandQuantimport mathprint(math.e)# 自然数eprint(math.pi)# 自然数piprint(math.inf)# 无穷print(math.nan)# 缺失print(math.fabs(-100))# 返回
# SMA Source Code```pythonclass SMAIndicator(object):"""对比通达信,测试通过,实际使用可以四舍五入"""def __init__(self,value: pd.Series,N: int = 3,M: int = 1,):self._value =
# CCI Source Code```pythonclass CCIIndicator(object):def __init__(self,low: pd.Series,high: pd.Series,close: pd.Series,n: int = 14,):self._low = low.c
# SAR Source Code```pythonclass SARIndicator(object):def __init__(self,high: pd.Series,low: pd.Series,close: pd.Series,period: int = 4,step: float = 0.02,
Problems一次只执行5个任务,执行完5个再去执行下面5个Source Code#!/usr/bin/python# -*- coding: utf-8 -*-# @Time: 2021/6/12 12:00# @Author : SandQuantimport timeimport datetimeimport threadingmax_connections = 5# 定义最大线程数poo