multiplier

package
v0.0.202 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FIVE_PERCENT = 1.05
)

Variables

This section is empty.

Functions

func DoubleOrNothing added in v0.0.202

func DoubleOrNothing(size float64, prec int, stoppedAt float64) (float64, error)

after a stop-loss got filled, pass in... 1) the order size, and 2) the size precision, and 3) what price you got stopped at. assuming -mult and -stop do not change, this func will return your new stop-loss order *size*

func Format

func Format(mult Mult) string

Types

type Mult

type Mult float64

func Get

func Get(def float64) (Mult, error)

func Stop

func Stop() (Mult, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL