TradingView
some1o1
30 авг 2016 г., 21:54

Doji signals 

Gold/U.S. DollarFXCM

Описание

You can create an alert based on this signal :)
Works on standard and Heikin-ashi candles
You can also adjust the sensitivity (how big you want the body of the doji)
:)
Комментарии
dave.seremek
Very nice. How do you create and alert?
chandrapal2
ALERT IS NOT WORKING IS THERE ANY OTHER WAY FOR GETTING ALERT
istek7
hi how we alert if ( doji - doji next candle if geen bull ? if red bearish ? can you help me
some1o1
I posted this while back, sadly i dont think its of any value since you cant create a consistent alert and the doji itself dose not represent the real price
Erik10
This version is adjusted for Pine script 5, the alert works with it. Choose the chart and time frame (one minute?) you want, right-click on the doji-signals pane of the chart. Choose add alert on DS, choose crossing, value 1, once per bar, play sound, create.

A big thanks to the original author :D

//@version=5
//Doji signals

indicator(title='Doji signals', shorttitle='DS', timeframe='', format=format.volume)

Precision = input.float(0.15, minval=0.0001, title="Doji's Max Body size")
barcolor(math.abs(open - close) <= (high - low) * Precision ? color.yellow : na)

doji=(math.abs(open - close) <= (high - low) * Precision ? 1:0)

plot (doji)
Erik10
If you only want to hear a signal when a doji appears at the end of e.g. a minute, but not when it appears during this period, then choose instead of once per bar: once per bar close.
Erik10
The ", format=format.volume" text in the code can be omitted.
CompoundTraders
Great script great visuals on the screen.
istek7
and may can you add spining top ?
severt
Hey, great work! But how about these 2: screencast.com/t/iAJppN77rgnx
Ещё