TAYU Academy course material · Grid & Range Strategies
Text walkthrough
Grid prototype module breakdown
A self-paced text walkthrough, without video or audio. See the article below for worked examples and materials.
Course Notes
1. Understand the core idea of “Grid prototype module breakdown” and explain it in your own words
2. Master this module's focus: Offline prototype validation
3. Complete the assignment on your own and check it against the reference answer
Offline prototype modules include market data, level generation, trigger deduplication, inventory, risk, and reporting. Risk rejection must be returned to the trigger module to prevent infinite repeat requests after rejection.
First, use synthetic data or historical data to offline simulate the changes in inventory and the equity curve of the grid, and then check if the shutdown conditions are triggered (such as fully closing out positions when a breakout occurs and stopping). This lesson only creates an offline prototype and does not connect to a real account.
Example: Run the grid on synthetic data for a single-sided downtrend, confirm that the stop-out is triggered when the price breaks below the lower boundary, record the maximum floating loss and the final loss.
Draw module input/output → use synthetic price to drive → define unique layer ID → connect inventory with event log → add reject/shutdown status.
Give each level request a unique key, and explain how to stop old levels being re-added as new ones after the parameter version changes.
Key strategies can include version, timeframe, level, and direction, but version changes must first migrate old inventory and clear the duplicate status; they cannot simply change versions to bypass the total risk limit.
Fictitiously, buy 1 unit at 100, 99, and 98, respectively, with the final price at 95. The inventory is 3 units, and the weighted cost is 99, resulting in unrealized losses of 12. If there had been a small profit of +2 previously, the overall position would still be at -10, and it is not sufficient to only show the +2 as closed.
Without an EA executor it can only be called an offline prototype; calling a grid curve that ignores costs ready to go live is misleading.
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. Simulate offline first
2. Test the shutdown conditions
3. No real trading in this lesson
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.
Key Takeaways
Completion records your own study, not verified competence. Exercises use fictional data; no real account or deposit is required.