Not too long ago we released a new version of Strategy Samurai. The latest version is v1.02 and in this post we are going to go over some of the changes!
= v1.02, 23 October, 2020 =
Tweak: Default magic list text file renamed to "ApprovedMagicList.txt"
Tweak: Default symbol list text file renamed to "ApprovedSymbolList.txt"
Tweak: License validation code tweaked for faster validation when changing settings
Tweak: "Total win pips", "Total loss pips", "Net pips" and "Pip profit factor" columns formatted to two decimal places
Tweak: Incorrect input parameters are now displayed as Alerts instead of printed to the Experts log
Tweak: Specific incorrect input parameters are now only checked on startup if using that filter (Trades or Date)
Tweak: LONG_TERM_FILTER cannot be turned off. Default for Trades and Date filter is now since inception (entire trade history)
Tweak: When "Look at last X trades" is set to 0 for the LONG_TERM_FILTER it now means since inception (entire trade history) instead of turning the filter off
Tweak: Input variable descriptions modified to explain the function of each input more clearly
Tweak: Renamed "Avg win" column in CSV files to "Avg Profit"
Tweak: "% change" column in CSV files turned off by default (not currently in use)
New: LONG_TERM_FILTER now has a "Look at last X days" input to calculate based on rolling days
New: "Opening balance" and "Closing balance" columns in CSV files now display virtual calculated opening and closing balances for individual magics or symbols
New: CSV files now indicate which magics or symbols were approved but not in the final list due to not being in the top X sorted count
New: CSV files now indicate which magics or symbols were excluded due to being in the exclude list
New: Legend added to CSV files for * and + meanings
New: Recalculation of statistics is now performed when the user changes the chart or modifies inputs
New: Current directory is now displayed on the chart to make identifying multiple Strategy Samurai instances easier
Fix: AverageDrawdown and AverageDrawdownPercent metrics missing from LONG, MEDIUM and SHORT term filters
Fix: Critical error fixed in sorting function to handle sorting by Symbols
Fix: Approved List magic count in Experts log now displays correct magic count
Fix: Error fixed in support function when Strategy Samurai is applied to a chart but the symbol from the trade history is not in the Market Watch window
Fix: "APPROVED PORTFOLIO" in CSV files now correctly displays the statistics for the "Sort approved list using the top X" input instead of the entire sorted list (with no top by X)
Let’s go over some of the important changes!
Tweak: LONG_TERM_FILTER cannot be turned off. Default for Trades and Date filter is now since inception (entire trade history)
Tweak: When "Look at last X trades" is set to 0 for the LONG_TERM_FILTER it now means since inception (entire trade history) instead of turning the filter off
New: LONG_TERM_FILTER now has a "Look at last X days" input to calculate based on rolling days

The LONG_TERM_FILTER is now always on and cannot be switched off. If you only want to use one filter, this is the one you should use. The previous implementation of the LONG_TERM_FILTER was inconsistent with the other two filters and this how now been corrected. The LONG_TERM_FILTER can now filter based on “rolling days” like the MEDIUM and SHORT term filters and you can also set a start date filter to only look at trades taken since a specific date.
New: CSV files now indicate which magics or symbols were approved but not in the final list due to not being in the top X sorted count
New: CSV files now indicate which magics or symbols were excluded due to being in the exclude list
New: Legend added to CSV files for * and + meanings

A legend has been added to the top of the first column in the CSV file output to make it easier to remember what each symbol means.
Additionally Strategy Samurai now tells you which strategies met the acceptance criteria for all your filters but was excluded from the approved list because of not being in the top X sorted count. For example, in the above screenshot we can see that there were 24 strategies that met our filters, but 4 didn’t make our list. This was because we chose only to look at the top 20 was set in the “Sort approved list using the top X” input.
The CSV file also now indicates which strategies were excluded due to being in the ExcludeMagicNumbers or ExcludeSymbols lists.
New: Current directory is now displayed on the chart to make identifying multiple Strategy Samurai instances easier


The Strategy Samurai folder path and the sub directory (if you are using one), is now displayed on the chart. This makes it easier to identify multiple Strategy Samurai instances within the same MetaTrader account.
That’s it for the major changes for this version! There were also various bug fixes that other changes that are fairly self explanatory.
Are you using Strategy Samurai? What features would you like to see? Let us know in the comments below!