QChartist Forum
How to create a custom indicator - Printable Version

+- QChartist Forum (https://www.qchartist.net/forum)
+-- Forum: QChartist (https://www.qchartist.net/forum/forumdisplay.php?fid=1)
+--- Forum: Tutorials and tips (https://www.qchartist.net/forum/forumdisplay.php?fid=5)
+--- Thread: How to create a custom indicator (/showthread.php?tid=1246)



How to create a custom indicator - qchartist - 06-01-2025

Here is a simple diagram to explain how works the file structure and flow:

Code:
+------------------+        +---------------------+        +-------------------+
|  indicatorname.qtp| -----> |   indicatorname.qtr  | -----> |  indicatorname.cpp |
|  (Settings GUI)   |        | (Runtime & Drawing)  |        | (Calc & Buffers)   |
+------------------+        +---------------------+        +-------------------+
                                    |                             |
                                    |                             |
                                    v                             v
                           +------------------+        +---------------------+
                           |  getbufferdata.cpp| <---- |  indicatornamebuffer  |
                           | (Buffer Access)   |       |   (Static arrays)     |
                           +------------------+        +---------------------+

Additionally:
+------------------+
| indicatorname.ini |
| (Meta Settings)   |
+------------------+

+------------------+
|   cppincludes.cpp |
| (Include cpp file)|
+------------------+