文华源码帮忙翻译一下 [文华财经]
- 咨询内容: 如图片~~~~~谢谢
此主题相关图片如下:01.jpg
此主题相关图片如下:02.jpg
- 文华技术人员:
改写如下:
todayVolatility: = STDP(CLOSE,30);
yesterDayVolatility: = STDP(REF(CLOSE,1),30);
deltaVolatility: = (todayVolatility - yesterDayVolatility)/todayVolatility;
LD : 20 * (1 + deltaVolatility);
LDZ: =IFELSE(LD-INTPART(LD)>0.5,CEILING(LD),FLOOR(LD));
LDX:=IFELSE(LDZ>60,60,IFELSE(LDZ<20,20,LDZ));
MidLine := MA(CLOSE,LDX);
Band: = STD(CLOSE,LDX);
upBand: = MidLine + 2 * Band;
dnBand: = MidLine - 2* Band;
buyPoint: =HHV(REF(HIGH,1),LDX);
sellPoint: =LLV(REF(LOW,1),LDX);
longLiqPoint: = MA(REF(CLOSE,1),LDX);
shortLiqPoint: =MA(REF(CLOSE,1),LDX);
CLOSE>upBand&&CROSS(HIGH,buyPoint),BK;
CLOSE<dnBand&&CROSS(sellPoint,L),SK;
CROSS(longLiqPoint,L),SP;
CROSS(H,shortLiqPoint),BP;
AUTOFILTER;仅供参考
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 262069696 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容