Help! How to draw custom candles in the main window ?

 

l make anCustom indicators, and want to depose it in the main Separate window with the form of candles ,so l could analysis this indicator like currency pairs , do anyone know how to achieve it ?

for example, l want to transform RSL into k candles and make it show in the main Separate window.


Seek helps, it is best that given corresponding code, or the corresponding script, or provite some useful ideas, thank you very much !

 
Candlestick drawing is not supported in mq4, but there are workarounds by offline charting, or simply histogram buffers. Examples:
Renko charting in a fully separate (offline) chart window: https://www.mql5.com/en/code/9358
The same in a separate indicator window: https://www.mql5.com/en/code/9839
Colored candlesticks in the main chart window: https://www.mql5.com/en/code/10623
 
erzo:
Candlestick drawing is not supported in mq4, but there are workarounds by offline charting, or simply histogram buffers. Examples:
Renko charting in a fully separate (offline) chart window: https://www.mql5.com/en/code/9358
The same in a separate indicator window: https://www.mql5.com/en/code/9839
Colored candlesticks in the main chart window: https://www.mql5.com/en/code/10623

thank you.it 's very useful for me.I have considered generate offline chart,but l don't konw how to write the data into the file function,it's difficult for me.



Reason: