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

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 GussJ, 03-04-2020, 03:11 PM
        11 responses
        3,227 views
        0 likes
        Last Post xiinteractive  
        Started by andrewtrades, Today, 04:57 PM
        1 response
        13 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by chbruno, Today, 04:10 PM
        0 responses
        7 views
        0 likes
        Last Post chbruno
        by chbruno
         
        Started by josh18955, 03-25-2023, 11:16 AM
        6 responses
        440 views
        0 likes
        Last Post Delerium  
        Started by FAQtrader, Today, 03:35 PM
        0 responses
        12 views
        0 likes
        Last Post FAQtrader  
        Working...
        X