NR7-Code help
Forums › ProRealTime English forum › ProBuilder support › NR7-Code help
- This topic has 2 replies, 3 voices, and was last updated 4 years ago by Vonasi.
-
-
04/26/2020 at 11:48 AM #128184
Hi,
I am trying to plot a dot on Daily chart by identifying the NR7.
can somebody help.
source is from the link (https://www.prorealcode.com/prorealtime-market-screeners/nr7-pattern-screener/)
plot a dot on chart NR7123456789101112131415161718// if you only need for example the last 50 bars dotted, uncomment next line//DEFPARAM CalculateOnLastBars=50c1= Range<Range[1] and Range<Range[2] and Range<Range[3] and Range<Range[4] and Range<Range[5] and Range<Range[6] and Range<Range[7]// dot valuedotval=c1 + c1*0.03// the red, green, blue values of RGB colourR=0G=0B=255// printing// instead of keyboards dot you can use "•" or "●"DRAWTEXT("•",barindex,dotval,Dialog,Bold,12) coloured(R,G,B)RETURN dotval04/26/2020 at 12:23 PM #128190There you go:
12345678910111213141516171819// if you only need for example the last 50 bars dotted, uncomment next line//DEFPARAM CalculateOnLastBars=50c1= Range<Range[1] and Range<Range[2] and Range<Range[3] and Range<Range[4] and Range<Range[5] and Range<Range[6] and Range<Range[7]// dot valuedotval=low * 0.995// the red, green, blue values of RGB colourR=0G=0B=255// printing// instead of keyboards dot you can use "•" or "●"IF c1 thenDRAWTEXT("•",barindex,dotval,Dialog,Bold,12) coloured(R,G,B)endifRETURN c11 user thanked author for this post.
04/26/2020 at 1:39 PM #128200You might also be interested in this indicator. It counts back p bar to see how many previous bars in a row the range is bigger than or smaller than. It then displays this as either a green number for bigger range than the previous x bars in a row or a red number for smaller range than the previous x bars in a row.
You can turn on or off the Smallest Range or Largest Range if you only want to see one of them.
You can also set a MinP so no values below this setting are displayed.
Don’t set P too high or you are likely to get infinite loop errors.
12345678910111213141516171819202122232425262728293031323334353637383940//Biggest Range and Smallest Range Since x Bars Indicator//By Vonasi//Date: 20200426//p = 600//LargetsRange = 1//SmallestRange = 1//MinP = 7if high<>low thenif smallestrange thenlowcount = 0for a = 1 to pif Range<Range[a] thenlowcount = lowcount + 1elsebreakendifnextif lowcount <> 0 and lowcount >= minp thendrawtext("#lowcount#",barindex,high*1.005,sansserif,bold,10)coloured(128,0,0)endifendifendifif largestrange thenhighcount = 0for a = 1 to pif Range>Range[a] thenhighcount = highcount + 1elsebreakendifnextif highcount <> 0 and highcount >= minp thendrawtext("#highcount#",barindex,high*1.005,sansserif,bold,10)coloured(0,128,0)endifendifreturn -
AuthorPosts