Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

AddHeikenAshi() To Use Selected Period Type And Value

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

    AddHeikenAshi() To Use Selected Period Type And Value

    I am using
    Code:
    if (State == State.Configure) { AddHeikenAshi(debugInstrument, BarsPeriodType.Minute, 30, MarketDataType.Last); }
    in my strategy. But I don't like that the period type and values have to be hard coded. I tried using
    Code:
    AddHeikenAshi(this.Instrument.FullName, this.BarsPeriod.BarsPeriodType, this.BarsPeriod.BaseBarsPeriodValue, MarketDataType.Last);
    , but at the time this runs, the BarsPeriod is set to Tick 1, probably meaning it hasn't been created yet. And when I optimize with this, the Instrument is null.

    Is there any way I can get the HeikenAshi indicator to use the user selected period and instrument?

    referenced https://ninjatrader.com/support/help...heikenashi.htm

    #2
    Hello saulback,

    Thank you for your note.

    This would not be supported however I will submit a feature request for this syntax to be added.

    Please let us know if you need further assistance.
    Alan P.NinjaTrader Customer Service

    Comment


      #3
      Is there a public facing issue tracker? How will I know if/when it gets implemented?

      Comment


        #4
        Hello saulback,

        The feature will be assigned an SFT number which you can check back on from time to time as well as follow the release notes of future releases to see if the feature was added, see


        I will follow up to this thread when a ID has been assigned.
        Alan P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        77 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        40 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        63 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        63 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        53 views
        0 likes
        Last Post CarlTrading  
        Working...
        X