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 -

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    69 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    42 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    24 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    27 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    54 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X