• 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

Export subclass of chartstyle OhlcStyle

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

    Export subclass of chartstyle OhlcStyle

    I created, in NinjaScript Editor, a new ChartStyle. This new ChartStyle I defined as a subclass of provided OhlcStyle and gave it some extra capabilities.

    It compiles and works fine.

    When I try to export it, using Tools->Export->NinjaScript Addon it fails with CS0246 "The type or namespace 'OhlcStyle' could not be found".
    I export as "source", not as a compiled assembly (which also fails).

    What is required to be able to export a custom ChartStyle?

    Thanks in advance for your help.

    #2
    Hello latam61,

    Thank you for your post.

    I don't believe this issue stems from the fact that it's a ChartStyle, I believe this has to do with a problem with creating said ChartStyle as a subclass of an existing ChartStyle. Using inheritence is not totally supported so you can run into issues like this from time to time when using subclasses.

    I would advise that instead of a subclass, you can open the OhlcStyle Chart Style in the NinjaScript Editior, right click on it and save a copy under its own name, then add your logic from your subclass to the existing code from the OhlcStyle ChartStyle. You should then be able to export the script properly.

    Please let us know if we may be of further assistance to you.
    Kate W.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by GTBrooks, Today, 02:44 PM
    0 responses
    4 views
    0 likes
    Last Post GTBrooks  
    Started by GLFX005, Today, 12:22 PM
    3 responses
    39 views
    0 likes
    Last Post GLFX005
    by GLFX005
     
    Started by AspenHiker, Today, 08:37 AM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_Kate  
    Started by MartinT, Yesterday, 01:12 PM
    3 responses
    16 views
    0 likes
    Last Post MartinT
    by MartinT
     
    Started by caveat_lector, Today, 11:58 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_Heath  
    Working...
    X