logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

【Python 量化交易】MACD技术指标

# MACD Source Code```pythonclass MACDIndicator(object):def __init__(self,close: pd.Series,short: int = 12,long: int = 26,mid: int = 9,):self._close =

#python
【Python 量化交易】KDJ技术指标

# KDJ Source Code```pythonclass KDJIndicator(object):def __init__(self,low: pd.Series,high: pd.Series,close: pd.Series,n: int = 9,m1: int = 3,

#python#开发语言#后端
【Python 量化交易】EMA技术指标

# EMA Source Code```pythonclass EMAIndicator(object):def __init__(self,value: pd.Series,period: int = 5,):self._value = value.copy()self._period = periodself._run()

#python#开发语言#后端
【Python 量化交易】MACD技术指标

# MACD Source Code```pythonclass MACDIndicator(object):def __init__(self,close: pd.Series,short: int = 12,long: int = 26,mid: int = 9,):self._close =

#python
【Python】二叉树解24点

利用二叉树遍历解决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

#python
【Python入门】:标准库math用法

#!/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))# 返回

#python
【Python 量化交易】SMA技术指标

# SMA Source Code```pythonclass SMAIndicator(object):"""对比通达信,测试通过,实际使用可以四舍五入"""def __init__(self,value: pd.Series,N: int = 3,M: int = 1,):self._value =

#python
【Python 量化交易】CCI技术指标

# 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

#python#开发语言#后端
【Python 量化交易】SAR技术指标

# 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,

#python#开发语言#后端
【Python】threading控制线程的数量

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

#python
暂无文章信息