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 sjsj2732, Yesterday, 04:31 AM
      0 responses
      30 views
      0 likes
      Last Post sjsj2732  
      Started by NullPointStrategies, 03-13-2026, 05:17 AM
      0 responses
      286 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      282 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      132 views
      1 like
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      90 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Working...
      X