Small changes needed to existing Intraday Cumulative Intraday Volume Indicator

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #165084 quote
    nicko
    Participant
    Average

    JMat45 has done an amazing job coding “Volume analysis – intraday”

    Volume analysis – intraday

    This is an indicator exactly that I am looking for, however there are a few minor errors that I do not seem to be able to correct as my coding skills are amateur at best.

    1. When I run the code on US Stocks it only works on the second Bar and excludes the first Bar and the first bar’s volume. This applies to the first bar of all timeframes. (I have tried to adjust the start time and adjust the trading hours but no luck)
    2.  The Averages calculated for each bar also includes the current bar when it should only calculate it on the previous bar.

    For clarity – I want to be able to monitor US stocks and the volume they trade during the Opening Bars(be it 5m, 10, 15m etc) against the average volume traded during previous days Opening Bars.

    It seems there should be a simply remedy to the code but having tried all possibilities it has beaten me !

    Many thanks for any help. I do believe it will be a useful indicator for anyone who likes Volume.

    Volume-analysis.itf
    #165092 quote
    robertogozzi
    Moderator
    Master

    Try  replacing line 12 with:

    Marker = i-1
    #165096 quote
    nicko
    Participant
    Average

    Roberto

    Many thanks for the suggestion. Sadly it does not work.

    I am using PRT for IG. If the contract is “All Sessions” like Tesla it will show the Volume of the First Bar as requested (as there were other Bars of that day before it). However if it is a contract that only starts at 2.30pm then it will not show the volume of the 1st Bar (I even tried to make the first bar as being the last bar of the night before).

     

    Is there something that PRT and/or IG do so that an indicator/code would not work on that first Bar ?

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Small changes needed to existing Intraday Cumulative Intraday Volume Indicator


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
nicko @nicko Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by nicko
4 years, 10 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 03/23/2021
Status: Active
Attachments: 1 files
Logo Logo
Loading...