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 xepher101, 05-10-2024, 12:19 PM
          5 responses
          66 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by Vitamite, Yesterday, 12:48 PM
          3 responses
          17 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by aligator, Today, 02:17 PM
          0 responses
          15 views
          0 likes
          Last Post aligator  
          Started by lorem, 04-25-2024, 09:18 AM
          22 responses
          96 views
          0 likes
          Last Post lorem
          by lorem
           
          Started by sofortune, Today, 10:05 AM
          3 responses
          16 views
          0 likes
          Last Post NinjaTrader_ChristopherJ  
          Working...
          X