
Originally Posted by
uufuk
Matriksde olup fonksiyon listesinde görünmeyen Self Referencing Formulas Using PREV'ı tanıtalım...
Metastock yardımdaki tanımı...
------------------------------------------
The PREV constant allows you to create self-referencing formulas. A self referencing formula is one that is able to reference the "previous" period's value of itself.
For example, the following is an example of a self referencing formula:
((H+L+C)/3) + PREV
This simple formula divides the high, low, and closing prices by 3 and then adds this value to yesterday's value of the ((H+L+C)/3).
The calculation of the popular indicator On Balance Volume illustrates the use of the PREV function.
(if(c>ref(c,-1),1,-1)*volume)+PREV
Although On Balance Volume can be calculated without the use of the PREV function, an exponential moving average cannot (other than using the mov() function). The following formula shows how a 18% exponential moving average (approximately 10-periods) is calculated using the PREV function.
(close*0.18)+(PREV*0.82)
---------------------------------------------------
Bu fonksiyon matriksde var ama nane molla ve vazgeçilmez bir fonksiyondur.....
O anda hesaplanan işlemin ref(x,-1) dır,yani bir bar önceki hesap sonucunu temsil eder....
Yani self servis gibi kendinin bir bar önceki degerini temsil eder,onun için vaz geçilmezdir...
Self Referencing ifadesi bunu vurgular..
Gelelim nane molla kısmına;
Matriksde sadece ve sadece if( ) fonksiyonu içinde sorunsuz çalışır....
+ - / * > < =< => operatorlerinde sorun çıkarmaz....
Diger tüm fonksiyonlarla kan uyuşmazlıgı vardır,anlaşamaz PC 'yı kasar hatalı gösterime sebep olur v.s...
Tek ve yalnızca tek kankası if( ) dır....
Bu üç fonkiyon matriksde olup direk kullanabilirsiniz...
Matriksde olmayan
Fraction_ Median Price_ Midpoint_Modulus_Negative_Precision_
Alert_Ceiling _Division _ Floor _Trough Value _
Peak Value gibi fonksiyonları simule edecegiz..
Yer İmleri