Bollinger Band 3 Deviation Touch Screener – please test
Forums › ProRealTime English forum › ProScreener support › Bollinger Band 3 Deviation Touch Screener – please test
- This topic has 9 replies, 3 voices, and was last updated 7 years ago by Dimi.A.
-
-
01/16/2017 at 11:06 AM #21259
Hi coders,
I’m trying to create a ProScreener which alerts us in realtime and on the current candle of as soon as price touches the outer Bollinger Bands at a Standard Deviation of 3 on all 47 Spot FX Pairs.
Is this correct? Please kindly test and edit it.
01/16/2017 at 1:35 PM #21302Your code wasn’t good. In your case, you only want to test if the current high is superior to the upper band or if the current low is inferior of the lower bollinger band.
Please find below the modified code that will give you the desired results:
1234567bbup = Average[20](close)+3*std[20]bbdown = Average[20](close)-3*std[20]c1 = high > bbupc2 = low < bbdownSCREENER[c1 OR c2] ((close/DClose(1)-1)*100 AS "%Chg yest.")1 user thanked author for this post.
01/16/2017 at 2:21 PM #2131201/17/2017 at 12:59 AM #21391Hi Nic,
Here is your version of the BB Touch Screener (see attached).
Could you kindly assist by helping me with a small text dashboard which shows the distance of price from the Bollinger Bands Top and Bottom? Sort of just like your CCI dashboard example you posted for us a while ago.
Please see attached example!
01/17/2017 at 8:24 AM #21404Here is the small dashboard to show current Close distances from upper and lower Bollinger bands. To have it fixed on chart, it’s a better option to display it on a separate window like I did in my attached example.
This is the dashboard code:
1234567891011defparam drawonlastbaronly=truebbup = Average[20](close)+3*std[20]bbdown = Average[20](close)-3*std[20]updist = (bbup-close)/pipsizedndist = (close-bbdown)/pipsizedrawtext("Distance from BB Top: #updist#pips",barindex,0.5,Dialog,Standard,16) coloured(0,128,255)drawtext("Distance from BB Bottom: #dndist#pips",barindex,0,Dialog,Standard,16) coloured(0,128,255)RETURN1 user thanked author for this post.
01/17/2017 at 12:53 PM #2144001/17/2017 at 1:27 PM #21445Rounding digits is not possible, the only way to do is to modify lines 5 and 6 with this code instead: (it will round the displayed pips text to the next round number).
12updist = round((bbup-close)/pipsize)dndist = round((close-bbdown)/pipsize)1 user thanked author for this post.
01/17/2017 at 1:31 PM #21446Bless you mate thank you.
Is it possible to have dashboards like this one displayed on the main chart and not in a sub window? Or is that not possible with PRT yet?
Also, you know when you “resize” the subwindow the dashboard text becomes overlapped onto each other. Can you teach me the code which will prevent this from happening sir?01/17/2017 at 1:58 PM #21448How about this for just 2 digits after decimal point… should work (replace all the 100’s with 10 for just 1 digit, or with 1000 for 3 digits, etc…)
12updist <span class="token operator">=</span> <span class="token keyword">round</span><span class="token punctuation">(</span><span class="token punctuation">(</span>bbup<span class="token operator">-</span><span class="token keyword">close</span><span class="token punctuation">)</span><span class="token operator">/</span><span class="token keyword">pipsize*100</span><span class="token punctuation">)/100</span>dndist <span class="token operator">=</span> <span class="token keyword">round</span><span class="token punctuation">(</span><span class="token punctuation">(</span><span class="token keyword">close</span><span class="token operator">-</span>bbdown<span class="token punctuation">)</span><span class="token operator">/</span><span class="token keyword">pipsize*100</span><span class="token punctuation">)/100</span>01/17/2017 at 2:08 PM #21449 -
AuthorPosts
Find exclusive trading pro-tools on