Introduction
Optimus Time Tracker Indicator
Welcome to the person guide for Optimus Time Tracker V1.00, a customized indicator for MetaTrader 5 (MT5) developed in MQL5. This indicator analyzes historic value information to offer statistical insights into market habits throughout totally different timeframes and buying and selling classes. It presents three evaluation modes: Weekly Excessive & Low Stats, Bullish vs. Bearish Shut, and Excessive and Low by Session. The indicator includes a user-friendly management panel for customizing settings and a toggle button to point out or conceal the show.
Objective
The Optimus Time Tracker V1.00 helps merchants establish patterns in value actions by displaying:
- The frequency of weekly highs and lows occurring on particular days.
- The share of bullish (shut > open) versus bearish (shut < open) day by day closes.
- The distribution of day by day highs and lows throughout 4 buying and selling classes (Asian, European, Overlap, US)
Viewers
This guide is meant for:
- Newbie merchants new to MetaTrader 5 who need to use technical indicators.
- Intermediate merchants accustomed to MT5 and MQL5, seeking to customise and interpret the indicator’s output.
- Superior customers who want detailed configuration choices for particular buying and selling methods.
Parameters
Options and Configuration
Enter When including the indicator to a chart, you may configure the next settings within the enter dialog:
Background Transparency (BackGD_Mode):
- Choices: BackGround_On (default: Off), BackGround_Off.
- Permits or disables a light-weight grey background for the statistics tables and management panel.
Lookback Weeks (InpLookbackWeeks):
- · Default: 52 weeks.
- · Specifies the variety of weeks of historic information to research (have to be optimistic).
- · Instance: Set to 26 for a 6-month evaluation.
Server Time Offset (InpServerTimeOffset):
- Default: 0 hours.
- Adjusts the server time to align together with your native timezone (in hours, e.g., -3 for a 3-hour offset).
Font Measurement (InpFontSize):
- Default: 10.
- Units the font dimension for the GUI (vary: 6–20).
Session Occasions:
- Outline begin and finish occasions for 4 buying and selling classes in HH:MM format (24-hour clock).
- Defaults:
- Asian Session: 00:00 to 08:00.
- European Session: 08:00 to 12:00.
- Overlap Session: 12:00 to 16:00.
- US Session: 16:00 to 00:00.
- Guarantee occasions are non-overlapping and legitimate (e.g., 08:30 is legitimate, 25:00 isn’t)
Evaluation Modes
The indicator presents three modes, accessible by way of navigation buttons within the management panel:
1. Weekly Excessive & Low Stats (MODE_HIGH_LOW):
- Shows the proportion of weeks the place every day (Sunday–Saturday) had the very best or lowest value.
- Instance: “Monday Excessive %: 20.5%” means Monday was the weekly excessive in 20.5% of analyzed weeks.
- Helpful for figuring out days with vital value actions.
2. Bullish vs. Bearish Shut (MODE_BULL_BEAR):
- Exhibits the proportion of days with a bullish (shut > open) or bearish (shut < open) shut for every day of the week.
- Instance: “Tuesday Bullish %: 55.0%” means 55% of Tuesdays closed increased than they opened.
- Helps assess directional bias by day.
3. Excessive and Low by Session (MODE_SESSION):
- Analyzes the proportion of day by day highs and lows occurring in every session (Asian, European, Overlap, US) for every day.
- Shows 4 separate tables, one per session.
- Instance: “Asian Wednesday Excessive %: 30.0%” means 30% of Wednesdays had their day by day excessive in the course of the Asian session. · Ideally suited for session-based buying and selling methods.
Management Panel
The management panel, situated on the correct facet of the chart, permits real-time configuration:
Navigation Buttons:
- Excessive/Low Stats, Bull/Bear Shut, Session H/L:Change between evaluation modes.
- The lively mode’s button is highlighted in mild blue.
Widespread Settings:
- Weeks: Modify the lookback interval (e.g., enter 26 for 26 weeks).
- Offset: Set the server time offset (e.g., -3 for a 3-hour offset).
- Font: Change the font dimension (6–20).
- Click on Apply Settings to replace these parameters.
Customized Vary:
- Begin Date, Finish Date: Enter dates in YYYY.MM.DD format (e.g., 2024.01.01).
- Permits evaluation of a particular date vary as a substitute of the default lookback weeks.
- Click on Apply Vary to course of the customized vary.
- Observe: Finish date have to be after begin date and never sooner or later.
Session Occasions:
- Fields for Asian, European, Overlap, and US session begin/finish occasions (e.g., 08:00).
- Click on Apply Periods to replace session definitions.
- Guarantee occasions are legitimate and non-overlapping.
Error Label:
- Shows error messages (e.g., “Invalid session time format”) on the backside of the panel in pink.
Visibility Toggle Button
- Positioned within the top-right nook of the chart.
- Labeled Conceal (when seen) or Present (when hidden).
- Click on to toggle the visibility of the management panel and statistics tables.
- Helpful for decluttering the chart whereas maintaining the indicator lively.
Knowledge Persistence
- Settings (lookback weeks, offset, font dimension, session occasions, customized vary) are saved to a file named Optimus_Time_Tracker_User_settings.txt within the MT5 widespread information folder (MQL5Files within the widespread listing).
- On initialization, the indicator masses saved settings, overriding default inputs if the file exists.
- Modifications made by way of the management panel are robotically saved when making use of settings, ranges, or classes.
Utilization Directions
Beginning the Indicator
1. Add the indicator to a chart.
2. The management panel and a statistics desk (default: Excessive/Low Stats) will seem on the chart.
3. Confirm that information is displayed. If not, guarantee enough historic information is obtainable.
Switching Evaluation Modes
1. Within the management panel, click on one of many navigation buttons:
- · Excessive/Low Stats for weekly excessive/low percentages.
- · Bull/Bear Shut for bullish/bearish shut percentages.
- · Session H/L for session-based excessive/low distributions.
2. The statistics desk updates to replicate the chosen mode.
3. The lively button turns mild blue, and the chart redraws.
Adjusting Settings
1. Change Lookback Weeks, Offset, or Font Measurement:
- Enter values within the respective fields (e.g., 26 for Weeks, 10 for Font).
- Click on Apply Settings.
- The desk updates, and settings are saved to the settings file.
2. Set Customized Date Vary: · Enter begin and finish dates (e.g., 2024.01.01, 2024.12.31).
- Click on Apply Vary.
- The indicator processes information throughout the specified vary.
3. Modify Session Occasions:
- Replace session begin/finish occasions (e.g., 09:00 for AsianStart).
- Click on Apply Periods.
- The session-based evaluation (MODE_SESSION) updates accordingly
Toggling Visibility
- Click on the Conceal button to cover the management panel and tables.
- Click on the Present button to revive them.
- The indicator continues working within the background when hidden.
Decoding Output
- Excessive/Low Stats Desk:
- Columns: Day, Excessive %, Low %.
- Rows: Sunday to Saturday.
- Instance: “Monday Excessive %: 25.0%” means Monday was the weekly excessive in 25% of legitimate weeks.
- Bull/Bear Shut Desk: · Columns: Day, Bullish %, Bearish %.
- Rows: Sunday to Saturday.
- Instance: “Friday Bullish %: 60.0%” means 60% of Fridays closed increased.
- Session H/L Tables: · 4 tables (Asian, European, Overlap, US), every with: · Columns: Session Identify, Excessive %, Low %.
- Rows: Sunday to Saturday.
- Instance: “European Tuesday Low %: 40.0%” means 40% of Tuesdays had their low within the European session.
Finest Practices
Guarantee Ample Knowledge:
- Obtain historic information by way of MT5’s Historical past Middle (Instruments > Historical past Middle).
- Choose the image and timeframes (D1 and H1), then obtain no less than 52 weeks of information.
Validate Session Occasions:
- Guarantee session occasions align together with your dealer’s server time and buying and selling technique.
- Keep away from overlapping classes to stop errors.
Use Customized Ranges Sparingly:
- Customized ranges require enough information throughout the specified interval.
- Revert to default lookback weeks if information is lacking.
Monitor Errors:
- Verify the error label for points like “No legitimate weeks processed” or “Invalid session time format.”
- Check with the MT5 Specialists log (Ctrl+T, Specialists tab) for detailed error messages.
Check on Demo Account:
- Apply the indicator to a demo account to familiarize your self with its options earlier than utilizing it in reside buying and selling.
Troubleshooting
No Knowledge Displayed
Trigger: Inadequate historic information.
Resolution:
- Open Historical past Middle (Instruments > Historical past Middle).
- Choose the image and Each day (D1) and 1 Hour (H1) timeframes.
- Obtain information for no less than the lookback interval (default: 52 weeks).
- Reapply the indicator.
- examine the lookback enter discipline, then enter the look interval whether it is set to 1 on the initialization of the indicator.
Error: “No legitimate weeks processed”
Trigger: Lacking or incomplete historic information for the chosen vary.
Resolution:
- Cut back the lookback weeks (e.g., from 52 to 26).
- For customized ranges, guarantee the beginning and finish dates have accessible information.
- Verify the Specialists log for particular information hole dates.
Error: “Invalid session time format”
Trigger: Session occasions will not be in HH:MM format or are invalid (e.g., 25:00).
Resolution:
- Appropriate the time format (e.g., 08:00).
- Click on Apply Periods.
Error: “Session occasions overlap”
Trigger: Session time ranges overlap (e.g., Asian ends after European begins).
Resolution:
- Modify session occasions to be non-overlapping (e.g., Asian 00:00–08:00, European 08:00–12:00).
- Click on Apply Periods.
Indicator Not Seen
Trigger: Indicator is hidden by way of the toggle button.
Resolution:
- Click on the Present button within the top-right nook.
- If the button is lacking, take away and reapply the indicator.
Settings Not Saved
Trigger: File write error in Optimus_Time_Tracker_User_settings.txt.
Resolution:
- Verify the Specialists log for file entry errors (e.g., permission points).
- Guarantee MT5 has write entry to the widespread information folder (MQL5Files within the MT5 information listing).
- Manually delete the settings file and reapply settings to recreate it.
Limitations
Knowledge Dependency:
- Requires enough D1 (day by day) and H1 (hourly) information for correct outcomes.
- Gaps in information could scale back the variety of legitimate weeks processed.
Dealer Timezone:
- Session occasions are relative to the dealer’s server time, adjusted by the Server Time Offset.
- Incorrect offsets could misalign session evaluation.
Efficiency:
- Processing massive lookback durations (e.g., > 100 weeks) or customized ranges with in depth information could decelerate the indicator relying on the Energy of your Machine.
Weekend Knowledge:
- Sunday and Saturday information could also be restricted, as many markets are closed or have low quantity.
Assist
For points not coated on this guide:
- Verify the MT5 Specialists log for detailed error messages.
- Contact the indicator developer at devinnocentnnaji@gmail.com
- Go to the MQL5 group boards https://www.mql5.com/en/discussion board for common MT5 assist.