AVWAP pinch scan

Optuma Forums Optuma Scripting AVWAP pinch scan

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #67203
    Pentti
    • Topics: 3
    • Replies: 3
    • Posts: 6

    I try to make scan that finds stocks that are between AVWAP anchored to 52w highest high and 52w lowest low. I have made two scripts and then use them in scan with AND operator. I don’t get any results and I am wondering is there some problem in my scripts?

    Script 1
    [scode lang=”{language}”]Start = (BARDATE() == LAST(BARDATE()) – (52*7)) ;
    Sig = HIGH() == HIGHESTSINCE(Start);
    $DATE = BarDate(NonZero(Sig));
    CLOSE() < AVWAP(BACKTYPE=Fixed, DATE=$DATE)[/scode] Script 2 [scode lang="{language}"]Start = (BARDATE() == LAST(BARDATE()) - (52*7)) ; Sig = LOW() == LOWESTSINCE(Start); $DATE = BarDate(NonZero(Sig)); CLOSE() > AVWAP(BACKTYPE=Fixed, DATE=$DATE);[/scode]

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

    Thanks Pentti.

    Are you scanning on the Last Bar? If you add the scripts to watchlist columns do you get results? Note that the symbols being scanned require reported volume, so AVWAPs won’t work on forex or some indices.

    You could also try combining the formulas to see if that helps:

    #67207
    Pentti
    • Topics: 3
    • Replies: 3
    • Posts: 6

    Yes I am scanning Last Bar. I tried script that combines formulas but still no results. I added script to watchlist column in other scan and it returns true / false values correctly.

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

    Thanks. I’m getting correct results on a daily scan of the S&P500 so I’m not sure why it’s not working for you. Please send a picture of your scan setup window along with your scan file to support and we’ll investigate. The scan file (.osn) can be found here:

    Documents/Optuma/Local/Searches/Scans

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

Pin It on Pinterest