GannSwingEquality

Optuma Forums Optuma Scripting GannSwingEquality

  • This topic has 4 replies, 2 voices, and was last updated 1 year ago by David.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #63727
    David
    • Topics: 5
    • Replies: 8
    • Posts: 13

    Is it possible to write a script that would point out this GannSwingEquality on the attached chart?
    Current Upswing length is equal to Previous Upswing length.

    #63791
    Darren
    • Topics: 70
    • Replies: 871
    • Posts: 941

    Hi David,

    You can create formulas for any swing value. When added to a watchlist column the following will give the % value of the current swing relative to the previous swing in the same direction (ie up swing or down swing).

    So GS is currently 99.07% of the previous swing up (confirmed with the Price Extension P/X label on the overlay tool).

    Capture

    Make the formula into a true/false Boolean and you can then use it in a scan, eg swing ranges within a ±2% tolerance:

    This scan of the S&P500 shows these 6 as of Monday’s close:

    Capture

    #63793
    David
    • Topics: 5
    • Replies: 8
    • Posts: 13

    That’s great!   Thanks so much, Darren.

    #64983
    David
    • Topics: 5
    • Replies: 8
    • Posts: 13

    This is the code I am using in a watchlist with a 60 minute timeframe called
    “EqualityPercentSwing”. When the swings change it goes to zero. (Please
    see attached.) For it to
    get off zero I have to manually refresh the list by changing the timeframe
    from 60 minute to 30 minute. Is there any way for this code to update the
    value on its own after reaching a new swing end? If not, is there a way to
    have the watchlist automatically refresh?

    • This reply was modified 1 year ago by David.
    #65027
    David
    • Topics: 5
    • Replies: 8
    • Posts: 13

    Is there a way to do the same thing but instead of the swing length in points
    using the number of bars in the swing?

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

Pin It on Pinterest