Support Board
Date/Time: Sat, 19 Apr 2025 10:35:00 +0000
Post From: Building custom tools in Sierra charts
[2025-03-24 14:40:01] |
JohnR - User831573 - Posts: 330 |
I don't think you can modify any of the tools. What I and others have asked for before is the ability to either be able to create our own tools, which we sort of can with buttons/menu extensions and capturing mouse interactions, or to be able to group/name a collection of drawings, so you can easily save/modify/move. If you code, here is something similar I ended up doing. First I looked for a tool that had most of the 'features' I wanted. I wanted to have a Dynamic Gann Fan/Levels (DGL), but to create it using 3 points on any angle/relationship of the 3 points I wanted. Sooo, I use the Pitchfork tool, which does use 3 points, with them being located any where and has multiple lines, colors, etc. So I create a pitchfork, or read all pitchforks on a chart and get how many lines and what percentages, colors, etc. Then instead of drawing the pitchfork lines, I hide most of them. I used the percentages of the fork, to create my dynamic Gann fan. If I want to move/modify a specific DGL, I just move the SC pitchfork, and then my code deletes the old DGL and draw a new set of DGL lines using the moved points of the pitchfork. 2 things about the way I implemented this 1 - I have a menu selection that tells it to draw/erase/redraw the DGLs 2 - If I want to change an percent / angle I do that in SC normal user interface, and then select my menu item to redraw. - I chose this way as I usually don't change once drawn. But you could have a timer running every 1-2 secs reading the SC Tool occurences and look for a change or new. Hope it helps or gives you a possible way to get what you are trying to do. JohnR Date Time Of Last Edit: 2025-03-24 15:42:31
|