富邦人壽保險
姓名:張語恩
電話:0952972805
順便推薦一下目前熱賣的商品。
富邦人壽平安福保本保險
主要為意外險,繳費期間為 20 年,年滿後領回保險費總額的 1.02 倍。
保障到 111 歲。
相關內容請參考圖片:
.jpg)
不排斥還本型商品的話應該算是個不錯的選擇。









import java.net.*;
import java.io.*;
import java.lang.*;
import java.util.Calendar;
import java.text.SimpleDateFormat;
public class TwSMSJavaAPI
{
public static void main(String args[]) throws IOException
{
String phNumber[]={"", ""}; //手機號碼
Calendar rightNow = Calendar.getInstance();
SimpleDateFormat fmt = new SimpleDateFormat("HHmm");
String sysDatatime = fmt.format(rightNow.getTime());
String signalold = "0";
while(Integer.valueOf(sysDatatime).intValue() > 840 && Integer.valueOf(sysDatatime).intValue() < 1350)
{
BufferedReader br = new BufferedReader(new FileReader("D:/signal.txt")); //檔案路徑、名稱
String temp;
String[] signal;
temp = br.readLine();
signal = temp.split(",");
if (Integer.valueOf(sysDatatime).intValue() < 844)
{
signalold = signal[3];
}
if (Integer.valueOf(sysDatatime).intValue() > 844 && !(signalold.equals(signal[3])))
{
for (int i = 0; i < phNumber.length; i++)
{
sms(phNumber[i], signal[3], signal[5]);
}
signalold = signal[3];
}
try
{
Thread.sleep(1000);
}catch (InterruptedException e)
{
}
}
}
public static int sms(String phNumber, String position, String price)
{
try
{
// 設定變數
Socket socket;
String len;
InputStream Is;
OutputStream Os;
DataInputStream DIS;
PrintStream PS;
String msg = "";
String MSGData = "";
String GetData = "";
String MsgID = "";
// 設定參數
String username = ""; // 帳號
String password = ""; // 密碼
String type = "now"; // 發送型態
String mobile = phNumber; // 電話
String message = "目前倉位:" + position + ", 目前價位:" + price; // 簡訊內容
//String message = new String("簡訊測試".getBytes(),"big5");
String encoding = "big5"; // 簡訊內容編碼
String popup = ""; // 使用 POPUP 顯示
String mo = ""; // 使用雙向簡訊
String vldtime = ""; // 簡訊有效期限
String dlvtime = ""; // 預約時間
int Num = 0;
msg = "username="+username+"&password="+password+"&type="+type+"&encoding="+encoding+"&popup="+popup+"&mo="+mo+"&mobile="+mobile+"&message="+message+"&vldtime="+vldtime+"&dlvtime="+dlvtime;
Num = msg.length();
MSGData = MSGData+"POST /send_sms.php HTTP/1.1\r\n";
MSGData = MSGData+"Host: api.twsms.com\r\n";
MSGData = MSGData+"Content-Length: "+Num+"\r\n";
MSGData = MSGData+"Content-Type: application/x-www-form-urlencoded\r\n";
MSGData = MSGData+"Connection: Close\r\n\r\n";
MSGData = MSGData+msg+"\r\n";
// 開始送簡訊資料
socket=new Socket("api.twsms.com",80);
//獲得對應 socket 的輸入/輸出流
Is=socket.getInputStream();
Os=socket.getOutputStream();
//建立數據流
DIS=new DataInputStream(Is);
PS=new PrintStream(Os);
PS.println(MSGData);
int i=1;
while(true){
GetData = DIS.readLine();
if (i == 10)
{
MsgID = GetData;
}
if (GetData == null)break;
i++;
}
//關閉連接
DIS.close(); //關閉數據輸入流
PS.close(); //關閉數據輸出流
Is.close(); //關閉輸入流
Os.close(); //關閉輸出流
socket.close(); //關閉 socket
// 結果輸出
System.out.println("回傳碼:" + MsgID);
}
catch(Exception e){
System.out.println("無法連接 TwSMS API Server!");
}
return 0;
}
}
首先在 PowerEditor 按下 File - New ,可以看到上圖的畫面,基本上常用到的是 Indicator (指標) 和 Signal (訊號),Function 偶爾也會用到…這裡先不提了…今天用指標來教學…選擇 Signal 後,就給你的訊號一個名字吧…第二欄可以不用理它…要注意的是…名字請給英文…給中文滿容易有問題的。

這樣…代表你的程式沒問題…接下來要把程式放到一個策略裡面…HTS 也有這樣的功能,但是 HTS 不強制一定要用…不過 TS 這邊就不能省啦…所謂策略就是一個可以加入多個訊號的東西…當然只有一個訊號也是可以的…先到 PowerEditor 上面工具列選擇 Go - TradeStation StrategyBuilder。















看完了主畫面,先用一個自動關機的 Macro 來介紹一下吧,進立 Macro 編輯畫面後,左側就是可以用到的指令啦,包羅萬像,幾乎你想的到的應該都會在裡面找的到才對,右方就是現在存的指令,其實應該滿好懂的,第一行就是移動滑 鼠到螢幕某個地方,我第一行是移動到右上方去按視窗的「X」,這裡要提一下的是 Macro Express 做了一個很好用的功能在滑鼠移動上,就是只要按下 Ctrl - 空白鍵 它就會自己去抓到目前的座標了,以往的 Macro 還要自己 key 呢…



