Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

My Indicator Crash!

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

    My Indicator Crash!

    Hi, see pics :

    Setting my chart : https://gyazo.com/4f4d5237dca2854203c9ae9f95c87c37

    My Indicator:



    When i run it...Ninjatrader crash...

    Problem is beacause i call BuySellPressure which is Calcolate OnEachTick?

    I can't do it?

    thanks

    #2
    Hello turbofib,

    Thanks for your post.

    In the State.Configure change to:

    delta = BuySellPressure();

    In the print statement change to delta[0]

    You will need to run your indicator Calculate.OnEachTick

    Comment


      #3
      yes but i need to know the BuyPressure of Historic Bar

      if I write as you suggested....it write Intrabar and realtime (not Historical)

      I want to know the closing BuySellPressure of the previous candles

      If i write this :



      I see :



      And it's not correct ..I need Information of Historic bar
      Last edited by turbofib; 02-08-2016, 08:37 AM.

      Comment


        #4
        Hello turbofib,

        Thanks for the clarity of your reply.

        You can set Calculate.OnEachBar and your print statement should now reflect the value of the previous BuySellPressure at the end of the bar. I've attached a couple of screenshots of my test code and the output it produces.
        Attached Files

        Comment


          #5
          Thank for the answer ...

          I think I was going to crash because i test it without the attached feed ... with only the time series stored in the database

          Thank you!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          666 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          377 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          110 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          575 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          580 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X