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 Mindset, 04-21-2026, 06:46 AM
      0 responses
      57 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      78 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      39 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      101 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      61 views
      0 likes
      Last Post PaulMohn  
      Working...
      X