From: 小肥牛
inputs: Length( 18 ), OverSold( 40 ) ;
variables: OverBought(60), oFastK( 0 ), oFastD( 0 ), oSlowK( 0 ), oSlowD( 0 );
OverBought = 100 - OverSold;
Value1 = Stochastic( H, L, C, Length, 3, 3, 1, oFastK, oFastD, oSlowK, oSlowD ) ;
if oSlowK cross over oSlowD and oSlowK < OverSold then begin
Buy ( "StochLE" ) next bar at market ;
end;
if oSlowK cross under oSlowD and oSlowK > OverBought then begin
Sell Short ( "StochSE" ) next bar at market ;
end;
全站熱搜
留言列表