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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    43 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    21 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    30 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    50 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    40 views
    0 likes
    Last Post CarlTrading  
    Working...
    X