ex_backtest v0.0.1 ExBacktest.Strategy.SmaCrossover

Link to this section Summary

Link to this section Functions

Link to this function

add_buy_point(prev_low, prev_high, cur_low, cur_high, buys, index)

add_buy_point(float(), float(), float(), float(), [integer()], integer()) :: [
  integer()
]
Link to this function

add_sell_point(prev_low, prev_high, cur_low, cur_high, sells, index)

add_sell_point(float(), float(), float(), float(), [integer()], integer()) :: [
  integer()
]
Link to this function

buys_sells(lows, highs, buys, sells)

buys_sells([float()], [float()], [integer()], [integer()]) :: {any(), any()}
Link to this function

potential_trades(data)

Link to this function

prev_sma(lows, highs)

prev_sma([float()], [float()]) :: {float(), float()}