Login Page - Create Account

Support Board


Date/Time: Tue, 26 Nov 2024 06:24:53 +0000



Post From: GetPersistentInt() help

[2024-01-02 22:22:02]
PS2004 - Posts: 47
Hi!

I encountered this problem too during my time developing Custom Studies.
I would recommend you to check out this part about drawing with Tools:
Using Drawing Tools From an Advanced Custom Study: s_UseTool::AddMethod
The thing you are probably looking for is the
s_UseTool::AddMethod
.
Set it to
UTAM_ADD_ALWAYS
and the line will be added with the PersistentInt you use as LineNumber.
If you delete that LineNumber later, every Tool with that PersistentInt will disappear.

Use as many PersistentInts as you need for each line type.
I am happy to clarify the method I suggest, reply if it is not clear.

Greetings,
PS