Matriksde olmayan fonksiyonlardan Peak Value peak() simulasyonla elde edecegiz...

Metastock yardımdaki tanımı...
----------------------------------------------------
SYNTAX peak( Nth, DATA ARRAY, % MINIMUM CHANGE )

FUNCTION Plots the value of DATA ARRAY Nth peak(s) ago. This uses the Zig Zag function (see Zig Zag) to determine the peaks. N=1 would return the value of the most recent peak. N=2 would return the value of the 2nd most recent peak. Etc.

EXAMPLE peak(1,close,5)

-------------------------------------------
peak( Nth, DATA ARRAY, % MINIMUM CHANGE )
peak( sondan kaçıncı, DATA, %olarak minimum degişim)
Zigzag temeline dayanır...Tepeden dönüş degerini verir...Bu degeri % MINIMUM CHANGE degeri belirler..

[IMG][/IMG]


Simulasyonu

Kod:
a:=ZIG(C,2,%); 
valuewhen(1,Cross(ref(a,-1),a) ,ref(a,-1))

[IMG][/IMG]