标题:
【Mov Avg Adaptive】
[打印本页]
作者:
龙听
时间:
2022-11-3 11:42
标题:
【Mov Avg Adaptive】
inputs:
Price( Close ),
EffRatioLength( 10 ),
FastAvgLength( 2 ),
SlowAvgLength( 30 ) ;
variables:
var0( 0 ) ;
var0 = AdaptiveMovAvg( Price, EffRatioLength, FastAvgLength, SlowAvgLength ) ;
Plot1( var0, "MAA" ) ;
condition1 = Price crosses over var0 ;
if condition1 then
Alert( "Bullish alert" )
else
begin
condition1 = Price crosses under var0 ;
if condition1 then
Alert( "Bearish alert" ) ;
end;
复制代码
欢迎光临 龙听期货论坛 (http://qhlt.club/)
Powered by Discuz! 7.2