144 bar scan/number searcher

Optuma Forums Optuma Scripting 144 bar scan/number searcher

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #53967
    • Topics: 21
    • Replies: 18
    • Posts: 39

    I ran this 144 bar scan and decided to test it against the numbersearcher tool. The results are quite different. I would have thought the numbersearcher tool would off confirmed the scan result. Is someone able to explain the different outcomes.

    Thanks Peter

    //This finds 144 trading days from pivots. Charts must be bars only, no filters for Cal days or holidays etc //Calc pivots PivotHi = PIVOT(MIN=20, DIR=Both, TYPE=High) > 0; PivotLo = PIVOT(MIN=20, TYPE=Low, DIR=Both) < 0; TSignalH = IF(PivotHi > 0, 1, 0); TSignalL = IF(PivotLo > 0, 1, 0); //Offset 144 bars FindH = TsignalH[144]; FindL = TsignalL[144]; FindH or FindL

    • Topics: 4
    • Replies: 255
    • Posts: 259

    Hi Peter,

    Your scan will mark 144 bars after any pivot high or low on the chart, regardless of whether the count occurs close to another pivot label.

    The number searcher will only display results where (in this instance) two pivots are 144 bars apart.  As a result your script will produce many more results than the number searcher…



    AvatarTrevor R
    • Topics: 77
    • Replies: 242
    • Posts: 319

    Hi Peter,

    Your script is finds the Bar that is 144 bars from the Pivot= 20 , whereas the Number Searcher finds 2 Pivots (set to Pivot = 20) that are 144 Bars apart.

    The following chart shows the Pivot = 20 Labels, the Number Search set for 144 Bars/Pivot 20 and the ShowBars from your script and.

    Note: that on the market displayed there are no results from the Number Searcher.

    20190708 144 Bar Scan - Number Seacher Ticket #53967

    The next screenshot shows the Pivot Labels =11, the Number Searcher Pivot Label Properties > Min Pivot = 11 and your script set for Pivot = 11:

    20190708 144 Bar Scan - Number Seacher, Pivot 11 Ticket #53967

    Make sure that your Script, the Number Searcher and Pivot Label tools are all set to the same Pivot value.





    • Topics: 21
    • Replies: 18
    • Posts: 39


    Thanks for the explaination

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

Pin It on Pinterest

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.