• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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:

    https://gyazo.com/c0c45741cb3e214290772290463ae9e1

    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 :

      https://gyazo.com/e68d1f7048d18b9588bdd61e44e40119

      I see :

      https://gyazo.com/11dc8e63e19cff951125b82a8253c7f7

      And it's not correct ..I need Information of Historic bar
      Last edited by turbofib; 02-08-2016, 07: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 frankduc, Today, 07:26 AM
          0 responses
          1 view
          0 likes
          Last Post frankduc  
          Started by chnh1, Yesterday, 11:51 PM
          1 response
          16 views
          0 likes
          Last Post NinjaTrader_PaulH  
          Started by Jasper99, Yesterday, 10:29 PM
          1 response
          28 views
          0 likes
          Last Post NinjaTrader_ChrisSch  
          Started by Jasper99, Yesterday, 09:50 PM
          1 response
          12 views
          0 likes
          Last Post NinjaTrader_ChrisSch  
          Started by StevenNelson, Yesterday, 05:57 PM
          1 response
          15 views
          0 likes
          Last Post NinjaTrader_Marco  
          Working...
          X