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
    Paul H.NinjaTrader Customer Service

    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
        Paul H.NinjaTrader Customer Service

        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 cmtjoancolmenero, Yesterday, 03:58 PM
          3 responses
          23 views
          0 likes
          Last Post cmtjoancolmenero  
          Started by Brevo, Today, 01:45 AM
          1 response
          14 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by rjbtrade1, 11-30-2023, 04:38 PM
          2 responses
          73 views
          0 likes
          Last Post DavidHP
          by DavidHP
           
          Started by suroot, 04-10-2017, 02:18 AM
          5 responses
          3,021 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by Stanfillirenfro, Today, 07:23 AM
          1 response
          7 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Working...
          X