gmorlosky

User's Guide
Search
Stylecloud
2nd topic : Using graph styles
Half down the page for Stochastic.

Bit of fiddling with this...

///////////////////
//Title = "William's %R Cloud";

period = Param("Period", 5, 5, 21,1); // param to change periods
R = (( HHV(H,period) - C ) / (HHV (H,period) - LLV (L,period))) * -100; 
// R williams thingy
Plot( r, "   William's % R   ", colorBlack | styleThick);
Plot( -70,"",colorBlue,1);
Plot( -30,"",colorBlue,1);
PlotOHLC( r,r,-50,r, // set the midpoint of the chart to -50 because R 
William's scale is  about face.. .
"", IIf( r < -50 , colorGreen ,// color below -50 set to green
 colorRed // color above -50 is red
 ), styleCloud | styleClipMinMax, -70, -30); // no colors between -30 
and -70

GraphXSpace = 5;

////////////////

Regards

ChrisB
gmorlosky wrote:
>
> Below is a working RSI_Cloud. Can anyone make this a Williams%R_Cloud ?
>
> Title = "RSI Cloud";
>
> SetChartOptions( 0,0,chartGrid30| chartGrid70) ;
>
> Plot(RSI(14) , "RSI Cloud", colorBlue, styleLine);
>
> SetChartOptions( 0,0,ChartGrid30 | ChartGrid70 );
> r = RSI(14);
> Plot( r, "RSI", colorBlack );
> PlotOHLC( r,r,50,r, "", IIf( r > 50, colorRed, colorGreen ), styleCloud
> | styleClipMinMax, 30, 70 );
>
> GraphXSpace = 5;
>
>  


-- 
Regards

ChrisB



Reply via email to