Extended Bar Indicator
Forums › ProRealTime English forum › ProBuilder support › Extended Bar Indicator
- This topic has 9 replies, 2 voices, and was last updated 7 years ago by pompiuses.
-
-
12/09/2016 at 2:25 PM #18157
Can someone help me create an indicator that finds candles which are bigger than two times the ATR(14) from high to low on the 1h timeframe? If it’s possible to highlight the candle somehow that’d also be nice. I plan to use the indicator with the alarm in ProRealtime to get notified every time such a candle occur. Thanks!
12/09/2016 at 2:55 PM #18162What prorealtime version are you using? I’m asking because with 10.3 you could highlight the candlesticks with a specific color or even draw symbols on chart for a clear visual information. As for version 10.2, I can only draw a dot above or below the candlestick or make a signal histogram in an indicator just below the chart.
For that last version the code should be:
123c1 = range>averagetruerange[14]*2RETURN c1Not tested, please give feedback.
12/09/2016 at 6:36 PM #1818212/12/2016 at 9:23 AM #1828412/12/2016 at 9:30 AM #18286To add a dot on main chart, you’ll need to add another indicator on price, the test is the same, but the code is slightly different:
123456789c1 = range>averagetruerange[14]*2if c1 thensignal = low-2*pipsizeelsesignal = 0endifreturn signal12/12/2016 at 10:08 AM #18291I added it as a separate indicator, but I got no dots on the chart. I tried to color it red, but only the indicator below the chart was colored. Also is it possible to get Prorealtime to print debug info so I can see the value of the “signal” variable?
12/12/2016 at 10:50 AM #18294Please add a price chart indicator on price with the wrench on the upper left side of the price chart: http://www.prorealcode.com/topic/coding-an-indicator-on-the-price-chart/
12/12/2016 at 11:11 AM #1830112/12/2016 at 11:59 AM #1831112/12/2016 at 1:06 PM #18326 -
AuthorPosts
Find exclusive trading pro-tools on