Twitter Charts 3

Hi Optuma team,

you posted on Twitter a chart with the sector weights ( https://twitter.com/Optuma/status/1661135632633331712?cxt=HHwWgIDUrdGDxY0uAAAA ).

Here is the chart:
Fw2J3ABaMAA5yYS

I use Optuma v2.1 Beta Build 97 and so I am able to get the sector weights.

The scripts for the sector weights are easy ( https://help.optuma.com/kb/faq.php?id=1269 ).

What causes me problems to replicate is the issue that you have empty cells when a stock is not a member of the sector. In my script I get for the stocks that are not members of a sector the value “0.00”.

I tried the following script to get empty cells for non-members but failed:

Line1 = ISMEMBER(SYMBOLLIST=NASDAQ 100) ; 
Line2 = WEIGHT(SYMBOLLIST=QQQ - Invesco QQQ Trust) ; 
Line3 = IF(Line1 == 1, Line2, HIDDEN()) ; 
Line3

Please inform me what script you used to get empty cell values for non-members of a sector.

Best wishes,
Thomas

Hi Thomas - there’s a bit of a trick in the formatting of the columns. The script is simply WEIGHT(SYMBOLLIST=QQQ - Invesco QQQ Trust) and once added right-click on the column header and change the Column Type to Percentage. Under Custom Labels put a blank space for the label and set ==0 to white:

Capture

Thank you Darren,

A really nice trick with the blank space for the label. I have worked with the Custom Labels property but the idea of the blank space did not occur to me.

Perhaps a small improvement:
If you choose the colour black instead of white, the default row colour formatting in the watchlist is maintained.

Thanks,
Thomas

Hi Optuma-Team,

On Twitter (https://twitter.com/Optuma/status/1685098785444392960) you posted the following chart:
F2GEz_daUAET2fa

How did you script the horizontal dotted line corresponding to the current last value to go back only to the last occurrence that also corresponds to the current last value?

Thanks,
Thomas

Hi Thomas,

There was no scripting involved with those horizontal lines - I manually drew them on the charts!

1% moves: https://twitter.com/Optuma/status/1686868142323269640?s=20

Since +1% move in a Show View with Plot Style set to Dot:

C1 = CHANGE() >1;
TIMESINCESIGNAL(C1)

Since -1% move in another Show View:

C1 = CHANGE() <-1;
TIMESINCESIGNAL(C1)

Drag the bottom Show View layer into the first Show View using the Structure Panel and rename the layers:

Image

The bottom is similar with 2 Show Views counting the yearly totals. The formula for the number of +1% days using the ACCSINCESIGNAL() function when the YEARNUM() changes:

V1=CHANGE()>1;
V2=YEARNUM() IsUp;
ACCSINCESIGNAL(V1,V2)

1Pct Moves

Hi Darren,

Can you please publish here in the forum the workbook you have shown on Twitter (https://twitter.com/Optuma/status/1702083087956648304) or at least the scripts to count the days an item is making a relative high or low.

Many thanks,
Thomas

Hi Thomas,

Use the following to count how long since the RIC() value was this high:

D1=RIC();
TIMESINCESIGNAL(D1>LAST(D1), Unit=Bars)

Change the variable D1 to use any other indicator, eg Close, RSI, Volume. Change the sign in the TIMESINCESIGNAL function to find the low, eg today was the lowest volume in 13 days for TSLA (since August 25th). To show the date (change the Column Type to Date):

D1=VOL();
BARDATE((D1<LAST(D1), Unit=Bars))

Image

Hi Darren,

I was trying to recreate your signal on Nov - Dec results when the spx is under 200ma at the end of October… I got close results to yours, but different; curious what script you used? Here is what I did below and my screenshot is attached vs yours

//Start signal - enter trade at the close of last day of October 

a1 = MONTHNUM() ChangeTo 11; 

a2 = OFFSET(a1, OFFSET=-1); 

//Close is below 200ma 

b1 = MA(BARS=200, CALC=Close); 

b2 = CLOSE() < b1; 

a2 and b2




Hi Darren,

Could you please also publish the script from your Twitter analysis about the performance of Nov and Dec when Aug, Sept, and Oct have all been down.
https://twitter.com/Optuma/status/1719940509945434534

F950mJxaMAA-NSN

Thanks and best wishes,
Thomas

Hi Thomas,

Darren is currently out of the office this week, he will post the workbook and script once he has returned.

Jeff - This was a Trade Test (change the Test Mode from Signal) which requires the following Exit criteria for the end of the year or 43 days, whichever occurs first:

V1=MONTHNUM() ChangeTo 1;
V1[-1]

Thomas - this was also a Trade Test using the same exit criteria as above, and this as the entry:

V1=MONTHNUM() ChangeTo 11;
V2=V1 and MONTH()[1] IsDown and MONTH()[2] IsDown and MONTH()[3] IsDown;
V2[-1]

Hi Darren,

Could you please publish the script(s) from your Twitter analysis about the consecutive weeks.

Here is the Link:
https://twitter.com/Optuma/status/1733987620349468871

Especially the script for the numbers above and below the bars of the S&P 500.

Best wishes,
Thomas

Hi Thomas,

This uses the BARTYPES() function to define higher highs and lows (regardless of close): https://www.optuma.com/kb/optuma/scripting/formulas-and-scripting-functions/bartypes-function

Set the Show Bar to display as a number and use the following on a weekly chart to count the number of consecutive higher bars:

//Set BarType;
V1=BARTYPES(DEFAULT=Higher);
//Count since V1 was false;
TIMESINCESIGNAL(V1==0)

Change V1 to use Lower bars for the red numbers.

Hi- would you mind sharing the scripts you used for this post: https://x.com/Optuma/status/1737277429679591590?s=20

Hi Christopher,

I drew vertical lines for the changes in the Fed Funds rate data from FRED using the dates found here: https://www.bankrate.com/banking/federal-reserve/history-of-federal-funds-rate/

For the Signal Test I just hard-coded those dates using the following:

BARDATE()==STRDATE(DATE=1981-08-03) or 
BARDATE()==STRDATE(DATE=1984-08-30) or
BARDATE()==STRDATE(DATE=1989-06-05) or
BARDATE()==STRDATE(DATE=1995-07-05) or
BARDATE()==STRDATE(DATE=1998-09-29) or
BARDATE()==STRDATE(DATE=2001-01-03) or 
BARDATE()==STRDATE(DATE=2007-09-18) or 
BARDATE()==STRDATE(DATE=2019-07-30)

Hi Darren,

Could you please publish the scripts from your Twitter analysis about % Outperforming SPX.

Here is the Link:
https://twitter.com/Optuma/status/1754845395078050286

Here is the chart:

Best wishes,
Thomas

Hi Darren,

You have already answered my question a few year ago! I should be ashamed of myself. :face_with_open_eyes_and_hand_over_mouth:

Here is your answer from Sep 2021:
Twitter Charts - #15 by DEJHMA8

Thanks,
Thomas

Hi,

Could you share scripts related to this post Feb 19 related to GoNoGo charts. It would be interesting to observe this in the future.

https://twitter.com/Optuma/status/1759405434392498634

Regards, Pentti Rahko

Hi Pentti,

The GoNoGo tools used to calculate the data are an optional add-on module for $125 a month. To learn more see here:

To build the statistics on the % of members with a Go status also requires the Custom Breadth module, which is available with Enterprise Services, or another tool module purchase:

Please contact support if you would like to purchase these modules.