2011年3月27日 星期日

HTS : 自動下單注意事項

1. HTSFileTrader2.exe : 檔案位置 修改 C:\JihSun\cur_cmd.txt

2. Variables: FileStr(" 1 F TXF 201104 ")

3. 作多時,STS code
If Condition1 and Condition2 and Condition3 and Condition4 and MarketPosition < 1 then
  Buy ("L1") this bar at CriticalPrice or Higher
  Buy ("L2") this bar at CriticalPrice or Lower
  TradeNumber = TradeNumber + 1
  if LastBarOnChart and MOD(Q_Time, 2) <> 0 then
    FileDelete("C:\jihsun\cur_cmd.txt")
    FileAppend("C:\jihsun\cur_cmd.txt", cdate(date) + " " + ctime(time)+ FileStr+ NumToStr(CurrentContracts,0) + " N")
  end if

end if

4. 放空時,STS code:
If Condition6 and Condition7 and Condition8 and Condition9 and MarketPosition > -1 then
  Sell ("S1") this bar at CriticalPrice or Higher
  Sell ("S2") this bar at CriticalPrice or Lower
  TradeNumber = TradeNumber + 1
  if LastBarOnChart and MOD(Q_Time, 2) <> 0 then
    FileDelete("C:\jihsun\cur_cmd.txt")
    FileAppend("C:\jihsun\cur_cmd.txt", cdate(date) + " " + ctime(time)+ FileStr+ NumToStr(CurrentContracts,0) + " N")

  end if
end if

沒有留言:

張貼留言