|
- _SECTION_BEGIN("William's % R");
- SetChartOptions(0,0,chartGrid30|chartGrid70);
- 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 ) );
- Plot( -30,_DEFAULT_NAME(),colorGreen );
- Plot( -70,_DEFAULT_NAME(),colorGreen );
- _SECTION_END();
- _SECTION_BEGIN("MA");
- P = ParamField("Price field",-1);
- Periods = Param("Periods", 9, 2, 200, 1, 10 );
- Plot( MA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );
- _SECTION_END();
複製代碼 這樣也可以 |
|