Wendy
It is really simple just add the following two statements
onto the Stochastic afl
plotgrid(25);
plotgrid(75);
so if it Stochastic %D
it will become the following
periods = Param( "Periods", 15, 1, 200, 1 );

Ksmooth = Param( "%K avg", 3, 1, 200, 1 );

Dsmooth = Param( "%D avg", 3, 1, 200, 1 );

Plot( StochD( periods , Ksmooth, DSmooth ), _DEFAULT_NAME(), ParamColor(
"Color", colorCycle ), ParamStyle("Style") );

PlotGrid(25);

PlotGrid(75);

When you apply it, make sure you go to Axis and Grid tab of the parameters
popup dialog box and uncheck show middle lines.
/Paul.


  _____  

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of windfore
Sent: Friday, 1 August 2008 4:20 PM
To: [email protected]
Subject: RE: [amibroker] Stochastics Level





Thanks Louis, 
 
I was more looking at being able to edit the level of 20/80 to example 25/75
which I can't. This will help me make the level fixed throughout the charts.
The level in the parameters is fixed.  If I edit the formula, it will give
me errors that I did not initialised the usage. 
So I am wondering if anyone done it before. 
 
Rgds
Wendy 
 

  _____  

From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of Louis P.
Sent: 01 August, 2008 12:14 AM
To: [email protected]
Subject: Re: [amibroker] Stochastics Level





Hi,

Here is something I wrote:

_SECTION_BEGIN("Stochastic %K");
periods = Param( "Periods", 15, 1, 200, 1 );
Ksmooth = Param( "%K avg", 3, 1, 200, 1 );
Plot( StochK( periods , Ksmooth), _DEFAULT_NAME(), ParamColor( "Color",
colorCycle ), ParamStyle("Style") );

PlotOHLC( StochK( periods , Ksmooth),StochK( periods , Ksmooth),50,StochK(
periods , Ksmooth), "", IIf( StochK( periods , Ksmooth) > 50, colorRed,
colorGreen ), styleCloud | styleClipMinMax, 20, 80 ); 
_SECTION_END();

Hope it helps!

Louis




2008/7/31 windfore <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> com>




Hi, 

Anyone know how to change the level of 20/80 30/70  in Stochastics
parameter? 

Rgds

WT








 

Reply via email to