| Trading Indicators Post your custom trading indicators. If you download, remember to click INSTALL. |
![]() | | Tweet | |
XCAP_iPolyCycle Details »» | ||||||||||||||||||||||||||||||
XCAP_iPolyCycle Quote:
![]() Note: This indicator was written in EasyLanguage. Please refer to your users manual for importation instructions. Your comments and rating of this indicator is appreciated. Download Now
Show Your Support
| ||||||||||||||||||||||||||||||
| ∧ Similar Indicator | ||||
| Mod | Developer | Type | Replies | Last Post |
| XCAP IPolyFit | Tams | Trading Indicators | 3 | 11:14 AM 10-31-2009 |
| XCAP IPolyFitPredict | Tams | Trading Indicators | 3 | 06:12 AM 11-07-2009 |
| The Following 5 Users Say Thank You to Tams For This Useful Post: | ||
aaa (11-01-2009), MidKnight (10-31-2009), sacmax (03-14-2010), TIKITRADER (10-31-2009), whipsaw (01-20-2010) | ||
| Comments |
| | #2 | ||
![]() | Re: XCAP_iPolyCycle XCAP IPolyFitPredict http://www.traderslaboratory.com/for...dict-7056.html XCAP IPolyFit http://www.traderslaboratory.com/for...yfit-7039.html
__________________ Only an idiot would reply to a stupid post | ||
| |
|
| The Following User Says Thank You to Tams For This Useful Post: | ||
ajax358 (01-16-2010) | ||
| | #3 | ||
![]() | Re: XCAP_iPolyCycle | ||
| |
|
| | #4 | ||
![]() | Re: XCAP_iPolyCycle Inputs: Series((h+l)/2), Length(17), // Length = 2*Width+1, the minimum is 17 bars Degree(4), // 0 <= Degree <= 2*Width+1, default is 4, 4 DOF for 17 bars ShowDataAndFit(FALSE), //Shows data and fit of the data last bar only ShowAnalyticSignal(FALSE) , //Shows the signal between the ShowPhaseShift(FALSE), //Shows the PhaseShift for the last bar ShowPeriod(FALSE), //Shows the number of bars required to Phase Shift a half and a full period ShowRelativeStrength(TRUE ); //Show the relative strengh of the current bar w.r.t. a full period (+ calculation lag). Variables: HilbertWidth(7), // Must be an odd number. 1,3,5,7,9, ... less than or equal to Width = floor(Length-1)/2) pi(3.141592653589793), //close enough Width(floor((Length-1)/2)); // Variables: DC(0), EarliestWidth(0), LeadingCycleEdge(0), LeadingSignalEdge(0), LeadingHilbertEdge(0), p(0),j(0),k(0), DataSize(2*Width+1), T1(0),T2(0),//TransferMatrix PhaseShift(0), HalfPeriod(0),Period(0), Max(0),Min(0), RelativeStrength(0); Arrays: Polynomial[](0), Coefficient[](0), Cycle[](0), Signal[](0), Hilbert[](0), HilbertTransform[](0), SignalTransform[](0); if barnumber = 1 then begin //Allocate memory for the arrays. Polynomial is a 2D array Array_SetMaxIndex(Polynom ial, DataSize*(Degree+1)+1); Array_SetMaxIndex(Coeffic ient, Degree+1); Array_SetMaxIndex(Cycle, DataSize); Array_SetMaxIndex(Signal, DataSize); Array_SetMaxIndex(Hilbert , DataSize); //We are going to make the analytic signal of the time series with the transforms below: Array_SetMaxIndex(Hilbert Transform, 2*HilbertWidth+1); Array_SetMaxIndex(SignalT ransform,2*HilbertWidth+1 ); //Create the Dicrete Hilbert Transform Filter, normalized to a step function (the last being my idea) for k = -HilbertWidth to HilbertWidth begin if mod(k,2) = 0 then HilbertTransform[HilbertWidth+k] = 0 else HilbertTransform[HilbertWidth+k] = 2/(pi*k); if k = 0 then SignalTransform[HilbertWidth+k] = 1 else SignalTransform[HilbertWidth+k] = 0; end; end; | ||
| |
|
| | #5 | ||
![]() | Re: XCAP_iPolyCycle | ||
| |
|
| | #6 | ||
![]() | Re: XCAP_iPolyCycle ![]() thx......ajax358 | ||
| |
|
| | #7 | ||
![]() | Re: XCAP_iPolyCycle Quote:
Open the attached Text file then: Ctrl-A Ctrl-C Create a new indicator in TS then: Ctrl-V This is not so hard, is it? | ||
| |
|
| | #8 | ||
![]() | Re: XCAP_iPolyCycle | ||
| |
|
![]() |
| Tags |
| polyfit, polynomial, regression |
| Thread Tools | |
| Help Others By Rating This Thread | |
| |