Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

TriggerCustomEvent()

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

    TriggerCustomEvent()

    How can i write this so it updates every second?

    #2
    Hello Ericson,

    Thank you for your note.

    There's a couple options to do this, such as a custom timer.

    One method that I might propose would be to add a 1 second data series to the script and set your CalculateOnBarClose to true.
    You can then use BarsInProgress to filter out the incoming bar update and run the custom event.

    http://www.ninjatrader.com/support/h...inprogress.htm
    http://www.ninjatrader.com/support/h....html?add3.htm
    Cal H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    37 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    18 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    25 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    40 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    34 views
    0 likes
    Last Post CarlTrading  
    Working...
    X