Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Alert OnBarClose

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

    Alert OnBarClose

    Hi there,

    I have a daily ES mini strategy that calculates on bar close using the free EOD Kinetic data, and i've inserted this alert to trigger when certain conditions are met.

    NinjaTrader.NinjaScript.Alert.AlertCallback(NinjaT rader.Cbi.Instrument.GetInstrument("ES 03-17"), this, "someId", NinjaTrader.Core.Globals.Now, Priority.High, "message", NinjaTrader.Core.Globals.InstallDir+...s\Aler t1.wav", new SolidColorBrush(Colors.Blue), new SolidColorBrush(Colors.White), 0);

    When I run the strategy on a chart, and the free EOD data from Kinetic comes through after the market close, could I expect the alert to trigger then, if the conditions are met? If not, is there a way to do this? Because if it doesn't trigger until the next bar opens, then it doesn't work because the data isn't live, so I don't see what the open is until the EOD data for the next day comes through.

    Thanks for your help.

    #2
    Hello kabes223,

    We have a post related to this here that details strategies being used with this connection: http://ninjatrader.com/support/forum...28&postcount=3

    Unfortunately you would need to use a live data feed to be able to submit orders or do other actions from OnBarUpdate. Otherwise the updates would be random when Kinetick updates the end of day price for the instrument so it would not be a reliable connection to use for items that need to update automatically like strategies specifically. this connection will load historical bars for you to use in backtesting or in historical testing but would not be reliable for realtime testing.

    I look forward to being of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Today, 05:17 AM
    0 responses
    52 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    130 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    70 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    43 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    48 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X