50 lines
865 B
Go
50 lines
865 B
Go
package helper
|
|
|
|
import (
|
|
"git.qtrade.icu/coin-quant/base/common"
|
|
"git.qtrade.icu/coin-quant/base/engine"
|
|
. "git.qtrade.icu/coin-quant/trademodel"
|
|
)
|
|
|
|
type CandleFn func(candle Candle)
|
|
type Engine = engine.Engine
|
|
type Param = common.Param
|
|
type ParamData = common.ParamData
|
|
|
|
var StringParam = common.StringParam
|
|
var IntParam = common.IntParam
|
|
var FloatParam = common.FloatParam
|
|
var BoolParam = common.BoolParam
|
|
|
|
func min(a, b float64) float64 {
|
|
return 0
|
|
}
|
|
|
|
func max(a, b float64) float64 {
|
|
return 0
|
|
}
|
|
|
|
func formatFloat(n float64, precision int) float64 {
|
|
return 0
|
|
}
|
|
|
|
// FloatMul return a*b
|
|
func FloatMul(a, b float64) float64 {
|
|
return 0
|
|
}
|
|
|
|
// FloatAdd return a*b
|
|
func FloatAdd(a, b float64) float64 {
|
|
return 0
|
|
}
|
|
|
|
// FloatSub return a-b
|
|
func FloatSub(a, b float64) float64 {
|
|
return 0
|
|
}
|
|
|
|
// FloatDiv return a/b
|
|
func FloatDiv(a, b float64) float64 {
|
|
return 0
|
|
}
|