glgene 616 posts msg #96564 - Ignore glgene |
9/26/2010 1:15:04 AM
A friend of mine recently signed up for SF, and in talking with him, he would like to see a sample script that shows price divergence from an indicator.
So I chose Price and MACD. I'm only at the 101 level in SF scripting, so I would appreciate any assistance in improving the sample divergence script below. Maybe this was a bad week for divergences, or ?:
|
Kevin_in_GA 4,599 posts msg #96565 - Ignore Kevin_in_GA |
9/26/2010 10:12:48 AM
We recently asked for (and received) a divergence function:
http://forums.stockfetcher.com/sfforums/?q=view&fid=1001&tid=95123&qrid=
We have created two new functions:
SfPosDiv(ind1, ind2, period, pctChg)
SfNegDiv(ind1, ind2, period, pctChg)
--------------------------------------------------------------------------------
Note: these functions are part of a new feature that allows for custom user defined functions. In essence these functions are based on the exact code you specified.
While we do not have a release date for opening up this feature, we are hoping to allow custom user functions in the near future. You'll also notice the legends on the charts are somewhat lengthy, we hope to fix that with future updates to the user-defined functions feature.
--------------------------------------------------------------------------------
Examples:
Kevin
|