文华ATR多空交易源码 带止损止赢[文华财经公式]
源码内容:参数[N 1 999 10 ] [M 1 999 10] [P 0 999 1][code]
TR:=MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW));
ATR:=EMA(TR,N);
EMA1:=EMA(CLOSE,M);
CLOSE>REF(C,P)&&CLOSE>EMA1+R*ATR&&TIME<1457,BPK;
CLOSE<REF(C,P)&&CLOSE<EMA1-R*ATR&&TIME<1457,SPK;
CLOSEMINUTE<=3||BKPRICE-C>=200,SP;
CLOSEMINUTE<=3||C-SKPRICE>=200,BP;
AUTOFILTER;
[/code]
页:
[1]