Close moving Average

Source: Internet
Author: User

Ma_days:=ma (CLOSE, days); {n-day average price}
R1:=if (((close/ma_days) <= (rate+1)), 1, 0);
R2:=if ((Dynainfo (4) >0), 1,0); {Reject Suspension Unit}
R3:=if (Namelike (' S '), 0, 1); {Reject St shares}
IF (R1 and R2 and R3), 1, 0);

Note:

Ma_days assignment: The days of the closing price simple moving average
R1 Assignment: if ((closing price/ma_days) <= (rate+1)), returns 1, otherwise returns 0
R2 Assignment: if (open price >0), returns 1, otherwise returns 0
R3 assignment: Returns 0 if fuzzy matches the symbol name, otherwise returns 1
if (R1ANDR2ANDR3), returns 1, otherwise returns 0

Close moving Average

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.