"Orhan %R" Ýndikatörü: Kapanýþ Fiyatlarýnýn, Parametre olarak verilen periyottaki En Düþük veya En Yüksek fiyatlara Yüzdesel uzaklýðýný döndürür.Periyot ve Ortalama Alýnacak Bar Sayýsý þeklinde iki parametre alýr.
L.Williams tarafýndan geliþtirilen "Williams %R" ve George Lane tarafýndan geliþtirilen "Stochastic" indikatörlerinin birleþtirilmesi ve her yönde daha doðru ve simetrik þekilde ölçeklendirilmesi ile meydana gelmiþtir.
Williams %R Nasýl Hesaplanýyor:
https://www.investopedia.com/terms/w/williamsr.asp
Stochastic Oscillator Nasýl Hesaplanýyor:
https://www.investopedia.com/terms/s...oscillator.asp
Orhan%R, Williams%R, StochasticOsc ve StochasticFast indikatörleri ayný iþi yaparlar, grafik çýktýlar nerdeyse aynýdýr fakat ölçekleme þekilleri ile biribirinden ayrýlýrlar.
Orhan %R deðeri sýfýrýn üzerindeki deðerleri StochasticOsc ile birebir aynýdýr.
Orhan %R deðeri sýfýrýn altýndaki deðerleri Williams%R ile birebir aynýdýr.
Aþaðýdaki Resimde özellik kýyaslamalarý görünmektedir.
Orhan %R Ýndikatörü diðerlerinden daha hassas ve simetrik deðer aralýðýna sahip ve salýnýmlarý yumuþatmak için parametre almaktadýr.
https://prnt.sc/llgei3
"Orhan %R" iDeal Sistem Kodu
PHP Code:
Sistem.Cizgiler[0].Deger = Lib.OrhanR(Sistem,14,5); //Panel 2
Sistem.Cizgiler[1].Deger = Sistem.WilliamsR(14); //Panel 3
Sistem.Cizgiler[2].Deger = Sistem.StochasticOsc(14, 5); //Panel 4
Sistem.Cizgiler[3].Deger = Sistem.StochasticFast(14, 1); //Panel 5 (ikinci parametre iþlevsizdir.)
"Orhan %R" iDeal Lib.cs Kodu
PHP Code:
using System;
using System.IO;
using System.Collections.Generic;
using System.Data;
using System.Net;
using System.Text;
using System.Text.RegularExpressions;
using System.Data.OleDb;
using System.Data.SqlClient;
using System.Drawing;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Collections.Specialized;
using System.Runtime.InteropServices;
using System.ComponentModel;
using System.Linq;
namespace ideal
{
public class Lib
{
public List<float> OrhanR(dynamic Sistem, int pRangeCount, int MAPeriod)
{
List<float> C = Sistem.GrafikFiyatSec("Kapanis");
List<float> H = Sistem.GrafikFiyatSec("Yuksek");
List<float> L = Sistem.GrafikFiyatSec("Dusuk");
var orhanR = Sistem.Liste(0);
for (int i = pRangeCount; i < C.Count; i++)
{
float HMAX= H.GetRange(i - pRangeCount + 1, pRangeCount).Max();
float LMIN= L.GetRange(i - pRangeCount + 1, pRangeCount).Min();
float HMAXC= HMAX - C[i];
float HMINC= C[i] - LMIN;
orhanR[i] = (HMINC>HMAXC ? HMINC/(HMINC+HMAXC)*100 : HMAXC/(HMINC+HMAXC)*100*-1 );
}
return MAPeriod<=1 ? orhanR : Sistem.MA(orhanR,"Simple",MAPeriod);
}
}
}
https://prnt.sc/llgez2
Yer Ýmleri