Custom Indicator Bugs

Hi,

I've found 5 bugs (so far) on custom indicator.

  1. Changing the color opacity of a line (TOptValue_LineStyle) will not take effect

  2. ObjProp.OBJPROP_LOCKED is on the documentation but when setting it this.api.SetObjectProperty(name, ObjProp.OBJPROP_LOCKED, true)

Syntax error is displaying Property 'OBJPROP_LOCKED' does not exist on type 'typeof ObjProp'.

  1. I cannot change style of a line when setting isStatic in CreateChartObject. It's always solid blue line. I don't know if it's intended (not mentioned in the documentation). Also, I can't remove it even if I do RemoveAllObjects

  2. Can't change the color opacity of TObjectType.TEXT When I set the color to #ffffff00 (0% opacity) it will still display #ffffff (100% opacity)

  3. iBarShift doesn't return -1 when date is not exact even if isExact is set on newly added timeframe like 12H.

    Ex. 2023-02-13T08:17:00.000Z. The time is 8:17 so it should return -1 on 12H (720)

Here is the indicator

test-indicator.js.txt

20.1 KBβ€’ Text

How does this impact your experience?
High Priority

Share update with 0 linked conversations as well

Upvoters
Status

In Review

Board

🐞 Bug Reports

Date

About 2 months ago

Author

Carl D

Subscribe to post

Get notified by email when there are changes.