:="" 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'="">:买开:="" 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'="">:买平:="" 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'="">:卖开:="" 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'="">:卖平:="" 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'="">
一,这些指令怎么加?在哪里加?
二,如何指定交易的品种?
三,如何关联账户?
网友回复:模型出信号自动下单,需要使用wh8量化软件实现,wh6看盘软件不支持的。
wh8是收费软件,在文华官网下载和购买:
https://www.wenhua.com.cn/
具体用法进入wh8菜单-》帮助-》软件说明书,量化交易基本流程部分了解。
写入指令参考:
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为开盘价
DIFF := EMA(CLOSE,12) - EMA(CLOSE,26);
DEA := EMA(DIFF,9);
//2*(DIFF-DEA),COLORSTICK;
//以上三行是定义MACD指标代码
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;