New version 18 available now


Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Profile: thnkbigr
About
User Name: thnkbigr
Groups: Member, Platinum User, TeleChart
Rank: Registered User
Real Name:
Location
Occupation:
Interests:
Gender: Unsure
Statistics
Joined: Friday, March 31, 2006
Last Visit: Sunday, October 21, 2018 5:21:47 PM
Number of Posts: 3,131
[1.07% of all post / 0.68 posts per day]
Avatar
Last 10 Posts
Topic: VST in TC
Posted: Sunday, October 21, 2018 4:07:30 PM

Bruce, 

Do you know the formula for VST in TC?

Does the indicator adjust when price makes a Higher High or Higher Closing High  

Topic: Abbreviations in TC
Posted: Sunday, October 21, 2018 10:44:53 AM

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

Topic: DD count
Posted: Friday, October 19, 2018 10:42:18 AM

opps I posted by accident again 

Topic: DD count
Posted: Friday, October 19, 2018 10:41:10 AM

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) 

 

Topic: DD count
Posted: Friday, October 19, 2018 10:29:14 AM

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

Topic: DD count
Posted: Friday, October 19, 2018 9:15:05 AM

Thank you!

Topic: DD count
Posted: Thursday, October 18, 2018 3:49:28 PM

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)))

Topic: DD count
Posted: Thursday, October 18, 2018 3:04:38 PM

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
Topic: DD count
Posted: Thursday, October 18, 2018 12:53:57 AM

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 

Topic: DD count
Posted: Wednesday, October 17, 2018 10:06:19 AM

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