Registered User Joined: 1/16/2005 Posts: 72
|
Is it possible to plot a simple sine wave in Stockfinder? The purpose would be use it as a way to trend-adjust other indicators by doing a comparison plot of an indicator with a one-period MA of the sine wave which could then be user-adjusted via the offset parameters in the MA edit box.
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Maybe something like the following?
'|******************************************************************
'|*** StockFinder RealCode Indicator - Version 5.1 www.worden.com
'|*** Copy and paste this header and code into StockFinder *********
'|*** Indicator:Sine Wave
'|******************************************************************
'# Frequency = UserInput.Single = 0.05
Plot = Math.Sin(2 * Pi * Frequency * CurrentIndex)
The value of the above would be 0 at the first bar at the far left of the data and would have 20 bars from peak to peak (unless you changed the Frequency setting).
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
Registered User Joined: 1/16/2005 Posts: 72
|
Exactly like that. Thanks for the always excellent work.
-Bruce
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|