Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

UniRenkoBarsType with Strategy

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

    UniRenkoBarsType with Strategy

    Hello

    I am using NT8, with UniRenkoBarsType chart, i am trying to use it in my strategy, but it seems it is reading different setting (Trend, Offset, Reversal) than the ones on the chart.
    so the high, low.. on my strategy is different than the one on the chart view
    is there a way to use whatever setting on the chart window

    Thanks

    #2
    Hello Algo Trading,

    For custom bars types you may need to use the BarsPeriod overload for AddDataSeries if you wanted to specify custom values. There are some examples in the help guide tips section for this:

    2. You can add a custom BarsType which is installed on your system by casting the registered enum value for that BarsPeriodType. For example: AddDataSeries((BarsPeriodType)14, 10);

    3. You can specify optional BarsPeriod values (such as Value2) of a custom BarsType in the BarsPeriod object initializer. For example: AddDataSeries(new BarsPeriod() { BarsPeriodType = (BarsPeriodType)14, Value = 10, Value2 = 20 });​


    https://ninjatrader.com/support/help...ghtsub=adddata

    you very likely would need to use the option 3 where you specify Value and Value 2 parameters.

    Comment


      #3
      Works!
      Thank you very much

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by kinfxhk, 07-14-2026, 09:39 AM
      0 responses
      15 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-13-2026, 10:18 AM
      0 responses
      59 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-13-2026, 09:50 AM
      0 responses
      42 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-13-2026, 07:21 AM
      0 responses
      47 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Started by kinfxhk, 07-11-2026, 02:11 AM
      0 responses
      38 views
      0 likes
      Last Post kinfxhk
      by kinfxhk
       
      Working...
      X