看板 R973230XX 關於我們 聯絡資訊
大大你們好 小弟想請教,今天我把excel檔放在C槽,命名為Bookma,要算MA5大於MA7時定義為 虛擬變數1,MA5中小於MA7時定義為0 日期 收盤 MA7 MA5 2009.07.22 0.8139 0.808371429 0.81014 2009.07.21 0.8169 0.805585714 0.80834 . . . . . . 資料一共是4行2043列。 以下是我寫的語法,就是不知道那邊錯,請多多指教。 read Bookma[2043,4]=C:\gauss9.0\Bookma.exl; Bookma[2043,4]=MA_DAT; MA5=MA_DAT[.,4]; MA7=MA_DAT[.,3]; MA_Dum=zeros(rows(MA_DAT),1); i=1; do while i<=rows(MA_DAT); if MA7[i]>MA5[i]; MA_DAT[i,1]=0; endif; i=i+1; endo; MA_Dum; 資訊結果如下: Line 1 in C:\Documents and Settings\Administrator\桌面\16 Undefined symbol G0025 : 'Bookma' Line 3 in C:\Documents and Settings\Administrator\桌面\16 Operand missing G0064 Line 3 in C:\Documents and Settings\Administrator\桌面\16 Syntax error G0008 : 'MA5=MA_DAT[.,4]' -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.44.117.228
edcv25810:印象中以前自己在跑gauss都是用記事本的data 要不要轉試 08/06 10:42
edcv25810:看看用記事本檔 就txt或prn不然excel中data數值檢查一下 08/06 10:43