請問怎么判斷此刻之前已經出現多少筆連虧(連盈)? [金字塔]
- 咨詢內容:
請問怎么此刻判斷之前已經出現多少筆連虧(連贏)?
非常感謝
- 金字塔客服:
交易策略是多空反手還是其他的不限定反手的?
- 用戶回復:
不是來回反手的
- 網友回復:
variable:n=0,m=0;
中間寫上自己的交易代碼
if numprofit(1)<0 and numprofit(2)<0 then n:=n+1;
if numprofit(1)>0 and numprofit(2)>0 then m:=m+1;
if numprofit(1)>0 and numprofit(2)<0 or numprofit(1)<0 and numprofit(2)>0 then begin
n:=0;
m:=0;
end
n是連虧次數,m是連贏次數
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 1145508240 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容