jsatt11 |
Gold User, Member, TeleChart
|
Registered User |
|
|
|
|
Unsure |
|
Monday, November 26, 2007 |
Friday, February 3, 2017 1:56:41 PM |
116 [0.04% of all post / 0.02 posts per day] |
|
Bruce,
Thanks for the SF real code for the passband filter indeicator. I created it and it looks like the chart in Ehlers article. I then created the +RMS and -RMS indicators and on each one got complie error on:
Name SPF not declared
Not being a programmer I don't know how to fix this.
Jim
|
Would you please write this as a real code indicator for SF5?
Thanks Jim
-----------------------------------------------------------------------------------------------------
QUOTE (hotrod)
july 2016 - Super Passband Filter Stocks and commodities mag.
can you write this indicator as an PCF please for TC2000
//Super Passband Filter
// 2016 John F. Ehlers
// TASC JUL 2016
inputs:
Period1( 40 ),
Period2( 60 ) ;
variables:
a1( 0 ),
a2( 0 ),
PB( 0 ),
count( 0 ),
RMS( 0 ) ;
a1 = 5 / Period1 ;
a2 = 5 / Period2 ;
PB = (a1 - a2) * Close + (a2*(1 - a1) - a1 * (1 - a2))
* Close[1] + ((1 - a1) + (1 - a2))*PB[1] - (1 - a1)
* (1 - a2)*PB[2] ;
RMS = 0;
for count = 0 to 49
begin
RMS = RMS + PB[count]*PB[count] ;
end ;
RMS = SquareRoot( RMS / 50 ) ;
Plot1( PB, "Super PB" ) ;
Plot2( 0, "Zero Line" ) ;
Plot3( RMS, "+RMB" ) ;
Plot7(-RMS, "-RMS" ) ;
|
Bruce,
I see how to do it now.
As usual thanks for your fast and professional support.
Jim
|
O.K. I'm not very familiar with Block Diagrams. If I wanted to change the EMA period for some testing could I easily change the Block Diagram.?
|
Bruce,
O.K. I understand The EMA is in the RealCode Indicator you attached and I am running.
I am unable to get the 'Edit Realcode' foryour HHS and LLS indicator.
Any idea why I can't edit it?
|
Sorry for the added Topic but I had problem doing a reply (I'll report to support)
Bruce, I didn't make my last post clear. I did load your attachement and am running it. You commented in your post that:
But I'm pretty sure you would need to apply 20 period exponential moving averages to these to get the desired plots.
It appears to me that your attachment doesn't use the EMA. True? And I don't know how to change it to EMA.
|
QUOTE (Bruce_L)
The first formula could be written as follows.
'|******************************************************************'|*** StockFinder RealCode Indicator - Version 5.0 www.worden.com '|*** Copy and paste this header and code into StockFinder *********'|*** Indicator:HHS'|******************************************************************If CurrentIndex >= 20 Then If Price.High > Price.High(1) Then Plot = 100 * (Price.High - Price.MinHigh(20)) / (Price.MaxHigh(20) - Price.MinHigh(20)) Else Plot = 0 End IfElse Plot = Single.NaNEnd If
And the second formula could be written as follows.
'|******************************************************************'|*** StockFinder RealCode Indicator - Version 5.0 www.worden.com '|*** Copy and paste this header and code into StockFinder *********'|*** Indicator:LLS'|******************************************************************If CurrentIndex >= 20 Then If Price.Low < Price.Low(1) Then Plot = 100 * (Price.MaxLow(20) - Price.Low) / (Price.MaxLow(20) - Price.MinLow(20)) Else Plot = 0 End IfElse Plot = Single.NaNEnd If
But I'm pretty sure you would need to apply 20 period exponential moving averages to these to get the desired plots. I'll make an indicator which plots HHS with the moving average applied along with the red, yellow and green lines in a bit.
Bruce Thanks...the tc200 indicator by Patrick Argo did indeed use the exponential average. I'm not sure how to do this for your indicator.
|
Recently a S&C Feb 2016 Traders Tip was published for TC2000 Article Higher Highs and Higher Lows.
I'm using this in TC2000 and need help for the Real Code conversion.
The HHS is:
100 * ABS(H > H1) * (H - MINH20) / (MAXH20 - MINH20)
The LLS is:
100 * ABS(L < L1) * (MAXL20 - L) / (MAXL20 - MINL20)
Thanking you in advance.
Jim
|
Bruce,
It looks like it is working. Thanks! Now on to more testing.
Jim
|
Bruce,
I created the 3 indicators and created a condition per below.
'# MIH = chart.MyIndicatorHO
'# MIO = chart.MyIndicatorOL
'# MIH = chart.MyIndicatorHC
If MIH.value = 1 AndAlso MIO.value = 2 AndAlso MIH.value = 3 Then pass
But got same error:
"Protected ReadOnly Property MIH() as WBI CommonBlocks ScriptingLine' has multiple definitions with identicle signatures."
|
|