High Volume Color Bars

Q: I think I’ve been with you for at least 8 years now. No charting software can do what Ensign does for me!  I managed to get DYO/studies working the way I wanted in EW.  I just downloaded E10 and want to migrate my studies/DYO from EW.  I can see that there are great improvements, but could use some help to get it right.  In EW I had study alerts combined with DYOs to accomplish this, and I suspect it can be done easily in E10. 

Rules:

  • If Vol x 0.8 > AveVol(12) and Vol > 67 then colorbar yellow.
  • If Vol x 0.8 > AveVol(12) and Vol > 100 then colorbar green if Close>Open and red if Close<Open.

A:  The color bars based on high volumes can be implemented with 1 DYO configured as follows:

High Volume Color Bars DYO

A:  Calculate a 12 bar average of the volume, and assign to a variable named [AveVol].
B: Assign a variable named [Vol8] the value of Volume * 0.8.
C: Color the bars yellow based on the 1st rule.
D: Assign a variable named [HighVol] the Boolean result of the expression as shown.
E: Color the bars green when there is [HighVol] and Close >= Open.
F: Color the bars red when there is [HighVol] and Close < Open.

High Volume Color Bars Chart