Coloured Harami
Forums › ProRealTime English forum › ProBuilder support › Coloured Harami
- This topic has 3 replies, 2 voices, and was last updated 7 years ago by Despair.
-
-
11/10/2017 at 12:59 PM #52236
Hi, I am trying to build an indicator which paint all the candles of the specified setup in black (for this example the Harami setup) The code below is accepted by the platform, but does not seems to work. Has anybody a suggestion or want to help me to develop this indicator?
Coloured Harami1234567891011121314//Coloured Harami by Marcel van Vliet//Version 1.5//Date 05-10-2017trendup =ExponentialAverage[50]>Average[200] AND High[1]>ExponentialAverage[50]harami = (High>High[1] and Low>Low[1]and Open>Open[1] and Close<Close[1])If trendup and harami thenr = 0g = 0b = 0endifRETURN harami coloured(r,g,b)11/10/2017 at 1:27 PM #5223911/10/2017 at 3:30 PM #52265Thank you for your quick response. Can you provide me with an example for painting a candle in a special colour and where to put this line(s) into the code? This would help me a lot……
11/11/2017 at 10:50 AM #52357I never did this myself. The help function says (always a good place to look!) that there is a command called DRAWCANDLE. That is what you want to use. Than is you definition of a mahatma strange.
Paint all haramis black in uptrends12345678910111213trendup =ExponentialAverage[50]>Average[200] AND High[1]>ExponentialAverage[50]if open[1]<close[1] thenharami =high<close[1] and low>open[1]elsif open[1]>close[1] thenharami=high<open[1] and low>close[1]elseharami=0endifIf trendup and harami thendrawcandle(open, high,low,close) colored (0,0,0)endifRETURN2 users thanked author for this post.
-
AuthorPosts
Find exclusive trading pro-tools on