Gann Swing Volume

Optuma Forums Optuma Scripting Gann Swing Volume

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #69833
    William
    • Topics: 5
    • Replies: 5
    • Posts: 10

    I am trying to create a script that will show the cumulative volume on a Gann Swing chart. It is very similar to the Weiss Wave Volume but based on the Gann Swing tops and bottoms.

    I have spent the better part of 2 days to get the following script to work but with no success. The Char is always a “zero” value. It is a script that Trevor posted a few years ago that appears to do exactly what I want. I assume that Optuma changed and the script no longer works based on script functionality changes. If anyone can help I would appreciate it. Also, any suggestions on how I can learn this script language better? I have taken the online classes and they make sense. I can create simple scripts but I would love to have a manual or something to explain the more advance functions. Any help would be wonderful.

    • This topic was modified 2 months ago by William.
    Attachments:
    #69843
    Matthew
    • Topics: 5
    • Replies: 653
    • Posts: 658

    Hi,

    Please check out the following thread, this should assist in building the script you are after:

    Variant Of Weis Wave

    #69847
    Trevor R
    • Topics: 136
    • Replies: 383
    • Posts: 519

    Hi Matthew,

    At Ticket #49999 (2 Dec 2018) I posted the above code, which worked as can be seen from the chart accompanying it.

    Now it doesn’t☹

    I’m darned if I can work out why it no longer works, even when I open the original Workbook in which the script was originally written and the chart created.

    Any clues as to what has changed in the intervening period?

    Thanks  for any clues.

    Trevor

    #69849
    Trevor R
    • Topics: 136
    • Replies: 383
    • Posts: 519

    Hi Matthew,

    Following on from Ticket #69847 above, in trying to resolve the issue with the original script for calculating the volume from one Gann Swing to the next I’ve created the following script:

    This provides to following chart with the accumulated volume plot betwen the Gann Swing Tops and Bottoms, but the volume at each Top/Bottom swing is not shown as included in the accumulation (see 5 Jul 22 and 18 Jul 22):
    20221128 Volume between Gann Swings

    However, exporting the volume data from Optuma and summarising the accumulated volume caculations in Excel reveals the following:
    20221128 Volume Calculations
    The desired volume calculation is that shown in column “ACC(Volume)”, ie the first included volume should be that from the bar following the swing bottom bar  and the last to be included should be the volume from the swing top bar. However, the final bar in the preceding down swing is being used as the starting volume for the up swing, and the final bar in the up swing (the swing top bar) in not included.

    Two questions:
    1    How to achieve the desired calculation, and
    2   How to have the desired calculation reflected in the plot?

    Cheers
    Trevor
    The Auld Tyma from
    Auld Tyma Data Logo with URL 1 cm

    • This reply was modified 2 months ago by Trevor R.
    Attachments:
    #69861
    Matthew
    • Topics: 5
    • Replies: 653
    • Posts: 658

    Hi,

    A number of script functions have had adjustments since the original code was written.  The following adjusted version should work:

    Ex6

    #69863
    Trevor R
    • Topics: 136
    • Replies: 383
    • Posts: 519

    Brilliant thanks Matthew.

    Cheers

    Trevor

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

Pin It on Pinterest