• 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

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 Captain_Qwark, Today, 10:55 AM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Started by kmpc1, Today, 11:03 AM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_PatrickG  
    Started by jransom, Today, 09:08 AM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_Kate  
    Started by mtamaku, Today, 09:19 AM
    0 responses
    19 views
    0 likes
    Last Post mtamaku
    by mtamaku
     
    Started by traderMNQ, Today, 09:00 AM
    4 responses
    18 views
    0 likes
    Last Post traderMNQ  
    Working...
    X