• 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

Convert LookBack # of bars back to a fixed Date

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

    Convert LookBack # of bars back to a fixed Date

    Hi,

    How could I easily convert a LookBack (number of bars back ) to a fixed date. I'm using daily charts... I want to select a fixed date instead of bars back in the following code below. Thanks so much.

    if (CurrentBar < LookBack)return;
    double a = RSI (14, 3)[0];
    double b = RSI (14, 3 )[LookBack];
    Plot0.Set(a - b);

    #2
    Shawn, you could work with GetBar() for this purpose -

    http://www.ninjatrader.com/support/h...nt7/getbar.htm
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by ivangil, 10-14-2019, 11:23 AM
    2 responses
    77 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Started by Wick Wrangler, Yesterday, 07:33 PM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by NinjaCustomer, Today, 08:18 AM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Started by MIKEALV1975, Today, 07:30 AM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by matthew splitt, 08-22-2017, 01:58 PM
    5 responses
    1,132 views
    0 likes
    Last Post NinjaTrader_Kate  
    Working...
    X