Indicator – Visual Heikin with signal for alert
- This topic has 1 reply, 2 voices, and was last updated 4 years ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
Forums › ProRealTime English forum › ProBuilder support › Indicator – Visual Heikin with signal for alert
“Candle heikin-ashi green = Background green = Signal Bullish”
“Candle heikin-ashi red = Background red = Signal Bearish”
Enjoy 💙
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
//-+------------------------------------------------------------------+-// // | Name: Visual Heikin | // // | Description: Draw background heiken ashi | // // | Author: Tom's - Leofi | // // | Last update: 02.03.20 | // //-+------------------------------------------------------------------+-// //-+------------------------------------------------------------------+-// // | Variable Setup | // //-+------------------------------------------------------------------+-// //-> Custom color alpha for background alphaColor = 75 //-> Draw backround drawBackground = 1 //-+------------------------------------------------------------------+-// // | Heikin Ashi | // //-+------------------------------------------------------------------+-// IF (BarIndex = 0) THEN c = totalPrice o = (open + close) / 2 ELSE c = totalPrice o = (o[1] + c[1]) / 2 ENDIF //-+------------------------------------------------------------------+-// // | Logic | // //-+------------------------------------------------------------------+-// IF (c > o) THEN //-> Variable for alert signal signalBullish = 1 signalBearish = 0 //-> Draw red background color if enabled IF (drawBackground) THEN backgroundColor(0, 200, 0, alphaColor) ENDIF ELSE //-> Variable for alert signal signalBullish = 0 signalBearish = 1 //-> Draw green background color if enabled IF (drawBackground) THEN backgroundColor(200, 0, 0, alphaColor) ENDIF ENDIF //-> Return signal bullish and bearish RETURN signalBearish coloured(233, 0, 0) style(histogram) AS "Signal BEARISH", signalBullish coloured(0, 233, 0) style(histogram) AS "Signal BULLISH", 1 AS "LvL Alert" |