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

Calling UniRenko Bars

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

    Calling UniRenko Bars

    Hi guys, i been trying to call UniRenko bars from an indicator, but since it has 3 parameters i don't know how to, the code below does not work, how do one controls this bar type parameters then?

    switch(PType)
    {

    case pCandType.UniRenko:
    Add(PeriodType.Custom5, 2,18,2);
    break;
    case pCandType.HybridRenko:
    Add(PeriodType.Custom6, MayorTimeframePeriods);
    break;

    }

    #2
    Hello Kabott,

    Thank you for your note.

    You would not be able to add custom bar types to the strategy script as they are not supported this way.

    You would need to use the defaults ones built into NinjaTrader, Minute, Renko, Range and so forth.

    Let me know if I can be of further assistance.
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Hey Cal, well, im not interested in creating a strategy with them at the moment, just want to create a multi timeframe indi with them, and i need to be able to change the settings, that's basically it. how do i do that? thanks in advance

      Comment


        #4
        Kabott,

        I am going to rephrase my first statement.

        This is not limited to Strategies. You cannot use Custom Bar types for either Indicators or Strategies for the Add() method. I am not aware of a supported or unsupported method to use these custom bar types.
        Cal H.NinjaTrader Customer Service

        Comment


          #5
          Kabott,

          To support Muti TimeFrame indicators/strategies using the Add() method,
          added an alternative way to specify all bar specs in the 'Tick Trend'
          parameter. You can now alternatively specify each parameter as 3 digits
          in the Data Series window 'Tick Trend' parameter or Add() method
          'Period' parameter. For example to specify TickTrend=4 ,
          TickReversal=8, OpenOffset=2 or (T4R8O2) then specify: 'Tick
          Trend'=004008002 in Data Series window, or Add(PeriodType.custom5,
          004008002);' in your MTF code. The normal way of specifying the
          parameters will still work as well.
          Add(PeriodType.Custom5, 004008002);
          In the example of 004008002
          004 = Tick trend
          008 = Tick Reversal
          002 = Open offset

          You can also find more info about UniRenko from;
          Reviews, Strategies, Indicators & more | NexusFi community forum


          Also check out this indicator on Big Mikes website called UniRenkoBarCloseV2PF it's an indicator to mark the projected bar closes for the UniRenko Bars.

          Comment


            #6
            Thank you very much jmca!

            Comment


              #7
              Originally posted by jmca2000 View Post
              Add(PeriodType.Custom5, 004008002);
              You tried to use it? It not work.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by frslvr, 04-11-2024, 07:26 AM
              6 responses
              105 views
              1 like
              Last Post NinjaTrader_BrandonH  
              Started by trilliantrader, 04-18-2024, 08:16 AM
              6 responses
              26 views
              0 likes
              Last Post trilliantrader  
              Started by arvidvanstaey, Yesterday, 02:19 PM
              5 responses
              14 views
              0 likes
              Last Post NinjaTrader_Zachary  
              Started by Rapine Heihei, Yesterday, 08:25 PM
              1 response
              12 views
              0 likes
              Last Post NinjaTrader_ChelseaB  
              Started by Mongo, Yesterday, 11:05 AM
              6 responses
              27 views
              0 likes
              Last Post Mongo
              by Mongo
               
              Working...
              X