This week we create automatic time counts in Optuma with Scripting to copy and paste…this report is for non members, there is a more advanced report with more techniques in the Trading DNA members only section. For more information on the Trading DNA video series please see the webpage here: Click here to go to Trading DNA info pageClick here for Trading DNA info page

Maj Hi

// This script finds the major High turning points on a chart to start time counts from
PivotHi = PIVOT(MIN=15, DIR=Both, TYPE=High);

PivotHi

Maj Lows

// This will find major Low turning points
PivotLo = PIVOT(MIN=15, TYPE=Low, DIR=Both);
PivotLo <0

NB: A common error is occurring in the step when creating the following 144 Pivot Search:

When you complete the Count script, you must make sure in the first line of your Count script ( Scriptname = Maj Lows) the spelling of the Pivot script is exactly the same as the spelling of the Pivot script created  above otherwise you will not get the blue arrows in your chart. The graphic below demonstrates where a common error is occurring…A space between Maj Hi ( in the Count script) is not the same as MajHi script in the Pivot script ( no space between Maj and Hi, so Maj Hi is not equal to MajHi ).
Script typos prevent code from giving results.

Find 144 Trading Days from Maj Lows

//This finds 144 trading days from the Maj Low script. Charts must be bars only, no filters for Cal days or holidays etc…
Tpoint = SCRIPT(SCRIPTNAME=Maj Lows);
TSignal = IF(Tpoint > 0, 1, 0);
Find = OFFSET(Tsignal,OFFSET=144);

Find

Find 144 Calendar Days from Major Lows

//This finds 144 trading days from the Maj Low script. Charts must be bars only, no filters for Cal days or holidays etc…100 Tdays is equal to 144 C days
Tpoint = SCRIPT(SCRIPTNAME=Maj Lows);
TSignal = IF(Tpoint > 0, 1, 0);
Find = OFFSET(Tsignal,, OFFSET=100);

Find

Find 144 Days from Major Hi

//This finds 144 trading days from the Maj High script. Charts must be bars only, no filters for Cal days or holidays etc…
Tpoint = SCRIPT(SCRIPTNAME=Maj Hi);
TSignal = IF(Tpoint > 0, 1, 0);
Find = OFFSET(Tsignal,, OFFSET=144);

Find

Find 144 Calendar Days from Major Hi

//This finds 144 trading days from the Maj Hi script. Charts must be bars only, no filters for Cal days or holidays etc…100 Tdays is equal to 144 C days
Tpoint = SCRIPT(SCRIPTNAME=Maj Hi);
TSignal = IF(Tpoint > 0, 1, 0);
Find = OFFSET(Tsignal,, OFFSET=100);

Find

3 thoughts on “Optuma Scripting for 144 counts- Non DNA members

  1. Andrew H says:

    Super video guys thanks for compiling – a few quick questions:

    a) Is there a way that the arrows illustrating a time count can display on the chart beyond todays date (where there is no price data yet) so I know that a time count from a Major High or Major Low is coming up ?
    b) Is there a way to identify only where a time count equals another Major High or Major Low date ?
    c) If you plot two (or more) time counts eg 144 and 365 on the one chart, is there a way to identify only where two counts fall within say 3 days of one another AND either a Major High or Major Low ?

  2. alan says:

    Hi Andrew,

    I have had a few similar emails with respect to time counts ahead of time, the best workaround to date is as follows:

    The Show Bar does not have the ability to count ahead because it counts the bars, however the Show View tools does.

    The way it would work is that rather than setting the offset in the script, you would use the main Pivot script for Hi / Low, then you would set the offset in the tools properties directly.
    With the Show View you can also hide the entire view via the Structures panel, so that it doesn’t take up any chart space when you’re not wanting to see it.

    I have attached a workbook you can put in your Optuma and see exactly how the properties work etc…

    You could run the ShowBar for the Major High date and a time count Show View below. One thing to remember is that the Pivot which creates a Top or Low requires 3 bars, that is a bar, a lower bar and then a higher bar afterwards which must agree with the Pivot time you are searching for.

    The only way I know at present to find several counts close to each other is to use Showbar on the chart and visually spot this. Otherwise, you could run a scan for one count, save the results and then run scan for the other count on the previously saved results.

    Or, you could create a couple of Show View windows and look for the results to line up.

    Hope this helps,

    Attachment

Leave a Reply

Your email address will not be published. Required fields are marked *