Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

DrawingTools Templates

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

    DrawingTools Templates

    Hello,

    Sometime working with drawing objects within ninjascript we have to use an object template as a draw function parameter.
    So far if the template does not exist, there will be some default object style.

    Is there any way to create a template not manually but from ninjascript in case the template does not exist ?
    Technically I coul do it through creating raw XML file myself and put it into a correct folder. But I thought there should be some ninjascript fucntionality to work with templates ?
    I couldn't find anything like this in the documentation.

    please advise

    thanks

    Andrei

    #2
    Hello Andrei,

    Thank you for your post.

    Programmatically accessing and modifying the XML template files is not documented in the help guide and therefore it is not supported. You could attempt to do so at your own risk and results may vary. Currently, the only supported way to create a drawing object template is to manually configure it and then reference the manually created template in the parameters when drawing the object programmatically. For more details on working with drawing object templates:


    Please let us know if we may be of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    42 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    29 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    46 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    38 views
    0 likes
    Last Post CarlTrading  
    Working...
    X