DESCRIPTION OF SETTINGS
1. SETTINGS FOR OPTIMIZATION - This block contains functions for ease of testing and optimization. Keep in mind that the tester in the optimization mode sometimes gives false results - double-check in the regular test mode!
optimization=false; When "Optimization = true", the settings blocks .
When “Optimization = false”, settings blocks 3, 4, 5, 6 work.
Year = 0; Number of the year. Year = 0 - all year.
If you set in optimization mode: start 2010, step 1, end 2021. Get test results for each year in one table.
month = 0; Month number. Month = 0 - all months. January = 1 ... December = 12.
If you set in optimization mode: start 1, step 1, end 12. Get test results for each month in one table.
WeekOfYear = 0; Week number of the year. WeekOfYear = 0 - all weeks. In the year 1-53 (54) weeks, the beginning of a new week is Monday (or January 1).
If you set in optimization mode: start 1, step 1, end 54. Get the test results for each week of the year in one table.
DayOfWeek = 7; Number of the day of the week. DayOfWeek = 7 - all days of the week. Monday = 1 ... Saturday = 6, Sunday = 0.
If you set in optimization mode: start 0, step 1, end 6. Get the test results for each day of the week in one table.
Strategy = 0; Strategy number.
If you set in optimization mode: start 1, step 1, end 4. Get test results for each strategy in one table.
2. GENERAL SETTINGS - This block contains general settings for all strategies.
TimeBroker, (UTC+ ) = 3; The time zone of your broker's server in UTC.
Sleep, milliseconds = 100; Order modification delay function. On ECN accounts, an order is first opened, after the order is opened, it is modified (stop loss and take profit are set). With some brokers, the server will reject a modification request if it arrives very quickly after the order is placed. If your broker's server does not allow you to set stop loss and take profit, increase “Sleep, milliseconds = 1000”.
SpreadMax = 30.0; The maximum spread at which an order is placed.
slippage=30; Allowable slippage when opening a market order. This function must be in every Expert Advisor. In this Expert Advisor, trading is carried out using pending orders, so this function is not used.
Delete objects from the chart = false; Enable/disable removal of objects from the chart.
DeviationCoefSL = 2.0; Allowed slippage when converting a pending order to a market order. Measured in stop loss levels. This function closes an order if, when converting a pending order into a market order, the opening price of the order has moved more than the stop loss level*2.
3. TRADING STRATEGIES - Enable/disable strategies in this block.
In Prado version 4, strategies 1, 2 worked.
In Prado version 5, strategies 1, 2, 4 worked.
In Prado version 6, strategy 4 worked.
The strategies do not depend on each other in any way. The strategies are the same, only the settings differ.
Any strategy can be disabled. Optimize each strategy separately.
Strategy 1 = true; Enable/disable strategy 1.
Strategy 2 = true; Enable/disable strategy 2.
Strategy 3 = true; Enable/disable strategy 3.
strategy 4 = true; Enable/disable strategy 4.
4. TRADING MONTH - Enable/disable trading by months in this block.
January(…December) = true; Enable/disable trading by months.
5. TRADING WEEK OF THE YEAR - In this block, enable/disable trading by weeks of the year.
Week_1 (Week_1 … Week_54) = true; Enable/disable trading by weeks of the year.
6. TRADING DAYS OF THE WEEK - In this block, enable/disable trading by day of the week.
Monday(…Friday) = true; Enable/disable trading by days of the week.
Saturday(Sunday)= false; The function may be needed to work with cryptocurrencies.
|