指標跟回測都一樣寫法,指標有按想要的標出進出訊號,
2024-01-16 ex-long 是多倉平倉,回測報告確是"買進" 2024-01-17 short 是放空 回測報告 "賣出"‵ 2024-01-17 short 又變成買進一筆 技術指標跟警示是同一支程式,在技術指標 2024-01-16↓ 是"ex-long "多倉平倉 2024-01-17 ▼是"short"放空 技術指標是正確,回測結果卻差很多
 
 
 
if Position = 0 and longcondition then begin
// SetPosition(1);
    position=1;
// retmsg="long↑";ret=1;
 plot11(L ,"long↑");
end else if  Position = 1  and  exitlongcondition then begin
    position=0;
// retmsg="ex-long↓"; ret=1;
    plot12(H,"ex-long↓");
end else if _Position =0  and  shortcondition then begin
// SetPosition(0);
    position=-1;
//   retmsg="short▼";ret=1;
 plot13(H,"short▼");
end else if _Position = -1 and exitshort_condition then begin
// SetPosition(0);
    _position=0;
// retmsg="ex-short▲";ret=1;
 plot14(L,"ex-short▲");
end;
 
 
             
        
         
         
     
     分類
    分類
 
            
3 評論