Volume Separator (help needed)
Forums › ProRealTime English forum › ProBuilder support › Volume Separator (help needed)
- This topic has 26 replies, 5 voices, and was last updated 4 years ago by robert123.
-
-
03/10/2020 at 10:20 AM #121659
Perhaps you mean that if the green bar is bigger than the red bar then the red bar is hidden. If so this version fixes that issue by changing the order they are drawn in.
1234567891011121314151617181920212223242526//o=openhi=highl=lowc=closev=volumebuying=v*(c-l)/(hi-l)selling=v*(hi-c)/(hi-l)if buying > selling thena = buyingra = 0ga = 255b = sellingrb = 255gb = 0elsea = sellingra = 255ga = 0b = buyingrb = 0gb = 255endifreturn a coloured(ra,ga,0) style(histogram,2) ,b coloured(rb,gb,0) style(histogram,1)03/10/2020 at 11:24 AM #121663In any event, the summation [14] used with a moving average is useful.
If you have improvements then please post the code here so others can use and analyse?
03/10/2020 at 11:58 AM #121668@Vonasi – this is what i meant and thanks for posting the corrected code, the volume bars are distinguishable at a glance now- perfect!
03/10/2020 at 12:13 PM #121674this version fixes
Yep … thanks Vonasi, green now showing on previously ‘all red’ bars … see attached lower histo compared to histo above.
03/10/2020 at 1:48 PM #12168912345678910111213141516variables 14 and 72 or whatever floats your boat//o=openhi=highl=lowc=closev=volumebuying=v*(c-l)/(hi-l)selling=v*(hi-c)/(hi-l)sv=sellingbv=buying//x//yreturn bv ,sv , summation[x](bv-sv),summation[y](bv-sv),summation[x](sv),summation[x](bv)Sry @GraHal figured you would be able to do that…..for some reason I am unable to post images else I would have.
1 user thanked author for this post.
03/10/2020 at 1:55 PM #121692I am unable to post images
What size are your images … max file size is 2MB?
Are you posting .jpg or .png … that’s what I post no problem.
03/10/2020 at 1:58 PM #12169403/10/2020 at 2:14 PM #12170003/10/2020 at 2:26 PM #12170503/10/2020 at 2:31 PM #12170603/10/2020 at 2:33 PM #12170803/10/2020 at 4:12 PM #121726 -
AuthorPosts
Find exclusive trading pro-tools on