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 Max238, Today, 01:28 AM
    2 responses
    26 views
    0 likes
    Last Post NinjaTrader_ChristopherJ  
    Started by Shansen, 08-30-2019, 10:18 PM
    25 responses
    949 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by JonesJoker, 04-22-2024, 12:23 PM
    8 responses
    41 views
    0 likes
    Last Post JonesJoker  
    Started by timko, Today, 06:45 AM
    0 responses
    4 views
    0 likes
    Last Post timko
    by timko
     
    Started by Waxavi, 04-19-2024, 02:10 AM
    2 responses
    39 views
    0 likes
    Last Post poeds
    by poeds
     
    Working...
    X