mirror of
https://github.com/KhizarImran/backtestingfx.git
synced 2026-08-04 07:47:45 +00:00
8 lines
131 B
Rust
8 lines
131 B
Rust
|
|
use crate::types::Bar;
|
||
|
|
use crate::broker::Broker;
|
||
|
|
|
||
|
|
pub trait Strategy {
|
||
|
|
fn next(&mut self, bar: &Bar, broker: &mut Broker);
|
||
|
|
}
|
||
|
|
|