Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

volume question

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

    volume question

    There is an indicator called VOL and another indicator called VOLMA. VOLMA calculates the average volume over a set (user input) number of periods.

    The issue I am having is that volume varies greatly (say in silver or in natural gas) depending on what hour it is trading. So natural gas volume tends to pick up (all times PST) at around 5 AM peak around 6 or 6:30, trail off a bit before having another peak into the pit close at 11:30 AM. Logically, then, if I want a useful volume average, I want to be averaging comparable periods...

    Let's say I'm using a 3 minute chart and I want to find high volume spikes. well, if I just program it to look at a trailing 60 minute period, than every morning at 6 AM, the program is going to say (ah-hah! we have a high volume spike) when in reality people are just starting their day and you always see volume pick up at that time. So, what i really want to do is compare the volume at 6 o'clock with the volume of the last 3 days from 6-7 AM.

    What is the easiest way to do this?

    It would be a great help to figure this out. Thank you!

    Matt

    #2
    Hi Matt,

    The easiest may be to create your own custom session template that is set for the times that you want. This controls bar construction as well and would be the quickest way to get the values from only a time range without custom coding. This page can help working with the session manager:


    You can custom code an indicator based on a time range. It may get a bit tricky with items like moving averages. Biggest hurdles will be manually calculating everything and deciding what to do with your values on session transitions. This sample can help get you started getting values from a time range if you decide to custom code it:
    Ryan M.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by bortz, 11-06-2023, 08:04 AM
    47 responses
    1,602 views
    0 likes
    Last Post aligator  
    Started by jaybedreamin, Today, 05:56 PM
    0 responses
    8 views
    0 likes
    Last Post jaybedreamin  
    Started by DJ888, 04-16-2024, 06:09 PM
    6 responses
    18 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by Jon17, Today, 04:33 PM
    0 responses
    4 views
    0 likes
    Last Post Jon17
    by Jon17
     
    Started by Javierw.ok, Today, 04:12 PM
    0 responses
    12 views
    0 likes
    Last Post Javierw.ok  
    Working...
    X