TradingView
pipCharlie
Oct 16, 2014 3:24 AM

Chandelier Stop 

Euro Fx/Canadian DollarFXCM

Description

A modified verion of the Chande & Kroll's Stop indicator.
Comments
Demiwright
How would you place an alert on this indicator, Trying to have one every time it changes color or direction.
amazedTortoise31020
@Demiwright, This, please. I havent figured out how to set this alert. Is it even possible?
Inerti4
@amazedTortoise31020, @Demiwright Simply add an alert condition to the end of the script with "longswitch" and "shortswitch". Like this :

alertcondition(longswitch, title = "Long Signal")
alertcondition(shortswitch, title = "Short Signal")
Lucb711
@Inerti4, I am not seeing the option to add "longswitch" or "shortswitch" when I go into alerts
Traderfox_in
What does the change in coloraturas signify?
lasresen
Is this the same Rayner Teo uses?
ChrisMoody
pipCharlie...

you may or may not care but a lot of people aren't aware of the linebr option as a plot. It gets rid of the line that connects from the True/False condition. Gives you the benefit of using a line...but not a continuous line. See chart below.

I changed the 3rd to last line that said pc=direction... to:

pcup=direction>0?longvs : na
pcdn=direction<0?shortvs : na

plot(pcup, color=aqua, style=circles, linewidth=2)
plot(pcup, color=aqua, style=linebr, linewidth=2)

plot(pcdn, color=fuchsia, style=circles, linewidth=2)
plot(pcdn, color=fuchsia, style=linebr, linewidth=2)

pipCharlie
AWESOME!! Thanks Chris now it looks exactly how I wanted it.
If you ever get an opportunity, I'd love to see an MTF version. I haven't learned how to do that yet.
ChrisMoody
No problem...it's a lot cleaner that way.

You probably know how to do this already. But I have a similar code that Paints the bars when they change direction, ability to turn on off Long or short side, plot background highlights on the reversals...etc. I try to throw in about every option available per indicator so people can see what the capabilities are. If you want to check it out and see if there is anything you would want to use ... tradingview.com/v/ngO3BO37/
pipCharlie
I definitely will. Thanks again for you assistance, your generosity is greatly appreciated.
More