• 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

How do you get the value of an indicator at a specific point in time / bar?

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

    How do you get the value of an indicator at a specific point in time / bar?

    I would like to get the value of an indicator at a specific bar.

    As an example I'll use the SMA...

    The Code for the SampleMACrossOver indicator has "CrossAbove"

    if (CrossAbove(SMA(Fast), SMA(Slow), 1))
    EnterLong();

    but I would like to get the value as a double for a given bar.

    for example:

    if (SMA == 100.23) ...

    ---------------------

    I've created an indicator and a strategy. I want to trap specific numbers and act on them...

    Thanks for anything!
    Robert

    #2
    Found it...

    https://ninjatrader.com/support/help..._indicator.htm

    Comment


      #3
      Hello Robert,

      Thank you for updating the thread with what you needed.

      Please let us know if you have any questions.
      Patrick H.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by ntbone, Today, 12:05 AM
      0 responses
      7 views
      0 likes
      Last Post ntbone
      by ntbone
       
      Started by cutzpr, Yesterday, 09:33 PM
      1 response
      11 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by hotsalami, Yesterday, 09:02 PM
      1 response
      10 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by Luigio, Yesterday, 04:50 AM
      1 response
      9 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by sidviciousX, 08-17-2019, 06:47 AM
      2 responses
      36 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Working...
      X