example

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BasicEma

func BasicEma() indicators.Indicator

BasicEma is an example of how to create a basic Exponential moving average indicator based on close prices of a timeseries from your exchange of choice.

func StrategyExample

func StrategyExample()

StrategyExample shows how to create a simple trading strategy. In this example, a position should be opened if the price moves above 30, and the position should be closed if a position moves below 10.

Types

This section is empty.

Jump to

Keyboard shortcuts

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