Twitter Sector Outperformance

Hi Optuma team,

you have published on Twitter the following chart:

EkxMEnGX0AcZzLx

Is it possible that you make the workbook with the scripts available here in the forum?

Thank you very much for your great work,
Thomas

Hi Thomas,

I didn’t keep the workbook but here’s the formula for the number of days outperforming the index over the last 10 days:

// Is relative chart higher than yesterday?;
V1 = RIC() IsUp;
//Count true days out of last 10;
BARSTRUE(V1, LOOKBACK=10)

Consecutive days up:

DU(RIC())

Hi Darren,

many thanks for the scripts. The “DU” function was new for me.

Thomas

Hi Darren,

last question about this topic. Am I right that the script for the “Outperform SPX” is:

//Outperform SPX
RIC() > RIC()[1]

Many thanks,
Thomas

Hi Darren,

what a stupid question from me. You have already answered this question in your post, it is the first script.

// Is relative chart higher than yesterday?;
V1 = RIC() IsUp;

No worries Thomas - both will work.