Several issues...
First, one cannot use the and operator with factors. Use & instead. Factors can only be manipulated with a small set of methods and operators (see the list here https://www.quantopian.com/help#quantopian_pipeline_factors_Factor ). Using the and operator doesn't generate an error which often makes this hard to catch. Seems like everything is working but it really isn't.
Second, the & operator has a higher precedence than the comparison operators > and <. Put parenthesis around the factor comparisons to force python to evaluate those first. (see the python docs for info on precedence https://docs.python.org/3/reference/expressions.html#operator-precedence).
So, in the notebook replace the following:
SignalUp = (volume < (volume1/2) and close < close1 and close1 > close2 and close2 > close3 and close3 > close4 and close4 > close5 and close5 > close6 and close6 > close7 and close7 > close8 and close8 > close9 and close9 > close10 and close10 > close11 and close11 > close12 and close12 > close13 and close13 > close14)
With this. Notice the use of & instead of and and the parenthesis around any factor comparisons
SignalUp = ((volume < (volume1/2))
& (close < close1)
& (close1 > close2)
& (close2 > close3)
& (close3 > close4)
& (close4 > close5)
& (close5 > close6)
& (close6 > close7)
& (close7 > close8)
& (close8 > close9)
& (close9 > close10)
& (close10 > close11)
& (close11 > close12)
& (close12 > close13)
& (close13 > close14))
Attached is a notebook with these changes. Hope this helps.
Good luck.
Disclaimer
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by Quantopian. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. No information contained herein should be regarded as a suggestion to engage in or refrain from any investment-related course of action as none of Quantopian nor any of its affiliates is undertaking to provide investment advice, act as an adviser to any plan or entity subject to the Employee Retirement Income Security Act of 1974, as amended, individual retirement account or individual retirement annuity, or give advice in a fiduciary capacity with respect to the materials presented herein. If you are an individual retirement or other investor, contact your financial advisor or other fiduciary unrelated to Quantopian about whether any given investment idea, strategy, product or service described herein may be appropriate for your circumstances. All investments involve risk, including loss of principal. Quantopian makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances.