Sizing reference
All 1 sizing in AlgoBarsX, each with its parameters, defaults, ranges and an example: size_for.
size_for(symbol = market.symbol, risk, stop)→ lots#
The lot size an entry would use for a risk and stop, rounded down to the lot step.
Parameters
| Name | Type | Default | What it is |
|---|---|---|---|
symbol | symbol | market.symbol | Market to size. |
risk | percent | money | required | Risk to take. |
stop | distance | required | Stop distance. |
eur_size = size_for(EURUSD, risk: 0.5%, stop: 30 pips)strategysince 1.0