TradingView
capissimo
2019년 8월 26일 오후 11시 11분

PPO Divergence and Aggregate Signal Combo 

Euro / U.S. DollarFOREX.com

설명

This is a further development of the last two posts on aggregated signal generation. It shows how to implement the idea in conjunction with another indicator. In this case general rule for long and short entry: the aggregated curve (gray) must cross the mid-line. Colored columns serve as an early warning. Settings were tested with EURUSD in 5m, 30m and 1H TFs.

릴리즈 노트

Minor fix connected with a scaling function.
코멘트
Docop1
Seriously... Thanks for your work. Very clear code, nice indication. Very great.
capissimo
@Docop1, thx)
capissimo
UPD: this line seems to produce better results:
fast = 5 //timeframe.multiplier<=5 ? 5 : timeframe.multiplier
capissimo
may as well be declared in the Inputs section
samdoug911
@capissimo, Does it repaint?
capissimo
@samdoug911, according to this article (tradingview.com/script/cyPWY96u-How-to-avoid-repainting-when-using-security-PineCoders-FAQ/), since the script does not use security function in the form security(..., ..., price, ..., ...), where price is any CURRENT price in the form close or hl2 or hlc3, etc., it does not repaint.
capissimo
@samdoug911, by the way, repainting is a dubious term. It may stand for the situation when the indicator changes its display configuration after refreshing it. And this is exactly what I mean.
CodyMaki
@capissimo, repainting really only matters if your creating a bot other than that if a indicator repaints then so what i have used indicators of all types and when they repaint it really wasnt a big deal and as well using just one indicator usually isnt all the best way its better have confluence with use of other indicators and pirce action thanks for creating this indicator happy new year 2022
capissimo
@samdoug911, the other meaning is an occasional appearance and disappearance of a signal, which depends upon the current bar.
capissimo
@samdoug911, see section 'How to avoid repainting when NOT using the security() function?' here pinecoders.com/faq_and_code/.
In other words, it repaints because the script does not use previous value of the price.
더보기