Screening with Price level Profile
Forums › ProRealTime English forum › ProScreener support › Screening with Price level Profile
- This topic has 7 replies, 2 voices, and was last updated 6 years ago by odin.
Viewing 8 posts - 1 through 8 (of 8 total)
-
-
10/26/2018 at 6:29 PM #83571
hello guys,
this nice code is from nicolas. its a great indicator. but i cannot build it up for the pro screener so please help.
i wann search the highest indicator values of the last 12 nbr bars, to get the screenings result.
price level profile of nicolas1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950//PRC_Bull&Bear Volume on Price | indicator//05.07.2018//Nicolas @ www.prorealcode.com//Sharing ProRealTime knowledgedefparam drawonlastbaronly=truedefparam calculateonlastbars=1000// --- settingsScaleFactor = 5NbrBars=12lookback=200// --- end of settingshh=highest[lookback](high)ll=lowest[lookback](low)div = (hh-ll)/NbrBarsi=0volsum=summation[lookback](volume)startbar = barindex[lookback]while i<NbrBars dolrange=ll+div*ihrange=lrange+divvolbull=0volbear=0for j = 1 to lookback doif close[j]>=lrange and close[j]<=hrange thenif close[j]>open[j] thenvolbull=volbull+volume[j]elsevolbear=volbear+volume[j]endifendifnextbullbar = round((volbull*lookback)/volsum)*scalefactorbearbar = round((volbear*lookback)/volsum)*scalefactordrawrectangle(startbar,lrange,startbar+bullbar,hrange) coloured(46,139,87)drawrectangle(startbar,lrange,startbar+bearbar,hrange) coloured(255,0,0)if bullbar>bearbar thendrawtext("■",startbar+bullbar,(lrange+hrange)/2,Dialog,Bold,22) coloured(46,139,87)elsedrawtext("■",startbar+bearbar,(lrange+hrange)/2,Dialog,Bold,22) coloured(255,0,0)endifi=i+1wenddrawvline(barindex[lookback])returnhere is my try but it doesnet work:
price level screener123456789101112131415161718192021222324252627282930313233343536373839404142//PRC_Bull&Bear Volume on Price | indicator//05.07.2018//Nicolas @ www.prorealcode.com//Sharing ProRealTime knowledgedefparam drawonlastbaronly=truedefparam calculateonlastbars=1000// --- settingsScaleFactor = 5NbrBars=12lookback=200// --- end of settingshh=highest[lookback](high)ll=lowest[lookback](low)div = (hh-ll)/NbrBarsi=0volsum=summation[lookback](volume)startbar = barindex[lookback]while i<NbrBars dolrange=ll+div*ihrange=lrange+divvolbull=0volbear=0for j = 1 to lookback doif close[j]>=lrange and close[j]<=hrange thenif close[j]>open[j] thenvolbull=volbull+volume[j]elsevolbear=volbear+volume[j]endifendifnextbullbar = round((volbull*lookback)/volsum)*scalefactorbearbar = round((volbear*lookback)/volsum)*scalefactorendifc1 = highest[12](bullbar)[1] < bullbarc2 highest[12](bearbar)[1] < beabarc3 = c1 or c2SCREENER[c3 ] sort by volume*closethanks for help!
10/26/2018 at 6:29 PM #8357310/28/2018 at 6:29 PM #8366410/28/2018 at 7:37 PM #8367110/29/2018 at 10:20 AM #8369310/30/2018 at 1:12 PM #8378710/30/2018 at 1:14 PM #83788Here is the code in its actual state, not accurate, still don’t understand why. I put it here for future reference if needed..
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051// --- settingsScaleFactor = 5NbrBars=10lookback=50// --- end of settings//if date=today thenhh=highest[lookback](high)ll=lowest[lookback](low)div = (hh-ll)/NbrBarsi=0volsum=summation[lookback](volume)//startbar = barindex[lookback]maxi=0while i<NbrBars dolrange=ll+div*ihrange=lrange+divvolbull=0volbear=0for j = 1 to lookback doif close[j]>=lrange and close[j]<=hrange thenif close[j]>open[j] thenvolbull=volbull+volume[j]elsevolbear=volbear+volume[j]endifendifnextbullbar = round((volbull*lookback)/volsum)*scalefactorbearbar = round((volbear*lookback)/volsum)*scalefactormaxi=max(maxi,max(bearbar,bullbar))if maxi>lastmaxi thenlastmaxi=maxiresult=(lrange+hrange)/2endif//drawrectangle(startbar,lrange,startbar+bullbar,hrange) coloured(46,139,87)//drawrectangle(startbar,lrange,startbar+bearbar,hrange) coloured(255,0,0)i=i+1wend//endifscreener[result](result)10/31/2018 at 10:13 AM #83853 -
AuthorPosts
Viewing 8 posts - 1 through 8 (of 8 total)
Find exclusive trading pro-tools on
Similar topics: