MCPcopy Create free account
hub / github.com/Open-Quant/openquant / limit_price

Function limit_price

crates/openquant/src/bet_sizing.rs:262–264  ·  view source on GitHub ↗
(t_pos: f64, pos: f64, f: f64, w: f64, max_pos: f64, func: &str)

Source from the content-addressed store, hash-verified

260}
261
262pub fn limit_price(t_pos: f64, pos: f64, f: f64, w: f64, max_pos: f64, func: &str) -> f64 {
263 limit_price_checked(t_pos, pos, f, w, max_pos, func).expect("invalid limit_price function")
264}
265
266pub fn limit_price_checked(
267 t_pos: f64,

Callers 2

bet_size_dynamic_checkedFunction · 0.85

Calls 1

limit_price_checkedFunction · 0.85

Tested by 1