QChartist Forum

Full Version: How to create a custom indicator
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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)|
+------------------+