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, 01: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 Gille1983, Today, 02:14 AM
    0 responses
    2 views
    0 likes
    Last Post Gille1983  
    Started by Renorail, Today, 01:05 AM
    0 responses
    11 views
    0 likes
    Last Post Renorail  
    Started by NeverDownMoney, Yesterday, 08:06 PM
    1 response
    10 views
    0 likes
    Last Post NeverDownMoney  
    Started by GauthamK, Yesterday, 07:38 PM
    0 responses
    15 views
    0 likes
    Last Post GauthamK  
    Started by Czarek, Yesterday, 05:42 PM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_ShawnB  
    Working...
    X