• 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 guvenators, Today, 05:18 PM
      1 response
      13 views
      0 likes
      Last Post NinjaTrader_ShawnB  
      Started by LANwarr1or, Today, 03:00 PM
      2 responses
      8 views
      0 likes
      Last Post LANwarr1or  
      Started by Newtrader101, Today, 02:53 PM
      2 responses
      10 views
      0 likes
      Last Post Newtrader101  
      Started by JuanPabloQuevedo, Today, 02:53 PM
      2 responses
      9 views
      0 likes
      Last Post JuanPabloQuevedo  
      Started by samir, Today, 03:16 PM
      2 responses
      14 views
      0 likes
      Last Post samir
      by samir
       
      Working...
      X