本帖最後由 ilpir 於 10-5-21 12:46 PM 編輯  
 
會一點,回答一下: 
1。有時它會在昨天最後一根買進,今天才賣出 
->加入if date[0] <> date[1] then begin 或 設時間:if time>0845...  
 
2。好像跌,它也買,之後才賣 = = 漲它也買,之後賣 
->cross above  ,cross under 應不會有這問題,是否出場訊號看成sell,buy 
3。能夠設定反手嗎? 
->用這兩個 判斷條件cross above ,cross under 就已是反手了.  
 
4。能夠設定,在幾點之後,就自動賣出,停止交易了嗎? 
幾點,是指時間? 
加入 if time >幾點 then exitlong or exitshort ,if ** cross under ** and time<幾點 then .... 
幾點,是指點數? 
if (close - entryprice)>幾點 then Exitlong    at  market ; 
 
5。請問一下,如何讓程式,從開盤第1根K棒算起,而不是連從昨天的也算進去呢? 
->同問題1,用if date[0] <> date[1] then.....接你的判斷 
如果今天的日期不等於昨天日期..然後開始... 
 
還是指均線要重今天第一根算起..?? |