Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Calculate on bar close = false but only signal on close of bar

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

    Calculate on bar close = false but only signal on close of bar

    I have an indicator that I need to run with COBC = false but want the indicator to only signal once and preferably on bar close.
    Can someone point me to an example.
    I did a quick look and did not find exactly what i was looking for.
    TIA,
    Gary

    #2
    Hello,


    Thank you for your note.


    Absolutely, please see this sample.




    Let me know if I can be of further assistance.
    BrettNinjaTrader Product Management

    Comment


      #3
      Thanks Brett,

      Not exactly what I was looking for.
      I was looking for an example that shows how to calculate a value on the close of the bar with COBC set to false.

      i.e. I want to be able to see my indicator update at the tick level but have another part of the indicator assign a separate value at the close of the bar.

      Does this make sense?

      I can add the indicator twice with one COBC - true and the other false but I was hoping to find a more elegant solution.

      thanks

      Comment


        #4
        Usr FirstTickOfBar, with your reference index set to [1], the bar that just closed, as the FirstTickOfBar is what signals the close of the previous bar.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        134 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        75 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        119 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        114 views
        1 like
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        92 views
        0 likes
        Last Post CarlTrading  
        Working...
        X