Login Page - Create Account

Support Board


Date/Time: Mon, 24 Feb 2025 09:19:19 +0000



Post From: Userdrawn drawings from ACSIL issue

[2021-03-05 09:12:49]
@sstfrederik - Posts: 406
Hi,

I made some studies a while back and apparently something changed related to userdrawn drawings using UseTool.

When I use

Tool.AddAsUserDrawnDrawing = 1;

I always make sure to remove the drawing when sc.LastCallToFunction is called.

Apparently these userdrawn drawings are now saved when a chartbook is closed which results in these old drawings being reloaded when a chartbook is opened. The study will draw a new drawing on top. This results in multiple drawings on achart which is not what was the case previously.

I have tested older SC versions. SC version 2208 was fine and the userdrawndrawings form acsil study was not saved to a chart when closing the chartbook. After 2208 we start to see the described issue.

You can test this with "UseTool Example: User Drawn Text" study from the studies.cpp file.

- Save this study to a chart.
- Close down the chartbook and save all.
- open the chartbook an check the "manage chart drawings window"

there is an additional drawing now. Do this again and a new drawing will be added and so on.

Hope this can be looked into and resolved.

Thanks.

Frederik