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 -

    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by zstheorist, Today, 07:52 PM
    0 responses
    3 views
    0 likes
    Last Post zstheorist  
    Started by pmachiraju, 11-01-2023, 04:46 AM
    8 responses
    149 views
    0 likes
    Last Post rehmans
    by rehmans
     
    Started by mattbsea, Today, 05:44 PM
    0 responses
    5 views
    0 likes
    Last Post mattbsea  
    Started by RideMe, 04-07-2024, 04:54 PM
    6 responses
    33 views
    0 likes
    Last Post RideMe
    by RideMe
     
    Started by tkaboris, Today, 05:13 PM
    0 responses
    5 views
    0 likes
    Last Post tkaboris  
    Working...
    X