时间显示公式改写 [文华财经]
- 咨询内容:
以下是通达信时间显示的源码,能改为文华使用吗,谢谢老师
DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.70,0.02,0,YEAR);DRAWTEXT_FIX(1,0.745,0.02,1,'年'),COLORRED;DRAWTEXT_FIX(1,0.78,0.02,1,'月'),COLORRED;DRAWTEXT_FIX(1,0.815,0.02,1,'日'),COLORRED;DRAWTEXT_FIX(1,0.845,0.02,1,'星期'),COLORRED;DRAWTEXT_FIX(1,0.92,0.02,1,'时'),COLORRED;DRAWTEXT_FIX(1,0.95,0.02,1,'分'),COLORRED;DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.75,0.02,0,MONTH);DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.785,0.02,0,DAY);DRAWNUMBER_FIX(CURRBARSCOUNT=1,0.85,0.02,0,WEEKDAY);DRAWNUMBER_FIX(CURRBARSCOUNT=1 AND FROMOPEN<121,0.88,0.02,0,INTPART((34200+FROMOPEN*60)/3600));DRAWNUMBER_FIX(CURRBARSCOUNT=1 AND FROMOPEN>120,0.88,0.02,0,INTPART((34200+FROMOPEN*60+5400)/3600));DRAWNUMBER_FIX(CURRBARSCOUNT=1 AND DYNAINFO(9)>5000 AND C>4,0.9,0.8,0,DYNAINFO(9)),COLORMAGENTA;DRAWNUMBER_FIX(CURRBARSCOUNT=1 AND FROMOPEN<121,0.92,0.02,0,60*(((34200+FROMOPEN*60)/3600)-INTPART((34200+FROMOPEN*60)/3600)));DRAWNUMBER_FIX(CURRBARSCOUNT=1 AND FROMOPEN>120,0.92,0.02,0,60*(((34200+FROMOPEN*60+5400)/3600)-INTPART((34200+FROMOPEN*60+5400)/3600)));
此主题相关图片如下:时间显示条.png
- 文华技术人员:
上述模型中DRAWTEXT_FIX函数在屏幕指定坐标标记目前文华没有可替代函数,后续我们会考虑增加更多函数来实现您的想法;
目前您可以使用DATE、WEEKDAY、TIME函数可以达到类似效果:
此主题相关图片如下:赢顺截图20150202085617.jpg
有思路,想编写各种指标公式,程序化交易模型,选股公式,预警公式的朋友
可联系技术人员 QQ: 511411198 进行 有偿 编写!(不贵!点击查看价格!)
相关文章
-
没有相关内容