Implementation of the strong and weak indicators of the anchor section (specific code)

Source: Internet
Author: User

For more information about this indicator, see "Implementation of strong and weak indicators in the" tangle "section.

 

Brief Introduction:

Use a moving average consisting of 5, 13, 144,233, 34, 55, 89, and in the Fibonacci sequence.Average SystemThe system is used to establish a complete classification to determine the strength and sequence of the trend. The stock price is in the 9th category above all the moving averages, which is the strongest trend [Note: the strongest trend is not necessarily above the moving average, which is simplified here]; the stock price is the weakest trend below all the moving averages, the value range is 1st. The value range is from 2 to 8 categories based on the number of moving averages on the station.

 

 

Flush formula:

/* Winding strength */CNT: = 1; if (close> Ma (close, 5) CNT: = CNT + 1; if (close> Ma (close, 13) CNT: = CNT + 1; if (close> Ma (close, 21) CNT: = CNT + 1; if (close> Ma (close, 34 )) CNT: = CNT + 1; if (close> Ma (close, 55) CNT: = CNT + 1; if (close> Ma (close, 89) CNT: = CNT + 1; if (close> Ma (close, 144) CNT: = CNT + 1; if (close> Ma (close, 233) CNT: = CNT + 1; cbqr: CNT;/* 2014/7/17 via tangyikejun */

 

Great wisdom formula:

{Winding strength} variable: CNT = 1; variable: mova [10] = 1; mova [1]: = MA (close, 5 ); {5-day closing average} mova [2]: = MA (close, 13); mova [3]: = MA (close, 21); mova [4]: = MA (close, 34); mova [5]: = MA (close, 55); mova [6]: = MA (close, 89); mova [7]: = MA (close, 144); mova [8]: = MA (close, 233); begin CNT: = 1; for I = 1 to 8 doif (close> mova [I]) Then CNT: = CNT + 1; endcbqr: CNT; {2014/7/16 via tangyikejun };

 

You are welcome to leave a message and interact with each other!

 

Reprinted please indicate the source: http://www.cnblogs.com/tangyikejun/p/3854607.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.