Support buy scaling from platform factors
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
@@ -29,6 +29,9 @@
|
||||
"stopLossExpr": "loss_rate",
|
||||
"takeProfitExpr": "close_rate"
|
||||
},
|
||||
"allocation": {
|
||||
"buyScaleExpr": "touched_upper_limit ? 1.0 : trade_rate"
|
||||
},
|
||||
"ordering": {
|
||||
"rankBy": "market_cap",
|
||||
"rankExpr": "",
|
||||
|
||||
Reference in New Issue
Block a user