EasyTrader - ArtNo 003
承續前篇繼續介紹其他幾個有名的指標
---- 10.Pivot Point (壓力/支撐指標) ----
有點像 三關價與 CDP 的綜合 ,從昨日價格變化推估今日的壓力支撐區段
Vars: Press1(0),Press2(0),Press3(0),Support1(0),Support2(0),Support3(0),
TR(0),Price(0) ; {Pivot Point}
if DataCompression < 2 then Begin
Price = (HighD(1)+LowD(1)+CloseD(1))/3 ;
TR = HighD(1)-LowD(1) ;
Press1 = Price*2 - LowD(1)*2 + HighD(1) ;
Press2 = Price + TR ;
Press3 = Price*2 - LowD(1) ;
Support1 = Price*2 - HighD(1) ;
Support2 = Price - TR ;
Support3 = Price*2 - HighD(1)*2 + LowD(1) ;
end else Begin
Price = (High[1]+Low[1]+Close[1])/3 ;
TR = High[1]-Low[1] ;
Press1 = Price*2 - Low[1]*2 + High[1] ;
Press2 = Price + TR ;
Press3 = Price*2 - Low[1] ;
Support1 = Price*2 - High[1] ;
Support2 = Price - TR ;
Support3 = Price*2 - High[1]*2 + Low[1] ;
end;
Plot1(Press1,"Press1") ;
Plot2(Press2,"Press2") ;
Plot3(Press3,"Press3") ;
{
Plot1(Support1,"Support1") ;
Plot2(Support2,"Support2") ;
Plot3(Support3,"Support3") ;
}