Technical Indicator for max spread Bid/Ask difference on a given candle

 
Can anybody code for me a Technical Indicator in a separate window that can tell me the maximum spread Bid/Ask difference that was available for a given candle while trading. It should support all Timeframes.
 
sandyk82:
Can anybody code for me a Technical Indicator in a separate window that can tell me the maximum spread Bid/Ask difference that was available for a given candle while trading. It should support all Timeframes.
I searched for you: https://www.mql5.com/en/code/9324
Reason: