Skip to main content

William% with ema for Amibroker (AFL)

bchandra bhave about 12 years ago Amibroker (AFL)

  • Rating:
    2 / 5 (Votes 4)
  • Tags:
    oscillator, amibroker

Please follow it.
1. change color of william,s % line as per your panel color to disappear it.
2. Draw horizontal lines at -20 and -80
3. BUY -when line crosses -80 from downword to upward.
4.SELL – when line crosses -20 from upside.
I have prepared it on amibroker 5.3
I am not expert. I prepared it and using it. All suggestions are welcome.

Screenshots

Indicator / Formula

Copy & Paste Friendly
_SECTION_BEGIN("William's % R");
function PercentR( periods )
{
 return -100 * ( HHV( H, periods ) - C )/( HHV( H, periods ) - LLV( L, periods ) ); 
}

Plot( PercentR( Param("Periods", 14, 2, 100 ) ),
		_DEFAULT_NAME(),
		ParamColor("Color", ColorCycle ) );
_SECTION_END();

_SECTION_BEGIN("EMA");
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 300, 1, 10 );
Plot( EMA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") ); 
_SECTION_END();

1 comments

Leave Comment

Please login here to leave a comment.