Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Mutliple indicators - just one being recalculated with each tick

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

    Mutliple indicators - just one being recalculated with each tick

    Dear support,

    I have a simple question. Say, I want to get an alert when the volume on current bar surpasses 3*StdDev(Volume, 25)[1]. It's easy to code, right, however, is there a way how I can specify that I want only Volume to update on each tick in this alerter and not the StdDev (as I only need the lagged value of StdDev)? The thing is that I would like to have this thing on 6 timeframes and StdDev calculation is rather computationally intensive so if I cant specify that Volume should be calculated on each tick while StdDevs not, I will most likely cause my computer to slow down.

    Thanks a lot,
    Daniel.

    #2
    Hi Daniel,
    Yes, this is possible. You can see this sample for combining your logic with CalculateOnBarClose = true and false:


    Store your StdDev value when FirstTickOfBar == true, and then make your volume comparisons to this stored value.
    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    133 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    75 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    117 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    113 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    90 views
    0 likes
    Last Post CarlTrading  
    Working...
    X