0 beğenilme 0 beğenilmeme
48 kez görüntülendi
tradingview için olan bu formülü matriks prime için uyarlayabilir miyiz rica etsem ? //@version=5 indicator("Volume Comparison", overlay=false) // User-configurable inputs length = input.int(50, "Moving Average Period", minval=1, tooltip="Period for calculating the average volume") multiplier = input.float(2.0, "Volume Multiplier", minval=0.1, step=0.1, tooltip="Multiplier for comparing volume to average volume") // Get daily volume volume_daily = volume // Calculate average volume avg_volume = ta.sma(volume_daily, length) // Comparison: Is current volume at least multiplier times the average volume? is_high_volume = volume_daily >= avg_volume * multiplier // Label results label.new(bar_index, volume_daily, is_high_volume ? "True" : "False", color=is_high_volume ? color.green : color.red, style=label.style_label_down, textcolor=color.white) // Display results in a table var table t = table.new(position.top_right, 2, 3, border_width=1) if barstate.islast table.cell(t, 0, 0, "Current Volume", bgcolor=color.gray, text_color=color.white) table.cell(t, 1, 0, str.tostring(volume_daily), bgcolor=color.gray, text_color=color.white) table.cell(t, 0, 1, "Threshold (Avg Vol * Mult)", bgcolor=color.orange, text_color=color.white) table.cell(t, 1, 1, str.tostring(avg_volume * multiplier), bgcolor=color.orange, text_color=color.white) table.cell(t, 0, 2, "Condition", bgcolor=is_high_volume ? color.green : color.red, text_color=color.white) table.cell(t, 1, 2, is_high_volume ? "True" : "False", bgcolor=is_high_volume ? color.green : color.red, text_color=color.white) // Alarm conditions alertcondition(is_high_volume, title="Volume High", message="Volume is at least {{multiplier}}x the average volume") alertcondition(not is_high_volume, title="Volume Low", message="Volume is below {{multiplier}}x the average volume")
önce İndikatör Pozisyonları ve Değerleri kategorisinde (14 puan) tarafından | 48 kez görüntülendi

1 cevap

0 beğenilme 0 beğenilmeme
Merhaba

Period:=50;
Carpim:=2;

Gunluk:=V;
OrtalamaHacim:=Mov(Gunluk,Period,S);
EsikDeger:=OrtalamaHacim*Carpim;

YuksekHacim:=Gunluk>=EsikDeger;

Gunluk;
OrtalamaHacim;
EsikDeger

Şeklinde indikatör buildera kopyalayıp deneyiniz.

Bilgilerinize.
önce (4,950 puan) tarafından
Hoş geldiniz, Matriks Destek Platformu sizlere sorularınızın hızlıca cevaplanması için bir ortam sağlar. Sorduğunuz ve cevapladığınız soruların ve yorumlarınızın aldığı oylar üzerinden puan kazanırsınız. Puan sistemine bağlı kampanyamızla ücretsiz kullanım avantajlarından faydalanabilirsiniz.



9,278 soru
9,235 cevap
5,057 yorum
31,469 kullanıcı