金融量化紅白大對抗 P-Quant v.s. Q-Quant

P-Quant & Q-Quant 金融量化中的“紅軍”和“白軍” 很多人不知道有這對名詞,但我相信大家都會有一個疑惑,對衍生品定價算不算量化? 那麼對沖基金裡面用模型找到的交易策略算不算量化?如果都是量化的範疇,那麼這兩個方面看起來差別特別大。我...

2020年5月23日 星期六

2020/05/24 MultiChart Class


40年出現一次訊號的交易策略,回測沒有意義
所以
一個月交易一次
一個週交易一次
一個天交易一次
一小時交易一次
一分鐘交易一次

要回測的標準都不一樣

網路資源

策略四象限:
波動大
波動小
趨勢明顯
趨勢不明

-----------

Input:aa(1);


ArraysNarrow[10](False);


Range3D=MaxList(HighD(1),HighD(2),HighD(3), -MinList(Low(1),Low(2),Low(3));


Std=StdDev(close,20);


Narrow[1]=Range3D<0.01 * CLoseD(1);


Narrow[2]=std<Lowest(Std,30)[1];


if EntriesToday(Date)=0 and ExitsToday(Date) = then begin


If Narrow[aa] then begin


// Buy next bar at High stop;       


// Sellshort next bar at Lowest(Low) stop;  


Buy next bar at Highest(High,30) stop; # 


Sellshort next bar at Lowest(Low,30) stop;


// Buy next bar at MaxList(HighD(1), HighD(2), HighD(3) ) stop;   # ?????? 


// Sellshort next bar at Lowest(LowD(1), LowD(2), LowD(3)) stop;


End;  //if Narror then begin


End;


-----------------


沒有留言:

張貼留言