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 ct, Today, 01:53 AM
    0 responses
    4 views
    0 likes
    Last Post ct
    by ct
     
    Started by SmartArtsStudio, Yesterday, 11:24 PM
    0 responses
    3 views
    0 likes
    Last Post SmartArtsStudio  
    Started by kenz987, Yesterday, 10:06 PM
    0 responses
    4 views
    0 likes
    Last Post kenz987
    by kenz987
     
    Started by AaronKoRn, Yesterday, 07:24 PM
    0 responses
    8 views
    0 likes
    Last Post AaronKoRn  
    Started by Aquatrade, 05-15-2021, 11:46 AM
    1 response
    17 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X