作者:文華財(cái)經(jīng) 來(lái)源:cxh99.com 發(fā)布時(shí)間:2023年06月15日
:="" none;="" color:="" rgb(68,68,68);="" font-style:="" orphans:="" 2;="" widows:="" letter-spacing:="" background-color:="" rgb(255,255,255);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="">BK:="" none;="" float:="" font-weight:="" 400;="" color:="" rgb(68,68,68);="" font-style:="" orphans:="" 2;="" widows:="" display:="" inline="inline" !important;="" letter-spacing:="" background-color:="" rgb(255,255,255);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="">:買(mǎi)開(kāi):="" none;="" font-weight:="" 400;="" color:="" rgb(68,68,68);="" font-style:="" orphans:="" 2;="" widows:="" letter-spacing:="" background-color:="" rgb(255,255,255);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="" />
:="" none;="" color:="" rgb(68,68,68);="" font-style:="" orphans:="" 2;="" widows:="" letter-spacing:="" background-color:="" rgb(255,255,255);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="">BP:="" none;="" float:="" font-weight:="" 400;="" color:="" rgb(68,68,68);="" font-style:="" orphans:="" 2;="" widows:="" display:="" inline="inline" !important;="" letter-spacing:="" background-color:="" rgb(255,255,255);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="">:買(mǎi)平:="" none;="" font-weight:="" 400;="" color:="" rgb(68,68,68);="" font-style:="" orphans:="" 2;="" widows:="" letter-spacing:="" background-color:="" rgb(255,255,255);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="" />
:="" none;="" color:="" rgb(68,68,68);="" font-style:="" orphans:="" 2;="" widows:="" letter-spacing:="" background-color:="" rgb(255,255,255);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="">SK:="" none;="" float:="" font-weight:="" 400;="" color:="" rgb(68,68,68);="" font-style:="" orphans:="" 2;="" widows:="" display:="" inline="inline" !important;="" letter-spacing:="" background-color:="" rgb(255,255,255);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="">:賣(mài)開(kāi):="" none;="" font-weight:="" 400;="" color:="" rgb(68,68,68);="" font-style:="" orphans:="" 2;="" widows:="" letter-spacing:="" background-color:="" rgb(255,255,255);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="" />
:="" none;="" color:="" rgb(68,68,68);="" font-style:="" orphans:="" 2;="" widows:="" letter-spacing:="" background-color:="" rgb(255,255,255);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="">SP:="" none;="" float:="" font-weight:="" 400;="" color:="" rgb(68,68,68);="" font-style:="" orphans:="" 2;="" widows:="" display:="" inline="inline" !important;="" letter-spacing:="" background-color:="" rgb(255,255,255);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="">:賣(mài)平:="" none;="" float:="" font-weight:="" 400;="" color:="" rgb(68,68,68);="" font-style:="" orphans:="" 2;="" widows:="" display:="" inline="inline" !important;="" letter-spacing:="" background-color:="" rgb(255,255,255);="" text-indent:="" font-variant-ligatures:="" font-variant-caps:="" -webkit-text-stroke-width:="" text-decoration-style:="" initial;="" text-decoration-color:="" initial'="">
一,這些指令怎么加?在哪里加?
二,如何指定交易的品種?
三,如何關(guān)聯(lián)賬戶?
?
?
網(wǎng)友回復(fù):模型出信號(hào)自動(dòng)下單,需要使用wh8量化軟件實(shí)現(xiàn),wh6看盤(pán)軟件不支持的。
?
wh8是收費(fèi)軟件,在文華官網(wǎng)下載和購(gòu)買(mǎi):
?
https://www.wenhua.com.cn/?
?
具體用法進(jìn)入wh8菜單-》幫助-》軟件說(shuō)明書(shū),量化交易基本流程部分了解。
?
寫(xiě)入指令參考:
MA1:MA(CLOSE,5);
MA2:MA(CLOSE,10);
MA3:MA(C,60);
MA1,COLORWHITE;
MA2,COLORYELLOW;
MA3,COLORRED;
?
F:=VALUEWHEN(TIME=2100,O);//定義21:00為開(kāi)盤(pán)價(jià)
DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);
DEA := EMA(DIFF,9);
//2*(DIFF-DEA),COLORSTICK;
//以上三行是定義MACD指標(biāo)代碼
?
VAL2:=(C>=MA2)&&C>=MA3;//10、60日線上紅豆;
VAL3:=(C<=MA2)&&C<MA3;//10、60日線下綠豆;
CROSS(VAL2,0.5)||VAL2&&DAYBARPOS<REF(VALUEWHEN(VAL2,DAYBARPOS),1) ||VAL2&&TIME=0900,BPK;
CROSS(VAL3,0.5)||VAL3&&DAYBARPOS<REF(VALUEWHEN(VAL3,DAYBARPOS),1) ||VAL3&&TIME=0900,SPK;
AUTOFILTER;
?