Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Secondary bars in Live data

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

    Secondary bars in Live data

    Hello support,

    In my strategy I have added daily bar as secondary bar to store daily OHLC prices and I am running this strategy on 1 min chart. In backtest this works fine but in live Ninja generates 1 min bar but it doesn't generate daily bar. Following is a sample code

    if(BarsInProgress == 1 )
    {
    Log("Daily bar", LogLevel.Information) ;
    //Calculations for daily bar

    }
    if(BarsInProgress == 0 )
    {
    Log("1 Min bar", LogLevel.Information) ;
    //Calculations for 1 min bar
    }
    Thanks,

    #2
    tazz90, which broker / provider would you be using in your testing? What sessions would be used for the charting?
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by ScottW, Today, 06:09 PM
    1 response
    4 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by ScottWalsh, Today, 06:52 PM
    0 responses
    3 views
    0 likes
    Last Post ScottWalsh  
    Started by ftsc2022, 10-25-2022, 12:03 PM
    5 responses
    256 views
    0 likes
    Last Post KeyonMatthews  
    Started by Board game geek, 10-29-2023, 12:00 PM
    14 responses
    244 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by Waxavi, 04-19-2024, 02:10 AM
    4 responses
    56 views
    0 likes
    Last Post sonia0101  
    Working...
    X