Indicator – Visual Heikin with signal for alert
Forums › ProRealTime English forum › ProBuilder support › Indicator – Visual Heikin with signal for alert
- This topic has 1 reply, 2 voices, and was last updated 5 years ago by
Nicolas.
Viewing 2 posts - 1 through 2 (of 2 total)
-
-
03/02/2020 at 5:16 PM #120921
Visual Heikin
“Candle heikin-ashi green = Background green = Signal Bullish”
“Candle heikin-ashi red = Background red = Signal Bearish”
- The indicator returns a signal for the bullish signal and for the bearish signal, so you can easily create an alert to warn you. LvL Alert is always at 1, the signal bearish or bullish is at 0 and will become 1 if there is a signal.
- Disable and enable background color
- Custom background color alpha
- Show on price or below price
Enjoy 💙
visual heikin1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253//-+------------------------------------------------------------------+-//// | Name: Visual Heikin | //// | Description: Draw background heiken ashi | //// | Author: Tom's - Leofi | //// | Last update: 02.03.20 | ////-+------------------------------------------------------------------+-////-+------------------------------------------------------------------+-//// | Variable Setup | ////-+------------------------------------------------------------------+-////-> Custom color alpha for backgroundalphaColor = 75//-> Draw backrounddrawBackground = 1//-+------------------------------------------------------------------+-//// | Heikin Ashi | ////-+------------------------------------------------------------------+-//IF (BarIndex = 0) THENc = totalPriceo = (open + close) / 2ELSEc = totalPriceo = (o[1] + c[1]) / 2ENDIF//-+------------------------------------------------------------------+-//// | Logic | ////-+------------------------------------------------------------------+-//IF (c > o) THEN//-> Variable for alert signalsignalBullish = 1signalBearish = 0//-> Draw red background color if enabledIF (drawBackground) THENbackgroundColor(0, 200, 0, alphaColor)ENDIFELSE//-> Variable for alert signalsignalBullish = 0signalBearish = 1//-> Draw green background color if enabledIF (drawBackground) THENbackgroundColor(200, 0, 0, alphaColor)ENDIFENDIF//-> Return signal bullish and bearishRETURN signalBearish coloured(233, 0, 0) style(histogram) AS "Signal BEARISH", signalBullish coloured(0, 233, 0) style(histogram) AS "Signal BULLISH", 1 AS "LvL Alert"03/03/2020 at 8:30 AM #121026 -
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)
Find exclusive trading pro-tools on
Similar topics: