移動平均線の方向を調べるには?トレードステーション
移動平均線の方向を調べるには、その移動平均線の今の水準と10日前(任意の期間)
を比較してみればよい。今の水準のほうが高ければ、その移動平均線は上昇していることになる。
Input:BarsBack(10);
Condition1=Average(Close,50)>Average(Close,50)[BarsBack];
今日のバーが移動平均線に接近しているときのみ買うという条件
1ATRの範囲内にあることを条件付ける
Input:Length2(35),ATRlen(10);
Condition2=(Close - (Average(Close,Length2))<AveTrueRange(ATRlen(10));
ストキャスティクスが売られ過ぎ圏(BuyZone)を下から上にクロスするという条件
Inputs:Length(14),BuyZone(30);
If SlowK(Length) > SlowD(Length) and SlowD(Length) Crosses Above BuyZone Then Buy
Inputs:SellZone(70);
Condition1=SlowD(Length)<SellZone;
If ADX(10)>30 And SlowD(14)>85 Then
ADXによってトレンドの有無を調べる条件
If ADX(Length)>30 Then Trending Market System Else;
If ADX(Length)<20 Then Chppy Market System Else;
Middle Ground System
手仕舞い
If Close < Lowest(Low,5)[1] then ExitLong("stop1")