通达信zig函数的python实现 代码 # coding: utf-8 """ Created on Sat Jan 05 18:53:39 2019 http://www.pianshen.com/article/363258879/ @author: duanqs """ import numpy as np import tushare as ts import matplotlib.pyplot as plt ZIG_STATE_STA
{底背离,通达信版.同花顺版} DIFF:=EMA(CLOSE,) - EMA(CLOSE,); DEA:=EMA(DIFF,); MACD:=*(DIFF-DEA); QZQ:=BARSLAST(REF(MACD,)< AND MACD>); QM:=LLVBARS(MACD,QZQ+); MQDZ:=IF(QM>QZQ,REF(MACD,QM),); XG1:=MACD< AND MACD>MQDZ AND CLOSE=LLV(CLOSE,QZQ+) AND MQDZ&l
public Bar ReadBarMin(BinaryReader br, int instrumentId, long size) { int date = br.ReadUInt16(); int min = br.ReadUInt16(); // 股票2位,国债回购3位,300ETF是4位 double open = Convert.ToDouble(Convert.ToDecimal(br.ReadSingle())); double high = Convert.ToDouble(C
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; namespace myEMA{ public class myEMA { /// <summary> /// Contains calculation results for EMA indicator /// </summary> public class