Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Add ability to specify opacity during creation of drawn objects from script

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Add ability to specify opacity during creation of drawn objects from script

    Currently you can not set the opacity for drawn objects when you create it from a script. But once it is created you can click on the properties of the object and change the opacity.

    #2
    Hi cutzpr, thanks for your post.

    You can create a custom Brush object when creating a draw object e.g.

    Code:
    Draw.Triangle(this, "TRI", Time[5], Low[5], Time[3], High[3] + TickSize*10, Time[0], Low[0], new SolidColorBrush(Color.FromArgb(155, 0, 0, 255)));
    You could also do custom rendering in the OnRender method. In OnRender you use SharpDX for high performance and very customizable renders. We have a guide on using SharpDX here:



    There is also an example indicator in the platform called "SampleCustomRender" for a functional reference.

    Please let me know if I can assist any further.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    33 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 05-10-2026, 08:12 PM
    0 responses
    22 views
    0 likes
    Last Post CarlTrading  
    Started by Hwop38, 05-04-2026, 07:02 PM
    0 responses
    184 views
    0 likes
    Last Post Hwop38
    by Hwop38
     
    Started by CaptainJack, 04-24-2026, 11:07 PM
    0 responses
    343 views
    0 likes
    Last Post CaptainJack  
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    264 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X