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 cmoran13, 04-16-2026, 01:02 PM
      0 responses
      51 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      31 views
      0 likes
      Last Post PaulMohn  
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      165 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      100 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      160 views
      2 likes
      Last Post CaptainJack  
      Working...
      X