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, 05-11-2026, 05:56 AM
        0 responses
        26 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        20 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        182 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        335 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        260 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Working...
        X