TAYU Academy course material · Grid & Range Strategies
Course Notes
1. Understand the core idea of “Dynamic grid simulation” and explain it in your own words
2. Master this module's focus: Dynamic grid design
3. Complete the assignment on your own and check it against the reference answer
Dynamic grid simulation must maintain cash, inventory, realized, and unrealized results simultaneously. Counting only the number of triggers or small profits recovered can hide trend exposure.
Use ATR to adjust the grid spacing (larger intervals for greater volatility). Set the upper and lower boundaries of the range, the maximum number of layers, and the overall stop-loss. Estimate the worst-case funds required: the total loss when all layers are executed and the stop-loss is hit.
ATR=30 pip, spacing is 1×ATR, with a maximum of 5 layers, each layer 0.01 lot; in the worst-case scenario, all 5 layers are executed, and a stop-loss of 150 pip is placed below the current position. The total loss per layer is calculated based on the distance from the current position to the stop-loss, and the total loss is confirmed to not exceed 5% of the account equity.
Freeze the synthetic path → one trigger per level → include fees → value at every step → stop adding at the cap → output every path.
Buy 100/98 each 1, then sell 1 unit at 100, assuming FIFO and no fees, what is the net equity change in the remaining 1 unit when it is at 96?
Selling 100 initially, aiming to buy 100 at the earliest, with 0 realized so far; 98 remaining to buy at a floating loss of 2, totaling −2. An explicit accounting method is needed, but the overall economic result should be consistent.
Assuming ATR is 20 pips with a multiplier of 0.5 and a step size of 10 pips; when ATR rises to 40, it becomes 20 pips. A 100-pip range spans 10 intervals at a 10-pip step size and 5 intervals at a 20-pip step size. Old inventory cannot disappear from the account due to a reduction in new grid layers.
Being dynamic does not automatically lower tail risk; the strategy still needs limits on inventory losses and gaps.
This dependency-free script contains small labs for rank correlation, time folds, inventory valuation, covariance risk and rejection paths. The grid part only models buy-on-the-way-down inventory, with no sell-side recycling or real fills; the risk-parity part only demonstrates a given covariance and is not a general optimiser. Work from the report, and do not treat a small lab as a complete production strategy.
python strategy_labs.py1. Spacing adjusts to volatility
2. Limit the maximum number of levels
3. Estimate capital for the worst case
Risk warning: leveraged trading in forex, precious metals and similar products carries a high level of risk and you may lose all of your capital, or more. This course is for education only. It is not investment advice and does not promise any return. Example prices and contract specifications are teaching assumptions; always use what your own platform discloses. Past performance and backtests do not indicate future results.
All values, prices, accounts and cases in this course are teaching assumptions; the fixed materials can be reproduced offline. Marking a lesson complete only records your study. It is not a certification, a service approval or a promise of returns. Workbooks and answer files are currently provided in Chinese.
Dynamic grid simulation must maintain cash, inventory, realized, and unrealized results simultaneously. Counting only the number of triggers or small profits recovered can hide trend exposure.
Record your work and compare the reference result. Self-checks are not verified competence.
Completion records your own study, not verified competence. Exercises use fictional data; no real account or deposit is required.