Allow jq sells when snapshot last stays above limit

This commit is contained in:
boris
2026-04-21 18:59:48 -07:00
parent 20af824545
commit 6c353d5441
3 changed files with 42 additions and 2 deletions

View File

@@ -1050,10 +1050,11 @@ impl JqMicroCapStrategy {
let Ok(candidate) = ctx.data.require_candidate(date, symbol) else {
return false;
};
let lower_limit_check_price = market.price(PriceField::Last);
!(market.paused
|| candidate.is_paused
|| !candidate.allow_sell
|| market.is_at_lower_limit_price(market.sell_price(PriceField::Last)))
|| market.is_at_lower_limit_price(lower_limit_check_price))
}
fn buy_rejection_reason(