http://www.amibroker.com/guide/afl/afl_view.php?name=max

// Not less than zero.
newvol = max(0, w);

Mike

--- In [email protected], "killerdon99" <[EMAIL PROTECTED]> 
wrote:
>
>  Can anyone pls tell how to put "minvalue" function in the afl or 
can
> makes changes afl so that it does not shows negative value.
> 
> Code:
> 
> _SECTION_BEGIN("Unnamed 5");
> i = 2;
> 
> if (Interval()<inDaily)
> 
> i=MA( Volume , 2 );
> 
> f=(2 * i);
> 
> g=(f - Volume);
> 
> w=(Volume - g);
> 
> newvol= w;
> 
> 
> Plot(newvol,"New
> 
Volume",ParamColor("Color",colorBlueGrey),styleHistogram|styleThick);
> 
> _SECTION_END();
>



Reply via email to