Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by gbourque, Today, 06:39 AM
    0 responses
    3 views
    0 likes
    Last Post gbourque  
    Started by cmtjoancolmenero, Yesterday, 03:58 PM
    1 response
    17 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by benmarkal, Yesterday, 12:52 PM
    3 responses
    23 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by helpwanted, Today, 03:06 AM
    1 response
    20 views
    0 likes
    Last Post sarafuenonly123  
    Started by Brevo, Today, 01:45 AM
    0 responses
    12 views
    0 likes
    Last Post Brevo
    by Brevo
     
    Working...
    X