mirror of
https://github.com/KhizarImran/backtestingfx.git
synced 2026-07-28 04:27:44 +00:00
9 lines
172 B
Rust
9 lines
172 B
Rust
use crate::types::Bar;
|
|
use crate::broker::Broker;
|
|
|
|
pub trait Strategy {
|
|
fn init(&mut self, _data: &[Bar]) {}
|
|
fn next(&mut self, bar: &Bar, broker: &mut Broker);
|
|
}
|
|
|