TradingView
brobear
4 พฤศจิกา 2018 เวลา 22 นาฬิกา 24 นาที

Auto High Low Fib-Moving 

Bitcoin / U.S. dollarBitstamp

คำอธิบาย

Auto detect highest/lowest price within a range of bars (user defined). The range slides forward in time as new bars appear in the chart.

Optionally add Fibonnaci Lines (retracement or extension).

See the comments at the beginning of the script for a complete description.

---------------------------
While there are several versions of this indicator in TradingView, this one adds some unique flexibility. And it's open source, so you can improve on it.
ความคิดเห็น
ashishpwr1
is it repainting ?
Whaleaccount
any chance to replace horizontal lines with horizontal rays? Horizontal lines go too back in history to infinity and interferes with previous technical analysis lines. Would be so much better. Thanks! Good work
berkbuyukdurak
Brilliant! Thank you for sharing with us. I have some question though. I was trying to create an alert when the bar is closed but I couldn't manage it. Which parameter should I use for the alerts? I tried to use VertHLShow for alerts but I didn't understand the VertHLShow?red:na and green:na condition and I couldn't add it to the alertcondition. How can I manage that condition?
brobear
@berkbuyukdurak, add an alert to the chart (for example BTCUSD). Conditions: BTCUSD, Greater Than, Value, 0.0... Every Time. This will trigger an alert at the beginning of every candle... which is equivalent to the close, in markets that trade continuously. Here's another idea: reddit.com/r/TradingView/comments/kwufhb/alert_for_candle_close_interval_timer/
berkbuyukdurak
@brobear, So you're saying you watch every candle. Okey I am already doing it but for improving it, I thought when the Vertical lowest or vertical highest is finalized, it can give an alarm. I tried to change bgcolor and parameters a bit but offset is important. Maybe VertHLShow's value can be monitored? But, in the code, how do we also use offset for monitoring?
brobear
@berkbuyukdurak, I'm not sure I'm getting this right, but it sounds like your asking for is an alert when the high and/or low values change... is this correct?
If so, create an alert on the indicator. Conditions: HLFm, Highest (or Lowest), Moving Up, 1.0 in 1 Bar, Once per Bar...
or... in your own copy of this script, add a line for an alert condition, something like alertcondition(change(highBack)!=0, title='High Changing', message='HLFm High Changing')
Pinescripts are evaluated every bar. The highBack and lowBack values are calculated and stored for each bar. Also highOffset and lowOffset are calculated and stored for each bar, but these offset values are always changing.
berkbuyukdurak
@brobear, actually what I am saying is that when you look at the chart, vertical highest or lowest is finalized at some point. The vertical bars stops following the next bars. How can I create an alarm for this? Look at your chart at the very beginning. You said "Auto detection of highest price within range ...", so how can I create an alarm when this is happened?
I tried lots of your parameters but I am lost a bit :D

VertHLShow = VertHL ? (barstate.isrealtime and barstate.isconfirmed) ? false : barstate.islast ? true : false : false
bgcolor(color=VertHLShow?red:na, title="Vertical Highest", transp=60, offset=highOffset)
bgcolor(color=VertHLShow?green:na, title="Vertical Lowest", transp=60, offset=lowOffset)
This part finalizes the highest or lowest price right? So, how can I create an alarm from that?

Sorry for giving you a headache with my questions :)
JKinga
just ran into this, brilliant when going through a watchlist. i'm just going to ask 1 question, can i have the values of the different levels by their levels/??
brobear
@JKinga,
You can display the value of each level via Chart Properties -> Scales -> Indicator Last Value Label. Enable this option and the values will appear in the price column, next to the level.
Is this what your looking for?
JKinga
@brobear, yes. was would be very convenient! will keep trying it, thank you.
เพิ่มเติม