• 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

SetParabolicStop() at a different timeframe/data series

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

    SetParabolicStop() at a different timeframe/data series

    Is there any workaround the syntax?
    https://ninjatrader.com/support/help...abolicstop.htm

    Can I set SetParabolicStop() at a different timeframe/data series?
    SetParabolicStop(BarsArray[2], 0.02, 0.2, 0.02)[0];

    like that of Parabolic SAR?


    #2
    Hello johnnybegoode,

    Thanks for your post.

    In the Help guide link you referenced, the relative note would be, "Should you have multiple Bars objects of the same instrument while using SetParabolicStop() in your strategy, you should only submit orders for this instrument to the first Bars context of that instrument. This is to ensure your order logic is processed correctly and any necessary order amendments are done properly."

    So for the multiple time frame, no it would have to be the first data series (typically chart bars).

    The same note can be found in all of the Set methods.

    You could create your own Parabolic stop that operates of the time frame you choose and you can submit your exit order to the same "BarsInprogress" as the entry order. For an example of a multi-timeframe strategy entry/exit, please see https://ninjatrader.com/support/help..._frame_and.htm
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_PaulH View Post
      Hello johnnybegoode,

      Thanks for your post.

      In the Help guide link you referenced, the relative note would be, "Should you have multiple Bars objects of the same instrument while using SetParabolicStop() in your strategy, you should only submit orders for this instrument to the first Bars context of that instrument. This is to ensure your order logic is processed correctly and any necessary order amendments are done properly."

      So for the multiple time frame, no it would have to be the first data series (typically chart bars).

      The same note can be found in all of the Set methods.

      You could create your own Parabolic stop that operates of the time frame you choose and you can submit your exit order to the same "BarsInprogress" as the entry order. For an example of a multi-timeframe strategy entry/exit, please see https://ninjatrader.com/support/help..._frame_and.htm
      It´s possible to use this sintax? to operate with parabolic stop in a non primary series?

      protected override void OnBarUpdate()
      {
      if (BarsInProgress == 1)
      {
      SetParabolicStop("long", CalculationMode.Ticks, 10, true, 0.2, 0.02, 0.2);
      }

      Comment


        #4
        Hello memonic,

        Thanks for your post.

        If the data of BarsInprogress 1 met the requirements of "you should only submit orders for this instrument to the first Bars context of that instrument.". then yes.

        If the data BarsInProgress 1 is a different time frame from the chart bars and of the same instrument, then no.
        Paul H.NinjaTrader Customer Service

        Comment


          #5
          Originally posted by NinjaTrader_PaulH View Post
          Hello memonic,

          Thanks for your post.

          If the data of BarsInprogress 1 met the requirements of "you should only submit orders for this instrument to the first Bars context of that instrument.". then yes.

          If the data BarsInProgress 1 is a different time frame from the chart bars and of the same instrument, then no.
          yes, is different time frame.
          is there any way to submit a parabolic stop with non primary dataseries?
          regards

          Comment


            #6
            Hello memonic,

            Thanks for your reply.

            Yes, you would have to create your own stop by checking the value of current price to the value of the parabolic stop on the higher time frame and then simply use an exit order such as ExitLong() or ExitShort() when the current price reaches the parabolic stop value. I would recommend using the strategy run with Calculate.OnEachTick or Calculate.OnPriceChange in order to get a responsive stop as otherwise if you wait for bar close the exit level may be more than you wish. You could test each of these and see what works best for you.
            Paul H.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by tvaughan4, 12-13-2019, 10:46 PM
            2 responses
            17 views
            0 likes
            Last Post tvaughan4  
            Started by digibob, 12-13-2019, 10:01 PM
            3 responses
            12 views
            0 likes
            Last Post digibob
            by digibob
             
            Started by ldissinger, Yesterday, 12:55 PM
            1 response
            19 views
            0 likes
            Last Post ldissinger  
            Started by pstrusi, Yesterday, 09:06 AM
            1 response
            28 views
            0 likes
            Last Post marcus2300  
            Started by vpzdcv, Yesterday, 02:31 AM
            0 responses
            14 views
            0 likes
            Last Post vpzdcv
            by vpzdcv
             
            Working...
            X