If you haven't gotten your answer yet, change the 3rd "r" to 0 (a 
zero) in the PlotOHLC statement.

--- In [email protected], "murthysuresh" <[EMAIL PROTECTED]> wrote:
>
> Hello
> I am still trying to understand how the stylecloud works. I have 
the 
> following example where i am trying to plot the cmf in style cloud.
> 
> i start off by getting a function cmf to return the cmf values. 
> then  i am using the plot ohlc to plot it in stylecloud. i still 
get 
> only a line graph. can someone explain how the style cloud works 
and 
> how i can make this one work properly.
> 
> _SECTION_BEGIN("Chaikin Money Flow");
> 
> function CMF(r1)
> {
> 
> 
> Graph0=Sum(IIf( H>L && V>0,((( C-L )-( H-C )) / ( H-L ))*V,0),r1) / 
> Sum(V,r1);
> 
> return Graph0;
> }
> r1=Param("Periods", 21);
> r=CMF(r1);
> 
> SetChartOptions(0,0,ChartGrid30 | ChartGrid70 ); 
>  
> Plot( r, "CMF", colorBlack ); 
> PlotOHLC( r,r,r,r, "", IIf( r > 50, colorRed, colorGreen ), 
> styleCloud , 30, 70 );
>


Reply via email to