TWM Wiki
TWM comes with a WFO (walk forward optimization) module. Inside the module user is able set In-Sample and Out-Of-Sample periods to test strategy robustness. To access Optimizer proceed to Admin Panel → New → Optimizer
To start testing, you need to create a test. To do so right-click in the left panel of the optimizer window
Next, you can choose to either:
- Open a previously saved test preset, or
- Create a new test from scratch, name your test and proceed to the next step
- In Sample (IS) Period: this is where your strategy optimization happens. The system tests different parameter combinations to find the best settings based on historical data.
- Out of Sample (OS) Period: this is where your optimized strategy is tested on "unseen" data. This period simulates real trading conditions and helps verify that your strategy wasn't just curve-fitted to historical data.
The next step is to create a testing period. Periods can be added:
- Manually by using Add Period in the same context menu or
- Using a special UI called Period Constructor.
This is made to allow users to see if the parameters found are optimal, robust, and that the strategy is not curve fitted.
If you need more explanation about In Sample or Out of Sample, we recommend this content:
Inside the period constructor it's easy to create an IS-OS period, and set the required lenght by either adjusting the day lenght or percentage in accordance with each other. For example, in the picture below we set a period of 365 days, where 30% or 110 days are dedicated to an out of sample period. If the last live period box is checked, the out of sample period will be ignored for the most recent period.
- Total Period Length: Set the overall timeframe (e.g., 365 days)
- IS Percentage: Choose what percentage should be In Sample (e.g., 70% = 255 days)
- OS Percentage: Choose what percentage should be Out of Sample (e.g., 30% = 110 days)
- Last Live Period: Check this box if you want the most recent period to skip OS testing
You can add as many periods as you like. The optimization will take pleace through each period separately. At the end of the process you will see:
Once your periods are set up, you'll see them listed on the left side. The right side is where you configure your strategy parameters.
Setup Steps:
For each parameter you want to optimize you'll see:
- Checkbox: Enable/disable optimization for this parameter
- Min: Starting value for optimization
- Max: Ending value for optimization
- Inc: Step size between values
For example let's take the following values:
Min= 5, Max= 100, Inc= 5 will test: 5, 10, 15, 20, 25... up to 100.
The system shows how many total combinations will be tested. Important information: if you see a very high number of combinations consider using the Generic Optimization engine for faster results.
To start optimization process, click the RUN botton. Depending on your settings this may take some time.
Understanding your results:
After the optimization has finished, by clicking on the periods root, you'll see combined Out of Sample results. The red vertical lines mark the end of each OS period.
Matrix Tab:
Here you can review specific parameters that were found for each particular period.
By clicking on the matrix tab for a specific period you will see what specific parameters were used for a specific iteration listed in the best strategies list.
Best strategies:
The optimizer ranks strategies based on your chosen fitness parameters, such as profit factor, net profit, sharpe, etc. You can check the list by looking at the keep best strategy parameter. By default there will be 10, and the optimizer will always choose the best one. The optimization fitness parameter, is an extendable module that can be coded by the user or users can use some of the available presets.
View top performers: Default shows top 10 strategies
Change selection: Click different strategies to see updated OS results
Access additional options: Right-click for more features:
If you change the chosen best strategy in the top list the OS will reexecute so you can check an updated, and combined Out of Sample result. You can toggle through the tabs to see different results. Main tabs are:
IS Tab: In Sample results only
OS Tab: Out of Sample results only
Total Tab: combined IS + OS results
Sim Tab: will show results for a period that happend after OS ended, if Sim is enabled then Total will show IS+OS+Sim results. (if Sim is disable the tab will not show it)
To enable Simulation: Admin Panel → Tools → Options → Calculations → Calculate Simulation
Some results may be excluded based on some global filtering set during the optimization. The two available global filters are:
- Min Trades IS: Minimum number of trades that have to occur in the In Sample period, in order for it to be considered
- Draw Down Level: Maximum allowable drawdown during In Sample period
If the execution is filtered, you will see the count for the filtered executions INFO tab at the top.
The two main types available are:
The settings for the genetic algorithm will come up below the parameters section. Please click on the arrow for them to unfold. Each parameter will light up with a small caption helping to understand its purpose.
When you find optimization results you want to keep:
Accessing Saved Results
Navigate to Admin Panel → New → Database to view all saved optimization results.
Features:
Perfect for comparing different optimization runs or sharing results
We use necessary cookies to make our site work. We also use optional cookies for functionality, analytics, advertising, campaign measurement, and service integrations.
You can choose to accept only necessary cookies or customize your preferences.
Clicking the “X” at the top right will apply the same choice as “Only necessary”.
Necessary cookies help make the website usable by enabling basic functions such as consent storage, security protection, language preferences, authentication, and preserving the active navigation context.
Necessary cookies
Technical identifier used to manage and persist cookie consent preferences.
Maximum storage duration: 12 Months | Type: Necessary cookiesStores your cookie consent choices and selected preferences.
Maximum storage duration: 12 Months | Type: Necessary cookiesPreserves the active navigation context, for example keeping the user in the standard website flow or the Start Trading flow when shared navigation elements are used.
Maximum storage duration: Up to 30 Days | Type: Necessary cookiesIndicates whether the user has provided cookie consent.
Maximum storage duration: 1 Year | Type: Necessary cookiesUsed to prevent CSRF attacks and protect form submissions and user data.
Maximum storage duration: Session | Type: Necessary cookiesUsed to manage authentication information and signed-in sessions.
Maximum storage duration: 1 Year | Type: Necessary cookiesStores the user’s language and localization preferences.
Maximum storage duration: 1 Year | Type: Necessary cookies
Functional cookies allow the website to remember preferences and support enhanced features or integrations such as Google services, maps, embedded media, or account-related personalization.
Functional Cookies
Used by Google to store session information and support service-related functionality.
Used by Google to remember settings and improve navigation across integrated services.
Maximum storage duration: 6 Months | Type: Functional CookiesRemembers which Google accounts have been used on the device.
Maximum storage duration: 1 Year | Type: Functional CookiesUsed by Google to store preferences and information when using integrated Google services such as Maps.
Maximum storage duration: 2 Years | Type: Functional CookiesUsed by Google to store preferences while viewing pages that incorporate Google services.
Maximum storage duration: 2 Years | Type: Functional CookiesUsed by Google to remember preferences such as preferred language and interface settings.
Maximum storage duration: 6 Months | Type: Functional CookiesUsed by Google services to support embedded content, maps, and account-related personalization.
Maximum storage duration: 2 Years | Type: Functional CookiesUsed by Google to support service preferences and related functionality on pages integrating Google services.
Maximum storage duration: 2 Years | Type: Functional Cookies
Statistical cookies help us understand how visitors interact with the site, measure performance, and improve services. Depending on configuration, data may be processed in aggregated or pseudonymized form.
Statistical Cookies
Microsoft Clarity identifier used to distinguish visitors and support analytics reporting.
Microsoft cookie used for analytics-related measurement and service improvement.
Maximum storage duration: 7 Days | Type: Statistical CookiesUsed by Microsoft Clarity to maintain the current analytics session.
Maximum storage duration: Session | Type: Statistical Cookies
Marketing cookies are used for advertising, campaign attribution, conversion tracking, personalization, and cross-platform measurement by providers such as Google, Microsoft, Meta, and TikTok.
Marketing Cookies
Used by Google to link activity across devices and improve ad attribution.
Used by Microsoft Advertising to validate and support ad-related requests.
Maximum storage duration: 10 Minutes | Type: Marketing CookiesMicrosoft advertising identifier used to recognize browsers across Microsoft domains.
Maximum storage duration: 13 Months | Type: Marketing CookiesGoogle advertising and personalization cookies used to build preference profiles and support ad delivery.
Maximum storage duration: 2 Years | Type: Marketing CookiesUsed by Google to identify visitors for advertising and attribution purposes.
Maximum storage duration: 2 Years | Type: Marketing CookiesUsed by Google to support ad personalization and service optimization.
Maximum storage duration: 1 Month | Type: Marketing CookiesGoogle cookies used to support more relevant ads and account-related ad security.
Maximum storage duration: 2 Years | Type: Marketing CookiesDoubleClick / Google Ads cookies used for campaign attribution, ad delivery, and remarketing.
Maximum storage duration: Varies by cookie | Type: Marketing CookiesMeta / Facebook cookies used for browser recognition, security, ad measurement, and personalization across Meta services and partner sites.
Maximum storage duration: Varies by cookie | Type: Marketing CookiesTikTok identifier used for session-level event attribution, conversion tracking, and advertising measurement.
Maximum storage duration: Varies by configuration | Type: Marketing CookiesTikTok pixel-specific session cookie used for conversion attribution and advertising performance reporting.
Maximum storage duration: Varies by configuration | Type: Marketing CookiesTikTok cookie used for campaign attribution, browser recognition, and advertising performance measurement.
Maximum storage duration: Varies by cookie | Type: Marketing CookiesTikTok cookie used for event attribution and campaign linkage across sessions.
Maximum storage duration: Varies by cookie | Type: Marketing CookiesTikTok browser identifier used for attribution, advertising measurement, and remarketing support.
Maximum storage duration: Varies by cookie | Type: Marketing CookiesGoogle cookies that may support ad personalization, localization, and service preference handling depending on the integration and browser state.
Maximum storage duration: Varies by cookie | Type: Marketing CookiesGoogle cookie used to support secure cookie handling across requests and service interactions.
Maximum storage duration: 6 Months | Type: Marketing CookiesThis website uses cookies and similar technologies to ensure its proper functioning and, with your consent, to support functionality, measure usage, improve performance, and provide advertising, attribution, or personalized content. The legal basis for the use of necessary cookies is the legitimate interest of the data controller (Art. 6(1)(f) GDPR), while functional, statistical, and marketing cookies are used only upon your explicit consent (Art. 6(1)(a) GDPR).
Cookies are small text files stored on your device to make the website work efficiently and improve your experience. Some cookies are placed directly by us, while others may be set by third-party services integrated into our pages.
Your cookie preferences are stored locally in a cookie named consent, valid for 12 months, and pseudonymously
on our systems using a technical identifier (UserUUID), which does not allow direct identification of the user.
A technical cookie named site_mode may also be used to preserve the current navigation context across pages.
You may change or withdraw your consent at any time via the cookie settings button visible at the bottom left of the site.
Some cookies are provided by third-party services such as Google, Microsoft, Meta, and TikTok. These third parties may act as independent controllers for the data collected through their own technologies and services.
You can withdraw or modify your consent at any time, delete cookies through your browser settings, and exercise your rights under Articles 15–22 GDPR (access, rectification, deletion, limitation, opposition, portability) by contacting us via the details provided in the Privacy Policy.
This Cookie Policy is aligned with Regulation (EU) 2016/679 (GDPR) and the ePrivacy Directive.