Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Plotstyle, new member “InstrumentBar” ?

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

    Plotstyle, new member “InstrumentBar” ?

    Hello anyone!

    I’m looking for a modified Plotstyle.Bar! I want to set a min-value on a bar as well, making the bar similar to a candlestick.
    I have a simple solution that works (but I’m not happy with the solution). See attachment. It is two bars, where one bar covers the other. The covering one has the same color as the background.
    If anyone can guide me for a solution, or show some code, of how to do this in a better way I will be thankful.

    - ideas?
    - code?
    - something else?

    To NT-team: It would be very nice to extend Plotstyle with a new member “InstrumentBar”. The basic implementation could look like a candlestick, with attributes ohlc. A lot of valuable information can then elegant be added to an instrument graph in a chart.

    Thanks, AndBro
    Attached Files

    #2
    Hello AndBro,


    I have submitted a feature request to the product management team for the following feature :


    This user would like a new PlotStyle which causes plots added with AddPlot to print as candles


    I will follow up with more information as soon as it's available. If the feature requests already exists, a vote will be added to it.


    Please let us know if there are any other ways we can help.
    Jessica P.NinjaTrader Customer Service

    Comment


      #3
      Hello AndBro,

      This feature is being reviewed by the product management team and has been assigned the following unique tracking ID


      SFT-2157



      Please let us know if there is any other way we can help.
      Jessica P.NinjaTrader Customer Service

      Comment


        #4
        Hello Jessica
        That sounds good to me. Thank you.
        Meanwhile I have made a work-around that actually works very well. The basic idea is to make a subclass of Series, in my case PlotOHLC : Series<OHLC>. In addition, PlotOHLC has a method Render that is called at the override OnRender of the indicator. However, I still have to use some dummy-Addplots, and other “stupid” coding to have it work! But, it is just a prototype.

        See OHLC.cs for an overview of how to use it. Text only.

        If anyone is interested in the code, I can upload it to this thread.

        Have a nice day /Andbro
        Attached Files

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by DJ888, 04-16-2024, 06:09 PM
        4 responses
        11 views
        0 likes
        Last Post DJ888
        by DJ888
         
        Started by terofs, Today, 04:18 PM
        0 responses
        5 views
        0 likes
        Last Post terofs
        by terofs
         
        Started by nandhumca, Today, 03:41 PM
        0 responses
        5 views
        0 likes
        Last Post nandhumca  
        Started by The_Sec, Today, 03:37 PM
        0 responses
        3 views
        0 likes
        Last Post The_Sec
        by The_Sec
         
        Started by GwFutures1988, Today, 02:48 PM
        1 response
        9 views
        0 likes
        Last Post NinjaTrader_Clayton  
        Working...
        X