Locking chart objects via Javascript API

Having a function to lock chart objects that have been created from a custom indicator would be nice to have. It would help minimize accidentally selecting the chart objects as users drag through the chart view. I think creating a new ObjProp would fit best:

// lock the chart object
this.api.SetObjectProperty(name, ObjProp.OBJPROP_LOCK, true)
// unlock the chart object
this.api.SetObjectProperty(name, ObjProp.OBJPROP_LOCK, false)

How does this impact your experience?
-
Upvoters
Status

In Review

Board

πŸ’‘ Feature Request

Date

4 months ago

Author

User

Subscribe to post

Get notified by email when there are changes.