龙听期货论坛's Archiver

C
+
+


 微信: QQ:

龙听 发表于 2018-11-30 13:46

文华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]