panacoran
panac****@yahoo*****
2008年 8月 12日 (火) 15:45:26 JST
次の次くらいのバージョンから、現在ptenv.conf、ptsimenv.conf、ptopt.conf の3つにわかれている設定ファイルを1本化して、形式をXMLにしようと 考えています。 それと銘柄リストを設定ファイルに格納して、ProtraとPtSimの両方か ら参照、編集できるようにするつもりです。 今のところ設定ファイルを書きだす処理だけをCVSにcommitしてありま す。書き出される設定ファイルはこんな感じになります。実際にはUTF-8 ですが。 <?xml version="1.0" encoding="utf-8"?><config> <protra> <window width="851" height="590" maxmized="False" panel-left-width="165" price-info-height="129" /> <chart-list number="3" mode="0" backgound-color="-1250856" foreground-color="-16777216" use-different-chart="True" draw-last-week="True"> <chart daily-file="Trend Indicators\Moving Average\MA(5-25-75).pt" weekly-file="" height="164" /> <chart daily-file="Momentum Indicators\RSI\RSI(14).pt" weekly-file="" height="178" /> <chart daily-file="Simple Chart\Volume.pt" weekly-file="" height="145" /> </chart-list> </protra> <ptsim mode="0" list="東証1部" /> <data-source name="YahooFinance" use-proxy="False" proxy-address="" proxy-port="-1" /> <brand-lists> <list name="お気に入り"> </list> <list name="東証1部"> 1001 1002 1301 1305 1306... </list> </brand-lists> </config> 何か意見がありましたらよろしくお願いします。 -- panacoran