Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

drawing object on multi time frame

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

    drawing object on multi time frame

    I have a strategy that has multi time frames.

    Scenario:
    Can I make GETBAR to retrieve the chart time frame bar instead of the time frame being processed bar?
    Last edited by ct; 08-14-2011, 12:04 PM.

    #2
    Hi ct,

    Yes, you can use GetBar() within a BarsInProgress filter.

    The chart time frame would be BarsInProgress == 0.

    if (BarsInProgress == 0)
    {
    int myBarsAgo = GetBar(new DateTime(2011, 8, 11, 12, 0, 0));
    }
    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by John Bogui, Today, 06:07 AM
    0 responses
    1 view
    0 likes
    Last Post John Bogui  
    Started by watchinggoodman, Today, 05:45 AM
    1 response
    3 views
    0 likes
    Last Post NinjaTrader_ChrisSch  
    Started by cummish, Today, 03:40 AM
    1 response
    5 views
    0 likes
    Last Post NinjaTrader_Jason  
    Started by wjadevries, Today, 03:29 AM
    0 responses
    9 views
    0 likes
    Last Post wjadevries  
    Started by elliot5, Today, 02:43 AM
    3 responses
    13 views
    0 likes
    Last Post NinjaTrader_Jason  
    Working...
    X