Re: [amibroker] Custom volume histogram

 

You should be using SumSince().

Something like that: (please test)

_SECTION_BEGIN("Volume");
d1=IIf( Close-Open) > 0, 1, -1);

TotalVol = SumSince( D1 != Ref(d1, -1), Volume);

Plot( TotalVol, "Volume", IIf( d1>0, ParamColor("Up Color", colorGreen ), ParamColor("Down Color", colorRed ) ),
ParamStyle( "Style", styleHistogram | styleThick, maskHistogram  ) );

_SECTION_END(); 

__._,_.___

Posted by: =?UTF-8?Q?Jo=C3=A3o_Fl=C3=A1vio_Machado_Derzi?= <joaoderzi@gmail.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (2)
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/


.

__,_._,___

Related Posts


EmoticonEmoticon

:)
:(
=(
^_^
:D
=D
=)D
|o|
@@,
;)
:-bd
:-d
:p
:ng
:lv