想請問如果想寫出個股在過去一陣子投信的買超金額都沒有進入排名,但是近N日有進入。
我有寫出近N日投信買超金額的語法,但是在此之前都沒有進入排名的語法不知道如何寫,請各位大大幫忙,謝謝!
投信賣超金額語法:
setbarmode(1);
input: period(1, numericsimple, "今天還是昨天");
input:n(5,numericsimple,"自訂天數");
settotalbar(n+5);
value1=GetField("投信買賣超");
value2=getfield("均價");
value6=summation(value1[period]*1000*value2[period]/100000000,n);
if value6>0
then
retval=value6
else
return;
2 評論