├── .gitignore ├── README.md ├── cmd ├── compile │ ├── TEST.d │ ├── build.sh │ └── main.go └── el2go │ ├── TEST.d │ ├── build.sh │ ├── main.go │ └── test.sh ├── datalibrary └── datalibrary.go ├── easylang ├── Makefile ├── compiler.go ├── context.go ├── description.go ├── easylang.go ├── easylang.y ├── error.go ├── expression.go ├── generator.go ├── gogenerator.go ├── luagenerator.go ├── tokenizer.go └── tokenizer.l ├── formulalibrary ├── base │ ├── factory │ │ └── factory.go │ └── formula │ │ ├── drawactions.go │ │ ├── formula.go │ │ ├── manager.go │ │ └── meta.go ├── easylang │ └── easylangfactory │ │ ├── creator.go │ │ └── creatorfactory.go ├── formulalibrary.go ├── lua │ ├── luafactory │ │ ├── creator.go │ │ └── creatorfactory.go │ └── luaformula │ │ ├── luaformula.go │ │ ├── luafunc.go │ │ └── meta.go └── native │ ├── creator.go │ ├── nativefactory │ ├── creator.go │ └── creatorfactory.go │ └── nativeformulas │ ├── baseformula.go │ └── nativeformulas.go ├── function ├── base_func.go ├── const.go ├── draw.go ├── function_test.go ├── ma_func.go ├── op_func.go ├── stat_func.go ├── util.go └── value.go ├── go.mod ├── go.sum ├── stockfunc └── function │ ├── crossvalue.go │ ├── data.go │ ├── field.go │ ├── indexmap.go │ └── periods.go └── test ├── 300666.SZ.json ├── CROSS.d ├── DRAW.d ├── DRAWLINE.d ├── MA.d ├── MACD.d ├── MACDBUY.d ├── PLOYLINE.d ├── VOL.d ├── account.lua ├── data.json ├── data └── vipdoc │ ├── infoex.dat │ └── sz │ └── lday │ └── sz000001.day ├── easylang_test.go ├── el ├── MACD.d └── MACDBUY.d ├── formula_test.go ├── function_test.go ├── luaformula_test.go ├── luar_test.go ├── luas ├── MACD.d.lua └── MACDBUY.d.lua └── suite_test.go /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .idea/ 3 | TdxProtocol 4 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/README.md -------------------------------------------------------------------------------- /cmd/compile/TEST.d: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/cmd/compile/TEST.d -------------------------------------------------------------------------------- /cmd/compile/build.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | go build -------------------------------------------------------------------------------- /cmd/compile/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/cmd/compile/main.go -------------------------------------------------------------------------------- /cmd/el2go/TEST.d: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/cmd/el2go/TEST.d -------------------------------------------------------------------------------- /cmd/el2go/build.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | go build -------------------------------------------------------------------------------- /cmd/el2go/main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/cmd/el2go/main.go -------------------------------------------------------------------------------- /cmd/el2go/test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/cmd/el2go/test.sh -------------------------------------------------------------------------------- /datalibrary/datalibrary.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/datalibrary/datalibrary.go -------------------------------------------------------------------------------- /easylang/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/easylang/Makefile -------------------------------------------------------------------------------- /easylang/compiler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/easylang/compiler.go -------------------------------------------------------------------------------- /easylang/context.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/easylang/context.go -------------------------------------------------------------------------------- /easylang/description.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/easylang/description.go -------------------------------------------------------------------------------- /easylang/easylang.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/easylang/easylang.go -------------------------------------------------------------------------------- /easylang/easylang.y: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/easylang/easylang.y -------------------------------------------------------------------------------- /easylang/error.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/easylang/error.go -------------------------------------------------------------------------------- /easylang/expression.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/easylang/expression.go -------------------------------------------------------------------------------- /easylang/generator.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/easylang/generator.go -------------------------------------------------------------------------------- /easylang/gogenerator.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/easylang/gogenerator.go -------------------------------------------------------------------------------- /easylang/luagenerator.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/easylang/luagenerator.go -------------------------------------------------------------------------------- /easylang/tokenizer.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/easylang/tokenizer.go -------------------------------------------------------------------------------- /easylang/tokenizer.l: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/easylang/tokenizer.l -------------------------------------------------------------------------------- /formulalibrary/base/factory/factory.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/formulalibrary/base/factory/factory.go -------------------------------------------------------------------------------- /formulalibrary/base/formula/drawactions.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/formulalibrary/base/formula/drawactions.go -------------------------------------------------------------------------------- /formulalibrary/base/formula/formula.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/formulalibrary/base/formula/formula.go -------------------------------------------------------------------------------- /formulalibrary/base/formula/manager.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/formulalibrary/base/formula/manager.go -------------------------------------------------------------------------------- /formulalibrary/base/formula/meta.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/formulalibrary/base/formula/meta.go -------------------------------------------------------------------------------- /formulalibrary/easylang/easylangfactory/creator.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/formulalibrary/easylang/easylangfactory/creator.go -------------------------------------------------------------------------------- /formulalibrary/easylang/easylangfactory/creatorfactory.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/formulalibrary/easylang/easylangfactory/creatorfactory.go -------------------------------------------------------------------------------- /formulalibrary/formulalibrary.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/formulalibrary/formulalibrary.go -------------------------------------------------------------------------------- /formulalibrary/lua/luafactory/creator.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/formulalibrary/lua/luafactory/creator.go -------------------------------------------------------------------------------- /formulalibrary/lua/luafactory/creatorfactory.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/formulalibrary/lua/luafactory/creatorfactory.go -------------------------------------------------------------------------------- /formulalibrary/lua/luaformula/luaformula.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/formulalibrary/lua/luaformula/luaformula.go -------------------------------------------------------------------------------- /formulalibrary/lua/luaformula/luafunc.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/formulalibrary/lua/luaformula/luafunc.go -------------------------------------------------------------------------------- /formulalibrary/lua/luaformula/meta.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/formulalibrary/lua/luaformula/meta.go -------------------------------------------------------------------------------- /formulalibrary/native/creator.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/formulalibrary/native/creator.go -------------------------------------------------------------------------------- /formulalibrary/native/nativefactory/creator.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/formulalibrary/native/nativefactory/creator.go -------------------------------------------------------------------------------- /formulalibrary/native/nativefactory/creatorfactory.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/formulalibrary/native/nativefactory/creatorfactory.go -------------------------------------------------------------------------------- /formulalibrary/native/nativeformulas/baseformula.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/formulalibrary/native/nativeformulas/baseformula.go -------------------------------------------------------------------------------- /formulalibrary/native/nativeformulas/nativeformulas.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/formulalibrary/native/nativeformulas/nativeformulas.go -------------------------------------------------------------------------------- /function/base_func.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/function/base_func.go -------------------------------------------------------------------------------- /function/const.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/function/const.go -------------------------------------------------------------------------------- /function/draw.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/function/draw.go -------------------------------------------------------------------------------- /function/function_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/function/function_test.go -------------------------------------------------------------------------------- /function/ma_func.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/function/ma_func.go -------------------------------------------------------------------------------- /function/op_func.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/function/op_func.go -------------------------------------------------------------------------------- /function/stat_func.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/function/stat_func.go -------------------------------------------------------------------------------- /function/util.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/function/util.go -------------------------------------------------------------------------------- /function/value.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/function/value.go -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/go.sum -------------------------------------------------------------------------------- /stockfunc/function/crossvalue.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/stockfunc/function/crossvalue.go -------------------------------------------------------------------------------- /stockfunc/function/data.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/stockfunc/function/data.go -------------------------------------------------------------------------------- /stockfunc/function/field.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/stockfunc/function/field.go -------------------------------------------------------------------------------- /stockfunc/function/indexmap.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/stockfunc/function/indexmap.go -------------------------------------------------------------------------------- /stockfunc/function/periods.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/stockfunc/function/periods.go -------------------------------------------------------------------------------- /test/300666.SZ.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/test/300666.SZ.json -------------------------------------------------------------------------------- /test/CROSS.d: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/test/CROSS.d -------------------------------------------------------------------------------- /test/DRAW.d: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/test/DRAW.d -------------------------------------------------------------------------------- /test/DRAWLINE.d: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/test/DRAWLINE.d -------------------------------------------------------------------------------- /test/MA.d: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/test/MA.d -------------------------------------------------------------------------------- /test/MACD.d: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/test/MACD.d -------------------------------------------------------------------------------- /test/MACDBUY.d: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/test/MACDBUY.d -------------------------------------------------------------------------------- /test/PLOYLINE.d: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/test/PLOYLINE.d -------------------------------------------------------------------------------- /test/VOL.d: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/test/VOL.d -------------------------------------------------------------------------------- /test/account.lua: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/test/account.lua -------------------------------------------------------------------------------- /test/data.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/test/data.json -------------------------------------------------------------------------------- /test/data/vipdoc/infoex.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/test/data/vipdoc/infoex.dat -------------------------------------------------------------------------------- /test/data/vipdoc/sz/lday/sz000001.day: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/test/data/vipdoc/sz/lday/sz000001.day -------------------------------------------------------------------------------- /test/easylang_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/test/easylang_test.go -------------------------------------------------------------------------------- /test/el/MACD.d: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/test/el/MACD.d -------------------------------------------------------------------------------- /test/el/MACDBUY.d: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/test/el/MACDBUY.d -------------------------------------------------------------------------------- /test/formula_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/test/formula_test.go -------------------------------------------------------------------------------- /test/function_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/test/function_test.go -------------------------------------------------------------------------------- /test/luaformula_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/test/luaformula_test.go -------------------------------------------------------------------------------- /test/luar_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/test/luar_test.go -------------------------------------------------------------------------------- /test/luas/MACD.d.lua: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/test/luas/MACD.d.lua -------------------------------------------------------------------------------- /test/luas/MACDBUY.d.lua: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/test/luas/MACDBUY.d.lua -------------------------------------------------------------------------------- /test/suite_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenlyu/goformula/HEAD/test/suite_test.go --------------------------------------------------------------------------------