♥ 0 |
I am trying to make the TTM_ScalperAlert more apparent in my watchlist when it fires. This is what I am running, def AlertSig = if (ttm_ScalperAlert().pivotlow[3]) then 1 else 0; plot thing = alertsig; addlabel(1,AlertSig ,Color.white); AssignBackgroundColor(if alertsig >0 then color.DARK_GREEN else color.black); No matter what I try, it never changes the background. It doesn’t even evaluate the else statement. I do see a 1 printed in the watchlist when the Scalper Alert has fired within the selected period. Ideally, I would have liked to define, def AlertSig = if (ttm_ScalperAlert().pivotlow[3]) then 1 else 0; The compiler throws an exception indicating it might not be reliable with realtime data. Anyway to tell TOS I understand it may have issues, but let me use the script as written? Thanks for the site and putting out examples. Been very helpful, Cheers
Marked as spam
|
Private answer
As a follow up, I was watching a chart when a the PPSbuy indicator was being painted. I think it was 8 bars back that the TTMScalper was also being painted. I was under the impression that it would be only 3 bars behind before being painted. On a 5 minute chart, 40 minutes seems like a very stale indicator, though it explains why this indicator seems to work really well. Kind of like saying I should have bought a stock X days ago, because look at its price now. This indicator has been tossed now in my Watchlist. Marked as spam
|
|||||
Private answer
One quick search on the forum gives you the answer. I searched for the term “scalper” and came up with these two posts: https://www.hahn-tech.com/ans/how-to-add-audible-alertnotification-to-ttm-scalper-alert/ https://www.hahn-tech.com/ans/how-can-i-incorporate-the-ttm-scalper-signal-into-a-custom-scan/ The short answer is, we can’t get there from here. The TTM Scalper alert is NOT what is seems to be. There is some trickery involved, which makes it completely unfit for generating any sort of signals or alerts. Marked as spam
|
Please log in to post questions.
I have personally observed a range of 3-5 bars back for TTM Scalper. Glad you have come to realize it has no value whatsoever. Spread the word! Save others!