以文本方式查看主题 - 金字塔客服中心 - 专业程序化交易软件提供商 (http://weistock.com/bbs/index.asp) -- 公式模型编写问题提交 (http://weistock.com/bbs/list.asp?boardid=4) ---- 一个思路请版主写成指标!! (http://weistock.com/bbs/dispbbs.asp?boardid=4&id=62041) |
-- 作者:jjjckk -- 发布时间:2014/2/26 10:11:24 -- 一个思路请版主写成指标!! 在多笔线图上使用。
1,能够取得N天的均价,如三天就取1,2,3号三天的均价,等第4天开盘时就取2,3, 4号的均价,把1号的价格排除。
2, 以均线表示,当价格上穿或下穿均线时用剑头标明,当一个剑头出现时锁定30秒钟,之后再重新计算。
3, 向上剑头出现时把K线涂染成红色,向下时染成蓝色。
先这么多了,谢谢!! |
-- 作者:jinzhe -- 发布时间:2014/2/26 10:34:15 -- ma3:ma(c,3); cond1:=cross(c,ma3); cond2:=cross(ma3,c); drawicon(cond1,close,4); drawicon(cond1,close,5); if cond1 then begin extgbdataset(\'time\',timetot0(currenttime)); end if cond2 then begin extgbdataset(\'time1\',timetot0(currenttime)); end
if cond1 and timetot0(currenttime)=extgbdata(\'time\')+15 then stickline(islastbar,o,c,10,0),colorred; if cond2 and timetot0(currenttime)=extgbdata(\'time1\')+15 then stickline(islastbar,o,c,10,0),colorblue;
|