#### BenTen

##### Administrative

**Staff**

**VIP**

**Warehouse**

### thinkScript Code

Code:

```
# Actionable Daily Historical Volatility
# Assembled by BenTen at useThinkScript.com
# Converted from https://www.tradingview.com/script/141g43Qm/
declare lower;
# Historical Volatility 10 day
def HV = stdev(log(close / close[1]), 10) * sqrt(365) * 100;
# Historical Volatility 100 day
def HV1 = stdev(log(close / close[1]), 100) * sqrt(365) * 100;
assignPriceColor(if HV>HV1 and HV[1]<HV1[1] then Color.Green else if HV<HV1 and HV[1]> HV1[1] then Color.Red else Color.White);
plot tenHV = HV;
plot HundredHV = HV1;
tenHV.SetDefaultColor(GetColor(1));
HundredHV.SetDefaultColor(GetColor(0));
```