- Katılım
- 23 Eki 2020
- Mesajlar
- 1,828
Measuring $ turnover makes more sense than comparing Volume - multiple outputs. |
|
Turnover $ by Jose Silva { http://www.metastocktools.com } { User inputs } thr:=Input("% Threshold of highest historical $ turnover",0,100,33)/100; pds:=Input("Average $ turnover over x periods", 1,260,63); plot:=Input("[1]$turnover, [2]above highest %, [3]above Avg$",1,3,1); { Approx $ turnover } to:=V*WC(); { Highest historical $ turnover } hi:=Highest(to); { Avg $ turnover } avg:=Mov(to,pds,E); { Above % threshold $ turnover signals } signals1:=to>hi*thr; { Above avg $ turnover signals } signals2:=to>avg; { Plot in own window } If(plot=1,hi*thr,0); If(plot=1,avg,0); If(plot=1,to,If(plot=2,signals1,signals2)) |
Source / From: |