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

base period type enum

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

    base period type enum

    greetings,

    reviewing the Kagi code and would like to know how to expose Range bars as a valid selection for BasePeriodType. any helpful pointers most appreciated.

    cheers,
    -e

    #2
    Hello,

    This would be officially unsupported unfortunately, but mabye others can assist here. Its most likely unsupported as the two would contradict eachother/ cause issue correct?

    Let me know if I can be of further assistance.

    Comment


      #3
      was hoping for something similar to this:

      Code:
              public override Gui.Chart.ChartStyleType[] ChartStyleTypesSupported
              {
                  get
                  {
                      return new Gui.Chart.ChartStyleType[]
                      {
                          Gui.Chart.ChartStyleType.Box,
                          Gui.Chart.ChartStyleType.CandleStick,
                          Gui.Chart.ChartStyleType.HiLoBars,
                          Gui.Chart.ChartStyleType.LineOnClose,
                          Gui.Chart.ChartStyleType.OHLC,
                      };
                  }
              }
      where i could just plug in the BasePeriodType[] values that were applicable.

      anyone else run into this limitation before? i understand the official unsupported response, but would still like to explore how to do this.

      cheers,
      -e

      EDIT: hmmm, i was close ... Supported : PeriodType[] may do the trick ... we'll see.
      Last edited by e-man; 02-14-2011, 04:49 PM.

      Comment


        #4
        ... denied ...

        'NinjaTrader.Data.NewBarType.Supported.get': cannot override inherited member 'NinjaTrader.Data.BarsType.Supported.get' because it is not marked virtual, abstract, or override
        any chance we can get this marked as virtual?

        cheers,
        -e

        Comment


          #5
          Thank you for the suggestion, e-man. Currently you can't use range bars for the Kagi bar type. I will forward this to our development team for consideration in a future release.
          Ryan M.NinjaTrader Customer Service

          Comment


            #6
            you can disregard that suggestion.

            i coded it up over here and made it work, but there is no business use for this type of bar. the bar-heights can get ridiculous large in range-bound markets.

            cheers,
            -e

            Comment


              #7
              Hello,

              Thanks for letting us know.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by frankthearm, Today, 09:08 AM
              0 responses
              1 view
              0 likes
              Last Post frankthearm  
              Started by funk10101, Today, 08:14 AM
              3 responses
              4 views
              0 likes
              Last Post NinjaTrader_Jesse  
              Started by samish18, Yesterday, 08:57 AM
              11 responses
              28 views
              0 likes
              Last Post NinjaTrader_BrandonH  
              Started by yertle, Today, 08:38 AM
              1 response
              5 views
              0 likes
              Last Post NinjaTrader_BrandonH  
              Started by love2code2trade, Yesterday, 01:45 PM
              3 responses
              22 views
              0 likes
              Last Post NinjaTrader_BrandonH  
              Working...
              X