• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Unlike statements

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

    #16
    Hi turbofib,

    It really depends on what you are trying to do.

    If you are trying to get a value at startup time that you want not to change then you should not put this in OnBarUpdate.

    If you are trying to call the value of an indicator on every bar then put this in OnBarUpdate.

    May I ask, what are you trying to accomplish?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #17
      i give you an example:
      analyzes the historical and call an indicator by passing different parameters to each bar in order to optimize
      Or call an indicator with different settings of the timeframe based on the volatility of the market

      Comment


        #18
        Originally posted by turbofib View Post
        i give you an example:
        analyzes the historical and call an indicator by passing different parameters to each bar in order to optimize
        Or call an indicator with different settings of the timeframe based on the volatility of the market
        Yes, that would mean you reinitialize whenever you want to change parameters. That would have to be in OBU. However, I do not understand what you are trying to do. How do you determine what to change the parameters to (when you talk of "to optimize"). Are you trying to optimize on the fly while the strategy is actually running?

        Optimization is done using the Strategy Analyzer, which handles changing values of public parameters in order to find the curve fitted optimal values. Why do you need to change parameters midstream?

        I guess I can understand changing parameters based on volatility.

        Comment


          #19
          yes but there are various ways to make the indicators ...
          I do not want to hand find the optimal parameters by optimizing the end .. but I want it that way by them is

          I and turbofib work together

          Comment


            #20
            is Correct!

            Comment


              #21
              Hi turbofib,

              If you are attempting to call an indicator using different parameters on each new bar, then yes you will want to put this in OnBarUpdate().
              Chelsea B.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by tecmisc1, Today, 09:57 AM
              0 responses
              2 views
              0 likes
              Last Post tecmisc1  
              Started by mbesha, Today, 09:26 AM
              0 responses
              1 view
              0 likes
              Last Post mbesha
              by mbesha
               
              Started by Brillo, Today, 08:58 AM
              0 responses
              6 views
              0 likes
              Last Post Brillo
              by Brillo
               
              Started by avrege, Today, 01:48 AM
              2 responses
              13 views
              0 likes
              Last Post avrege
              by avrege
               
              Started by markbb10, Today, 07:14 AM
              0 responses
              7 views
              0 likes
              Last Post markbb10  
              Working...
              X