Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

CamarillaPivots...

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

    CamarillaPivots...

    Hello,

    I want to get the support and resistance values from the CamarillaPivots indicator. It appears: CamarillaPivots(PivotRange.Daily, HLCCalculationMode.CalcFromIntradayData, 0, 0, 0, 20).S1[0]), with the last parameter set to the desired property, will work.

    I only want to make these eight calls once (save the results locally) and am seeking guidance on which OnStateChange, state, would be the best choice.

    Thanks,

    Mark


    #2
    Hello Mark,

    The call to the actual data .S1[0] would need to be in OnBarUpdate() where data is processed.

    In State.DataLoaded, you can instantiate the indicator if you want, but you would still need to retrieve the data in OnBarUpdate().

    Perhaps you are wanting to get the data on the last historical bar?
    NinjaTrader Support, I am trying to look at the last 20 bars on the chart and assign a score to each bar, for example: Red bar with lower low = -2 Green bar with higher higher = +2 How can I access the characteristics of previous bars? Thanks, -Omer
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hello,

      Thanks for the response.

      >the data in OnBarUpdate().

      Yeah I can do that. The values will not change after the first call. I can put a flag in OnBarUpdate to only do the call once but I was looking for a more elegant solution.

      Thanks,

      Mark

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      561 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      325 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      547 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      547 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X