strategies

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTrailing

func NewTrailing(pairs []string) strategy.HighFrequencyStrategy

Types

type CrossEMA

type CrossEMA struct{}

func (CrossEMA) Indicators

func (e CrossEMA) Indicators(df *ninjabot.Dataframe) []strategy.ChartIndicator

func (*CrossEMA) OnCandle

func (e *CrossEMA) OnCandle(df *ninjabot.Dataframe, broker service.Broker)

func (CrossEMA) Timeframe

func (e CrossEMA) Timeframe() string

func (CrossEMA) WarmupPeriod

func (e CrossEMA) WarmupPeriod() int

type OCOSell

type OCOSell struct{}

func (OCOSell) Indicators

func (e OCOSell) Indicators(df *model.Dataframe) []strategy.ChartIndicator

func (*OCOSell) OnCandle

func (e *OCOSell) OnCandle(df *model.Dataframe, broker service.Broker)

func (OCOSell) Timeframe

func (e OCOSell) Timeframe() string

func (OCOSell) WarmupPeriod

func (e OCOSell) WarmupPeriod() int

type Turtle

type Turtle struct{}

https://www.investopedia.com/articles/trading/08/turtle-trading.asp

func (Turtle) Indicators

func (e Turtle) Indicators(df *ninjabot.Dataframe) []strategy.ChartIndicator

func (*Turtle) OnCandle

func (e *Turtle) OnCandle(df *ninjabot.Dataframe, broker service.Broker)

func (Turtle) Timeframe

func (e Turtle) Timeframe() string

func (Turtle) WarmupPeriod

func (e Turtle) WarmupPeriod() int

Jump to

Keyboard shortcuts

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