以最近的20根K棒,找出 (最高價+最低價) /2,來算出最近的平均價格
若再線上,則為多,反之,則為空
input: Barlookback(20) ;
Vars: HighBand(0),LowBand(0);
HighBand = Highest(High,BarLookBack) ;
LowBand = Lowest(Low,BarLookBack) ;
for Value1 =1 to Barlookback Begin
if Close[Value1] > HighBand then HighBand = Close[Value1] ;
End;
Plot1((HighBand +LowBand) /2 , "NearBarHigh" ) ;
沒有留言:
張貼留言