For those that have thinkorswim, here is the code for my Berkshire ratio indicator, indicator value of 7 is a buy point. Enjoy!
input length = 50;
def Vol = volume;
def VolAvg = Average(volume, length);
Def A = close;
Def B = close("BRK/B");
def V = close("VIX");
Plot ind= if(spread>1510,1,0)+if(v>v,1,0)+if(close<open,1,0)+if((vol>volavg*2),1,0)+if(volume>volume,1,0)+if(low<low,1,0)+if(high<high,1,0);