Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.

    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 geddyisodin, Today, 05:20 AM
        0 responses
        3 views
        0 likes
        Last Post geddyisodin  
        Started by JonesJoker, 04-22-2024, 12:23 PM
        6 responses
        33 views
        0 likes
        Last Post JonesJoker  
        Started by GussJ, 03-04-2020, 03:11 PM
        12 responses
        3,239 views
        0 likes
        Last Post Leafcutter  
        Started by AveryFlynn, Today, 04:57 AM
        0 responses
        6 views
        0 likes
        Last Post AveryFlynn  
        Started by RubenCazorla, 08-30-2022, 06:36 AM
        3 responses
        79 views
        0 likes
        Last Post PaulMohn  
        Working...
        X