♥ 0 |
Hi Pete, Is there a way to simplify my custom script below? If not, is there a way to ignore the rest of the statements if one of the first few statement is already true? Basically, i am trying to write an indicator that i will eventually convert into my column watchlist and scanner to look for a price breakout below LOW if it has PPS Buy and above HIGH if it has PPS Sell. I have attached a picture to help me with my question. Thanks. plot Bull = (PPS().”SellSignal” [1] is true and close >= high [1]) or (PPS().”SellSignal” [2] is true and close >= high [2]) or (PPS().”SellSignal” [3] is true and close >= high [3]) or (PPS().”SellSignal” [4] is true and close >= high [4]) or (PPS().”SellSignal” [5] is true and close >= high [5]) or (PPS().”SellSignal” [6] is true and close >= high [6]) or (PPS().”SellSignal” [7] is true and close >= high [7]) or (PPS().”SellSignal” [8] is true and close >= high [8]) ; plot Bear = (PPS().”BuySignal” [1] is true and close <= low [1]) or (PPS().”BuySignal” [2] is true and close <= low [2]) or (PPS().”BuySignal” [3] is true and close <= low [3]) or (PPS().”BuySignal” [4] is true and close <= low [4]) or (PPS().”BuySignal” [5] is true and close <= low [5]) or (PPS().”BuySignal” [6] is true and close <= low [6]) or (PPS().”BuySignal” [7] is true and close <= low [7]) or (PPS().”BuySignal” [8] is true and close <= low [8]) ;
Marked as spam
|
Please log in to post questions.