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 judysamnt7, 03-13-2023, 09:11 AM
          4 responses
          53 views
          0 likes
          Last Post DynamicTest  
          Started by ScottWalsh, Today, 06:52 PM
          4 responses
          33 views
          0 likes
          Last Post ScottWalsh  
          Started by olisav57, Today, 07:39 PM
          0 responses
          5 views
          0 likes
          Last Post olisav57  
          Started by trilliantrader, Today, 03:01 PM
          2 responses
          19 views
          0 likes
          Last Post helpwanted  
          Started by cre8able, Today, 07:24 PM
          0 responses
          6 views
          0 likes
          Last Post cre8able  
          Working...
          X