黑馬財富股池指標 公式 源碼[大智慧公式]
指標公式代碼分析及使用參考說明:
?
這段代碼是一個程序化交易策略的指標公式。以下是對每個指標公式的解釋和使用建議:
1. `WWWDE16:=(OPEN > WMA(CLOSE,233));` - 這個公式是計算一個股票是否在開盤價高于233日加權移動平均線(Weighted Moving Average,WMA)的條件下進行交易。建議:當股票開盤價高于233日WMA時,可能存在買入信號。
2. `cxh51:=(3)*(SMA(((CLOSE - LLV(LOW,144))/(HHV(HIGH,144) - LLV(LOW,144)))*(100),20,1)) - (2)*(SMA(SMA(((CLOSE - LLV(LOW,144))/(HHV(HIGH,144) - LLV(LOW,144)))*(100),20,1),15,1));` - 這個公式計算了一個趨勢指標的值。建議:當該指標值大于100時,可能存在上漲趨勢。
3. `cxh62:=(3)*(SMA(((OPEN - LLV(LOW,144))/(HHV(HIGH,144) - LLV(LOW,144)))*(100),20,1)) - (2)*(SMA(SMA(((OPEN - LLV(LOW,144))/(HHV(HIGH,144) - LLV(LOW,144)))*(100),20,1),15,1));` - 這個公式計算了另一個趨勢指標的值。建議:當該指標值大于100時,可能存在上漲趨勢。
4. `cxh75:=cxh62 - 100;` - 這個公式計算了一個相對于上一個公式的偏移值。建議:當該值大于0時,可能存在上漲趨勢。
5. `cxh89:=cxh51 - 100;` - 這個公式計算了另一個相對于第二個公式的偏移值。建議:當該值大于0時,可能存在上漲趨勢。
根據這些指標公式,你可以使用以下步驟進行分析和決策:
1. 對于股票的買入信號,當開盤價高于233日WMA時,考慮買入股票。
2. 對于趨勢指標,當指標值大于100時,可能存在上漲趨勢。
3. 對于偏移值,當值大于0時,可能存在上漲趨勢。
請注意,這只是一個簡單的解釋和建議,具體的交易決策還需要結合其他因素進行綜合分析。建議在實際應用中進行進一步驗證和優化。
?
源碼:
WWWDE16:=(OPEN > WMA(CLOSE,233));
cxh51:=(3)*(SMA(((CLOSE - LLV(LOW,144))/(HHV(HIGH,144) - LLV(LOW,144)))*(100),20,1)) - (2)*(SMA(SMA(((CLOSE - LLV(LOW,144))/(HHV(HIGH,144) - LLV(LOW,144)))*(100),20,1),15,1));
cxh62:=(3)*(SMA(((OPEN - LLV(LOW,144))/(HHV(HIGH,144) - LLV(LOW,144)))*(100),20,1)) - (2)*(SMA(SMA(((OPEN - LLV(LOW,144))/(HHV(HIGH,144) - LLV(LOW,144)))*(100),20,1),15,1));
cxh75:=cxh62 - 100;
cxh89:=cxh51 - 100;
cxh886:=IF((YEAR >= 2308) and (MONTH >= 1),0,1);
cxh557:=(3)*(SMA(((CLOSE - LLV(LOW,144))/(HHV(HIGH,144) - LLV(LOW,144)))*(100),20,1)) - (2)*(SMA(SMA(((CLOSE - LLV(LOW,144))/(HHV(HIGH,144) - LLV(LOW,144)))*(100),20,1),15,1));
cxh666:=(3)*(SMA(((OPEN - LLV(LOW,144))/(HHV(HIGH,144) - LLV(LOW,144)))*(100),20,1)) - (2)*(SMA(SMA(((OPEN - LLV(LOW,144))/(HHV(HIGH,144) - LLV(LOW,144)))*(100),20,1),15,1));
cxh747:=cxh62 - 100;
cxh855:=cxh51 - 100;
財富股池:=(OPEN > WMA(CLOSE,233));
WWWDE163:=(OPEN > WMA(CLOSE,233));
cxh5:=(3)*(SMA(((CLOSE - LLV(LOW,144))/(HHV(HIGH,144) - LLV(LOW,144)))*(100),20,1)) - (2)*(SMA(SMA(((CLOSE - LLV(LOW,144))/(HHV(HIGH,144) - LLV(LOW,144)))*(100),20,1),15,1));
cxh6:=(3)*(SMA(((OPEN - LLV(LOW,144))/(HHV(HIGH,144) - LLV(LOW,144)))*(100),20,1)) - (2)*(SMA(SMA(((OPEN - LLV(LOW,144))/(HHV(HIGH,144) - LLV(LOW,144)))*(100),20,1),15,1));
cxh7:=cxh6 - 100;
cxh8:=cxh5 - 100;
cxh88:=IF((YEAR >= 2308) and (MONTH >= 1),0,1);
cxh55:=(3)*(SMA(((CLOSE - LLV(LOW,144))/(HHV(HIGH,144) - LLV(LOW,144)))*(100),20,1)) - (2)*(SMA(SMA(((CLOSE - LLV(LOW,144))/(HHV(HIGH,144) - LLV(LOW,144)))*(100),20,1),15,1));
cxh66:=(3)*(SMA(((OPEN - LLV(LOW,144))/(HHV(HIGH,144) - LLV(LOW,144)))*(100),20,1)) - (2)*(SMA(SMA(((OPEN - LLV(LOW,144))/(HHV(HIGH,144) - LLV(LOW,144)))*(100),20,1),15,1));
cxh74:=cxh6 - 100;
cxh85:=cxh5 - 100;
RSV:=(((CLOSE - LLV(LOW,21))/(HHV(HIGH,21) - LLV(LOW,21)))*(100))*(cxh88);
趨勢:(MA((3)*(SMA(RSV,6,1)) - (2)*(SMA(SMA(RSV,5,1),5,1)),2))*(cxh88),Linethick2,coloryellow;
cxh1:=(3)*(SMA(((CLOSE - LLV(LOW,89))/(HHV(HIGH,89) - LLV(LOW,89)))*(100),20,1)) - (2)*(SMA(SMA(((CLOSE - LLV(LOW,89))/(HHV(HIGH,89) - LLV(LOW,89)))*(100),20,1),15,1));
cxh2:=(3)*(SMA(((OPEN - LLV(LOW,89))/(HHV(HIGH,89) - LLV(LOW,89)))*(100),20,1)) - (2)*(SMA(SMA(((OPEN - LLV(LOW,89))/(HHV(HIGH,89) - LLV(LOW,89)))*(100),20,1),15,1));
cxh3:=cxh2 - 100;
cxh4:=cxh1 - 100;
背離:(FORCAST(((-1))*(cxh3),21))*(cxh88),Linethick2,Color9933FF;
曉柔:DRAWTEXT((CROSS(趨勢,背離))*(cxh88),背離,'黑馬'),colorred;
RSV1:=((CLOSE - LLV(LOW,21))/(HHV(HIGH,21) - LLV(LOW,21)))*(100);
中期:=SMA(RSV1,21,1);
DE163:=SMA(中期,21,1);
短期:=(3)*(中期) - (2)*(DE163);
錢龍:DRAWTEXT((CROSS(背離,趨勢))*(cxh88),背離,'●'),Color00FF00;
曉柔2:DRAWTEXT(((趨勢)/(背離) > (8)*(cxh88)) and (背離 < 10) and (趨勢 > 80),(趨勢)*(1.120000004768),'跑'),Color00FF00;
RSV11:=((CLOSE - LLV(LOW,21))/(HHV(HIGH,21) - LLV(LOW,21)))*(100);
中1期:=SMA(RSV1,21,1);
DE16:=SMA(中1期,21,1);
短1:=(3)*(中1期) - (2)*(DE163);
錢龍2:DRAWTEXT((背離 < (5)*(cxh88)) and (趨勢 > (60)*(cxh88)),(趨勢)*(1.120000004768),'跑'),Color00FF00;
跟蹤天數:(BARSLAST((趨勢 < 背離)))*(cxh88),colorred;
cxh500:=(3)*(SMA(((CLOSE - LLV(LOW,144))/(HHV(HIGH,144) - LLV(LOW,144)))*(100),20,1)) - (2)*(SMA(SMA(((CLOSE - LLV(LOW,144))/(HHV(HIGH,144) - LLV(LOW,144)))*(100),20,1),15,1));
cxh600:=(3)*(SMA(((OPEN - LLV(LOW,144))/(HHV(HIGH,144) - LLV(LOW,144)))*(100),20,1)) - (2)*(SMA(SMA(((OPEN - LLV(LOW,144))/(HHV(HIGH,144) - LLV(LOW,144)))*(100),20,1),15,1));
cxh700:=cxh600 - 100;
cxh800:=cxh500 - 100;
主力控盤:(CYW)*(cxh88),ColorStick,coloryellow;
(CYW)*(cxh88),ColorStick,coloryellow;
DE13:=(OPEN > WMA(CLOSE,233));
cxh50:=(3)*(SMA(((CLOSE - LLV(LOW,144))/(HHV(HIGH,144) - LLV(LOW,144)))*(100),20,1)) - (2)*(SMA(SMA(((CLOSE - LLV(LOW,144))/(HHV(HIGH,144) - LLV(LOW,144)))*(100),20,1),15,1));
cxh60:=(3)*(SMA(((OPEN - LLV(LOW,144))/(HHV(HIGH,144) - LLV(LOW,144)))*(100),20,1)) - (2)*(SMA(SMA(((OPEN - LLV(LOW,144))/(HHV(HIGH,144) - LLV(LOW,144)))*(100),20,1),15,1));
cxh70:=cxh60 - 100;
cxh80:=cxh50 - 100;
cxh880:=IF((YEAR >= 2308) and (MONTH >= 1),0,1);
cxh550:=(3)*(SMA(((CLOSE - LLV(LOW,144))/(HHV(HIGH,144) - LLV(LOW,144)))*(100),20,1)) - (2)*(SMA(SMA(((CLOSE - LLV(LOW,144))/(HHV(HIGH,144) - LLV(LOW,144)))*(100),20,1),15,1));
cxh660:=(3)*(SMA(((OPEN - LLV(LOW,144))/(HHV(HIGH,144) - LLV(LOW,144)))*(100),20,1)) - (2)*(SMA(SMA(((OPEN - LLV(LOW,144))/(HHV(HIGH,144) - LLV(LOW,144)))*(100),20,1),15,1));
cxh740:=cxh60 - 100;
cxh850:=cxh50 - 100;{程序化交易 www.kzuj.com.cn }
?
公式導入教程: 【通達信公式源碼導入方法教程】 【同花順公式源碼導入方法教程】 【大智慧新一代公式源碼導入方法教程】
?
有思路,想編寫各種指標公式,交易模型,選股公式,還原公式的朋友
可聯系技術人員 QQ: 262069696 或微信:cxhjy888 進行 有償收費 編寫!(注:由于人數限制,QQ或微信請選擇方便的一個聯系我們就行,加好友時請簡單備注下您的需求,否則無法通過。謝謝您!)
(注:由于人數限制,QQ或微信請選擇方便的一個聯系我們就行,加好友時請簡單備注下您的需求,否則無法通過。謝謝您!)
相關文章
-
沒有相關內容