Matriksde olmayan fonksiyonlardan Trough Value trough() simulasyonla elde edecegiz...

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

FUNCTION Plots the value of DATA ARRAY Nth trough(s) ago. This uses the Zig Zag function to determine the troughs. N=1 would return the value of the most recent trough. N=2 would return the value of the 2nd most recent trough, and so on.

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


[IMG][/IMG]

Simulasyonu
Kod:
a:=ZIG(C,2,%); 
valuewhen(1,Cross(a,ref(a,-1)) ,ref(a,-1))
[IMG][/IMG]