tuckandturn |
Gold User, Member, TeleChart
|
Registered User |
|
|
|
|
Unsure |
|
Tuesday, June 30, 2009 |
Tuesday, January 31, 2012 8:41:14 PM |
57 [0.02% of all post / 0.01 posts per day] |
|
I was really hoping there was a way to do it, but was too much an idiot to see it.
Thanks for such a quick response Bruce.
Guess I will stick to the StockFinder version for now.
Doug
|
I would like to be able to plot the following in Telechart (ver 12), but I'm not sure if it can be done.
On a daily basis
a) Take the NYSE up volume
b) Take the NYSE down volume
Calculate the net of a - b above and call it NetVol
Calculate an 18 day EMA of NetVol with a .90 front load: call it EMA18
Calculate a 36 day EMA of NetVol with a .95 front load: call it EMA36
Plot = EMA18 - EMA36
I was able to do this in StockFinder using the RealCode provided below, but would like to able to migrate over to Telechart.
'##################################
' variable for UpVol
'# PfS = chart.PriceforSymbol.3
' variable for DownVol
'# PfS1 = chart.PriceforSymbol.2
Dim NetVol As Single
Static weight18Day As Single
Static weight36Day As Single
Static EMA18Day As Single
Static EMA36Day As Single
weight18Day = 0.90
weight36Day = 0.95
NetVol = (PfS.value / 10) - (PfS1.value / 10)
If Me.isFirstBar Then
EMA18Day = NetVol
EMA36Day = NetVol
Else
EMA18Day = (EMA18Day * .9) + (NetVol * .10)
EMA36Day = (EMA36Day * Weight36Day) + ((1 - Weight36Day) * NetVol)
Plot = EMA18Day - EMA36Day
End If
'#######################################
Any help would be greatly appreciated.
Doug
|
This was very useful - thaks Bruce!
Doug
|
Hmm - recopied the source code a couple of times and the error messages went away.
The indicator now works off the condition and the results are plotted.
Just need to verify my results.
Thanks Bruce!
|
Oops - that would make a difference. :(
However, when I create it as a condition instead - the interpreter barks at the "period" definition. Do I need to create a "Dim Period as single" or something like that?
|
Now that's weird - I receive a compiler error on the "Pass" command.
Says "Name 'Pass' is not recongized."
|
Hi Bruce,
Thanks for your response.
With regards to the indicator "Count Percent New Highs Indicator" what is the denominator for the calculation? Is it for all instruments in the watchlist/exchange or all instruments that were actually traded in the watchlist/exchange. I was unable to tell from the Stockfinder Help.
Thanks,
Doug
|
I wish to create an indicator that does the following in StockFinder:
Count of new daily 52 week highs in price / count of number of isssues traded for whatever given watch list or exchange I have specificed
Any suggestions would be greatly appreciated.
Doug
|
plumgee:
Interesting......while the percent scale gives a different numeric result than Relative Strength, the shape of the indicator resulsts are the same, plus as you pointed out, you can have more than one.
Thanks for the heads up!
|
Oh I get it - that should do the trick, epsecially since I only really need end of day data.
Thanks!
|
|