Bruce,
Do you know the formula for VST in TC?
Does the indicator adjust when price makes a Higher High or Higher Closing High

Are there any abbreviations in TC for Stochastics or MACD like how we can write ATR for average true range?

opps I posted by accident again

How do I plot the Lowest value of a 22 Day ATR over the last 30 days
Just like how MINL30 will plot the lowest low in the last 30 days I want to plot the lowest value of the 22 day ATR in the last 30 days
Can I do something similar to MINLATR22 (Over the last 30 days)

How do I plot the Lowest value of a 22 Day ATR over the last 30 days
Just like how MINL30 will plot the lowest low in the last 30 days I want to plot the lowest value of the 22 day ATR in the last 30 days
Can I do something similar to MINLATR22.30

I feel like this is the concept that will do it. I just have to extended this to 50 days or 100 days back.
Am I correct or you have othe ways of doing it
IIF(H >= MAXH63, ATR22, IIF(H.1 >= MAXH63.1, ATR22.1, IIF(H.2 >= MAXH63.2, ATR22.2, 0)))

I got the above to work thank you!
Bruce can this be written in PCF for TC?
This is plotting the 22 day ATR measured in Simple MA when price makes a 63 day high. So if today price makes a 63 day high the RC will plot ATR22 and continue to plot that same value until the next 63 day high
'# HighPeriod = UserInput.Integer = 63
'# ATRperiod = UserInput.Integer = 22
'# Cumulative
Static Max As Single
Static HC1 As Integer
Static Sum As Single
Static ATR As Single
Static ATRstored As Single
If CurrentIndex = 0 Then
ATRstored = Single.NaN
End If
If CurrentIndex = 0 Or Price.High > Max Then
Max = Price.High
HC1 = 1
Else If Max = Price.High Then
HC1 += 1
End If
If CurrentIndex >= HighPeriod Then
If Price.High(HighPeriod) = Max Then HC1 = 1
If HC1 = 0 Then
Max = Price.High(HighPeriod  1)
HC1 = 1
For i As Integer = HighPeriod  2 To 0 Step 1
If Price.High(i) > Max Then
Max = Price.High(i)
HC1 = 1
Else If Price.High(i) = Max Then
HC1 += 1
End If
Next
End If
End If
If CurrentIndex > 0 Then
Sum += System.Math.Max(Price.High, Price.Last(1))  _
System.Math.Min(Price.Low, Price.Last(1))
Else
Sum = Price.High  Price.Low
End If
If CurrentIndex >= ATRperiod Then
If CurrentIndex > ATRperiod Then
Sum = System.Math.Max(Price.High(ATRperiod), Price.Last(ATRperiod + 1))  _
System.Math.Min(Price.Low(ATRperiod), Price.Last(ATRperiod + 1))
Else
Sum = Price.High(ATRperiod)  Price.Low(ATRperiod)
End If
ATR = SUM / ATRperiod
Else
ATR = SUM / (CurrentIndex + 1)
End If
If Price.High = Max Then
ATRstored = ATR
End If
Plot = ATRstored

I'll play with it but the only diff between the two is one is measuring ATR in Wilder smoothing while the other is using ATR in Simple MA
Since in TC ATR is measured in Simple MA I am trying to get what I use in SF to match TC

Thanks
In the RC above ATR is being measured with Wilders smoothing can you pls show me how to adjust this so that it uses simple MA like TC
