Hello everybody,

I found most session boxes indiors buggy and confusing, so I decided to compose my own. The indior draws boxes around market quests. Please read the readme, indior Inputs tab or comments in the sourcecode prior to asking questions.

Screenshots below show a weekly H1 chart together with sessions permitted (default options and range above the boxes), along with all default configurations



--::README::--
- all settings can be altered in Inputs tab when incorporating the indior or in the sourcecode (assess sourcecode comments)
- to disable a particular session change its color to none from Inputs tab or to CLR_NONE in the sourcecode (permanently changes defaults)- set ShowRange to true to show session ranges in pips (Show object descriptions must be enabled for this to work, assess Charts Properties Show object descriptions). Set to false to hide range- set MaxDays to the number of times in which boxes must be drawn. Set to 0 to show boxes for all days visible on the whole chart- set Mode to desirable drawing mode of this box. If changing in the sourcecode, the values must be of ENUM_LINE_STYLE kind! - set Background to true if you would like the boxes stuffed. Set to false if you would like only the outline of this box
- set MOD of each session at the format of [session available mod],[session close mod] to transfer the open/close by the desired number of hours, i.e. shorten/lengthen session boxes. Each session is 9 hours ! Positive numbers move open/close to the right over the chart, negative numbers to the left, e.g. LondonMod set to 4,0 moves only the open of the London session by 4 hours (4 hours to the right), i.e. shows only the past five hours of the London session. TokyoMod set to 0,-4 moves only the close of the Tokyo session by -4 hours (4 hours to the left), i.e. shows only the first 5 hours of the Tokyo session.
--:: README::--
Please read the readme previously before asking questions...

I tested it with local time GMT 1 (plus daylight saving, so GMT 2) and mended broker time GMT-4 (doesn't change with DST), either during the week and on the weekends and it worked nice (my sole concern is to get Tokyo and Sydney users because Tokyo doesn't adapt to DST and Sydney is at southern hemisphere, but it must account for both automatically)

Please copy, alter, distribute as you desire, I'd enjoy some credit in the comments, however. And do not forget to send 10% via paypal if you manage to sell it

I hope it helps. Please note features it may want and bugs you found. Oh, and do not forget to read the readme

https://www.cliqforex.com/general-fo...nectivity.html
https://www.cliqforex.com/trading-sy...ett-style.html
https://www.cliqforex.com/trading-sy...g-gu-wave.html



Inserted Code Bugs addressed from additional session indiors and features: - automatically computes open and close times based on GMT and broker period offset; - shows the appropriate number of bars at a session (instead of 1 too many); - boxes comprise high/low of the first candle at the session if this candle sets session high/low; - doesn't draw buggy weekend pubs; - doesn't draw boxes for daily timeframe and more; - potential to draw boxes for all the days visible to the chart (e.g. for backtesting); - redraws only the previous box on new ticks instead of every box drawn on the chart; - enable/disable, set drawing and colour mode for each session; - show/hide session range in pips above every box; - employ open/close MOD to shorten/lengthen boxes (i.e. show only the first/last X hours of this session). Known problems: - it is not possible to set the color of session ranges. MT4 uses default foreground color to draw object descriptions and the only workaround would be to create a separate text for every single session doubling the number of objects on the chart - not worth it resource-wise in my view; - when launching the MT4 platform, boxes may be misalligned. Altering the profile or period after launching the platform will redraw all the boxes (call init() function). Changelog: - v1.7 - little adjustment in the hours for Broker GMT Offset's algorithm once the market is closed - v1.6 - enhanced deinit() algorithm, de-cluttered the code, added MaxTF input to limit session boxes drawing; - v1.5 - fixed a minor bug in broker GMT offset algorithm (in some situations it was 1 hour depending on the moment of an hour); - v1.4 - adjusted drawing of first/last session of this week (determined by broker period ); - v1.3 - added disabling boxes with default option'None' color, not only'CLR_NONE' out of sourcecode; - v1.2 - rewrote time conversion to GMT-based instead of local-based, adjusted weekend difficulty if GMT time would last but broker time ceased, cleared up the code and added comments if somebody is interested in the code itself; - v1.1 - added open/close MODs; - v1.0 - first release.