Transactional type

See also

Init Function:

from indicator.technology.transactional  import *
import tushare as ts
pro = ts.pro_api('59e1f90437c021fb31c99c20d08493070f17305afe606fdf0ef89f37')
df = pro.daily(ts_code='000001.SZ', start_date='20180701', end_date='20190718')
df['volume'] = df['vol']
df.tail()
indicator.technology.transactional.MAJY(df, SHORT=5, LONG=20)
Parameters:
  • df – DataFrame
  • MA1 – 收盘价的SHORT日简单移动平均
  • MA2 – 收盘价的LONG日简单移动平均
Returns:

DUO:做多信号
KONG:做空信号

Note

MA交易

indicator.technology.transactional.MACDJY(df, SHORT=12, LONG=26, MID=9)
Parameters:
  • df – DataFrame
  • MA1 – 收盘价的SHORT日简单移动平均
  • MA2 – 收盘价的LONG日简单移动平均
Returns:

DUO:做多信号
KONG:做空信号

Note

MACD交易

indicator.technology.transactional.KDJJY(df, N=9, M1=3)
Parameters:
  • df – DataFrame
  • MA1 – 收盘价的SHORT日简单移动平均
  • MA2 – 收盘价的LONG日简单移动平均
Returns:

DUO:做多信号
KONG:做空信号

Note

KDJ交易

indicator.technology.transactional.TQAJY(df, X1=20, X2=10)
Parameters:
  • df – DataFrame
  • MA1 – 收盘价的SHORT日简单移动平均
  • MA2 – 收盘价的LONG日简单移动平均
Returns:

DUO:做多信号
KONG:做空信号

Note

唐奇安