Add consecutive candle volume. Is there code for this already ?

 

Hi,


Does anyone know of code floating around that adds consecutive candle volume if they are the same colour.

Eg. Green(volume), Green(Volume+previous volume), Green(Volume+previous+previous), Red(Volume), Red(Volume+Previous).

Then plot them like the standard volume chart on mt4 ?

I have had a look around and can't find any but surely it must exist somewhere. Could anyone point me in the right direction ?


Thank You :)

 

Do not double post.

Your duplicate topic has been removed.

 
  1. Don't double post!
              General rules and best pratices of the Forum. - General - MQL5 programming forum

  2. I remember it from around 2012 but there are no good way to search for it, other than just volume. I also didn't find it useful IIRC.
  3. Just take an indicator and modify it.
              Free download of the 'Volumes' indicator by 'MetaQuotes' for MetaTrader 4 in the MQL5 Code Base
              Free download of the 'Volumes' indicator by 'MetaQuotes' for MetaTrader 5 in the MQL5 Code Base
Reason: