例如:
我用九點的台指期價格來判斷我的選擇權(AA)履約價
If time=0900 and Intportion(Close of data2/100)*100=7100 then AA="TXO1P07000"; If time=0900 and Intportion(Close of data2/100)*100=7200 then AA="TXO1P07100";
....
請問"TXO1P07000","TXO1P07100"這兩個可以寫成迴圈嗎?
謝謝。
可以,但看起來你的需求應該不是用迴圈來做,直接串變數就可以了
試看看這樣是不是你要的
If time=0900 then AA="TXO1P0" + numtostr( Intportion(Close of data2/100-)*100);
酷~謝謝