• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Any way to access "this" from Drawing Tool?

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

    Any way to access "this" from Drawing Tool?

    Standard Drawing Tools (text, line, etc...after checking their code) seems to have access to ChartControl and ChartScale.

    Is there any way to draw another tool (i.e. Draw.Text) from another drawing tool?
    I ask because till date i know that Indicator can use "this" parameter while drawing:

    Draw.Dot(this, ....

    but how to draw from another non-indicator script, like from another drawing tool?

    #2
    Hello TazoTodua,

    Thanks for your post.

    The NinjaScriptBase type is specific to Indicators and Strategies only and cannot be used in a DrawingTool. Also due to indexing used in OnRender, it would be best to implement your own text rendering using RenderTarget.DrawTextLayout.

    We look forward to being of further assistance.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by swcooke, Today, 09:09 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Started by Uregon, Today, 09:08 AM
    1 response
    6 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by Induna, Today, 08:44 AM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by TangoTX, Today, 08:36 AM
    1 response
    2 views
    0 likes
    Last Post NinjaTrader_Tyler  
    Started by abdullah, 11-15-2017, 08:44 PM
    11 responses
    822 views
    0 likes
    Last Post NinjaTrader_Kate  
    Working...
    X