It is not possible to create a custom chart study or indicator via your trading platform.
If there is a third party software with this capability that you wish to use, it may be possible to link that software with your trading platform. For more information, please see: How do I enable the TWS API for use with a third party platform?