Support buy scaling from platform factors

This commit is contained in:
boris
2026-04-22 04:04:13 -07:00
parent 7f54309d53
commit 1a12c46589
3 changed files with 72 additions and 2 deletions

View File

@@ -52,6 +52,7 @@ strategy("microcap_volume_trend_000852") {
risk.take_profit(close_rate)
risk.stop_loss(loss_rate)
allocation.buy_scale(touched_upper_limit ? 1.0 : trade_rate)
ordering.rank_by("market_cap", "asc")
}

View File

@@ -29,6 +29,9 @@
"stopLossExpr": "loss_rate",
"takeProfitExpr": "close_rate"
},
"allocation": {
"buyScaleExpr": "touched_upper_limit ? 1.0 : trade_rate"
},
"ordering": {
"rankBy": "market_cap",
"rankExpr": "",