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 Rapine Heihei, Today, 07:51 PM
    0 responses
    3 views
    0 likes
    Last Post Rapine Heihei  
    Started by frslvr, 04-11-2024, 07:26 AM
    5 responses
    96 views
    1 like
    Last Post caryc123  
    Started by algospoke, 04-17-2024, 06:40 PM
    6 responses
    49 views
    0 likes
    Last Post algospoke  
    Started by arvidvanstaey, Today, 02:19 PM
    4 responses
    11 views
    0 likes
    Last Post arvidvanstaey  
    Started by samish18, 04-17-2024, 08:57 AM
    16 responses
    61 views
    0 likes
    Last Post samish18  
    Working...
    X