LonesomeTheBlue

Sell / Buy Rates

This script finds sell / buy rates and adds its linear regression to the chart. its aim is finding buying and selling power, then you can try to find trend reversals. Also you can find divergences, it's very important signal for trend reversal.

Linear regression is a basic and commonly used type of predictive analysis.

if you choose lower periods then it will be more sensitive. I choose 34 as it's one of fibonnaci number.


If you find my works useful, please consider a donation
BTC: 16XRqyS3Vgh1knAU1tCcruqhUrVm4QWWmR

Sürüm Notları: Shorter code and some improvements
Favori Komutlardan Çıkart Favori Komutlara Ekle
If you find my works useful, please consider a donation
BTC: 19qDW9AShZhBZsGuXcgRzam5Fbpc3EU8EV
ETH: 0x39c8552371b9b7f4e324197af460ba8bc8e18ef9

Yorumlar

Mate, you can simplify a life with:

tw = high - max(open, close)
bw = min(open, close) - low
body = abs(close - open)

_rate(cond) => 0.5 * (tw + bw + (cond ? 2 * body : 0)) / (tw + bw + body)

uprate = _rate(open <= close)
downrate = _rate(open >= close)

and add precision=0 to study() to avoid big numbers (see AAPL)
+6 Cevap Gönder
@everget, thanks mate, OK I'm gonna make it shorter ;)
+2 Cevap Gönder
Could you please say what do the colors mean
Green
Dark Green

Red
Dark Red
?
+4 Cevap Gönder
Le falta las flechas de compra y venta, me parece
+1 Cevap Gönder
hi @dos32101, Pine script doesn't allow to add arrow on the chart when indicator is in another window. (overlay = false or true, can not be both).
+1 Cevap Gönder
This is: _rate(cond) => 0.5 * (tw + bw + (cond ? 2 * body : 0)) / (tw + bw + body)
Especially: (cond ? 2 * body : 0)

What is the basic functionale (mathematicaL) reason (purpose) here?
Cevap Gönder
LOVE this! Thank you!
Cevap Gönder
Seu trabalho ficou incrível aqui. Assim que começar a operar com ele, e tiver bons resultados é claro, vou lembra de você. Um abraço e sucesso.
Cevap Gönder
@LonesomeTheBlue : Thanks for sharing the indicator,I appreciate your hard work.
Could you please suggest, which indicator you used in the main chart for showing the ARROW
Cevap Gönder
Thank you Sir! I am no coder but I have a good backtest done here with this and think this may help scalp the Micro NQ pretty well. I will keep you posted. If you have recommendations I am all ears. And thank you for the dedicated work sir! From Austin TX USA!
Cevap Gönder
Ana Sayfa Hisse Senedi Takipçisi Forex Takipçisi Kripto Takipçisi Ekonomik Takvim Nasıl Çalışır Grafik Özellikleri Ücretlendirme Tanıdık yönlendirme Kurallarımız Destek Merkezi Web Sitesi & Aracı Kurum Çözümleri Görsel Bileşenler(Widget) Grafik Çözümleri Hafif Grafik Kitaplığı Blog ve Haberler Twitter
Profil Profil Ayarları Hesap ve Ödemeler Tavsiye edilen arkadaşlar Koinler Destek Kayıtlarım Destek Merkezi Yayınlanmış Fikirler Takip Edenler Takip ediliyor Özel Mesajlar Sohbet Çıkış