♥ 0 |
Here is the script below that I would like to set a scan for when the stock is on an uptrend and then another scan for when the stock is in a downtrend. Is this even possible? input price = close; assert(reversalAmount > 0, “‘reversal amount’ should be positive: ” + reversalAmount); plot “ZZ%” = reference ZigZagHighLow(price, price, reversalAmount, 0, 1, 0); def zzSave = if !IsNaN(“ZZ%”) then price else getValue(zzSave, 1); “ZZ%”.EnableApproximation(); DefineGlobalColor(“Unconfirmed”, Color.DARK_ORANGE); def barNumber = barNumber(); AddChartBubble(showBubbles and !IsNaN(“ZZ%”) and barNumber != 1, price, round(chg) + “%”, if !isConf then globalColor(“Unconfirmed”) else if isUp then globalColor(“Up”) else globalColor(“Down”), isUp);
Marked as spam
|
Please log in to post questions.