Good day,
I found this code on the ProRealCode Library. Need some help with the following. When the bull line crosses over the bear line I would like to insert a “BULL” text on the:
- Corresponding volume bar or histogram on this indicator
- On the corresponding Price candle. I would like the “Bull” text to appear just above the candle stick.
- Vice versa for when the bear line crosses the bull line.
All credit to the original designer of the code.
ref=(close-low)/range
volbull=ref*volume
volbear=volume
if close>=open then
greenbarcount=1
greenvolume=volume
redbarcount=0
redvolume=0
else
greenbarcount=0
greenvolume=0
redbarcount=1
redvolume=volume
endif
//media volumi rossi e verdi per media mobile semplice
mmred=summation[period](redvolume)/summation[period](redbarcount)
mmgreen=summation[period](greenvolume)/summation[period](greenbarcount)
return volbear coloured (205,0,0) style (histogram), volbull coloured (0,190,0) style (histogram), mmred coloured (255,0,0) as “Bear average”,mmgreen as “Bull average”
Regards,
Segie