ATR波动率指标公式[MC码]
源码:[code]
inputs:
ATRLength( 14 ),
AlertLength( 14 ) ;
variables:
var0( 0 ) ;
var0 = AvgTrueRange( ATRLength ) ;
Plot1( var0, "ATR" ) ;
condition1 = HighestBar( var0, AlertLength ) = 0 ;
if condition1 then
Alert( "Indicator at high" )
else
begin
condition1 = LowestBar( var0, AlertLength ) = 0 ;
if condition1 then
Alert( "Indicator at low" ) ;
end;
[/code] 感谢版主分享
页:
[1]