Indicators: Trading Sessions Open - Close

 

Trading Sessions Open - Close:

This is a trading sessions indicator.

Author: Mladen Rakic

 
 

Dear Mladen Rakic,

Could you make the Indicator being placed in Sub-Window, just in case to use other indicators in the Main Chart, like the picture below :

MarketSession

Thank You very Much and God Bless You ... :)

 

@Mladen Rakic out of range error line 206,30

unsure how to fix it.

2023.07.31 07:00:04.001 trading_sessions_open_close (EURGBP,M12) array out of range in 'trading_sessions_open_close.mq5' (206,30)

   shift=int((AmericaStart-Start)/PeriodSeconds(_Period));
   shift_end=int((AmericaEnd-Start)/PeriodSeconds(_Period)+1);

   for(int i=shift; i<shift_end; i++)
   {
(line 206) ...     AmericaHigh[_startIndex+i]=HighSession;
      AmericaLow[_startIndex+i]=LowSession;
   }


 
Hi for me not work i try to change time but asian remaning always the same how is possible?
Reason: