欢迎使用金字塔普通技术服务论坛,您可以在相关区域发表技术支持贴。
我司技术服务人员将优先处理 VIP客服论坛 服务贴,普通区问题处理速度慢,请耐心等待。谢谢您对我们的支持与理解。


金字塔客服中心 - 专业程序化交易软件提供商金字塔软件公式模型编写问题提交 → 帝那波利趋势代码

   

欢迎使用金字塔普通技术服务论坛,您可以在相关区域发表技术支持贴。
我司技术服务人员将优先处理 VIP客服论坛 服务贴,普通区问题处理速度慢,请耐心等待。谢谢您对我们的支持与理解。    


  共有6074人关注过本帖树形打印复制链接

主题:帝那波利趋势代码

帅哥哟,离线,有人找我吗?
KKSH
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:新手上路 帖子:24 积分:112 威望:0 精华:0 注册:2011/2/15 21:08:00
帝那波利趋势代码  发帖心情 Post By:2011/3/7 15:11:52    Post IP:112.65.22.175[显示全部帖子]

 

{UP}
C>=Ref(Mov(C,3,S),-3) AND
(Mov( CLOSE, 8.3896, E) - Mov( CLOSE, 17.5185, E))>=
(PREV+(0.199*((Mov( CLOSE, 8.3896, E) - Mov( CLOSE, 17.5185, E))-PREV))) AND
(Mov( CLOSE, 8.3896, E) - Mov( CLOSE, 17.5185, E))>=
Ref((Mov( CLOSE, 8.3896, E) - Mov( CLOSE, 17.5185, E)),-1)

 

{DOWN};
C<=Ref(Mov(C,3,S),-3) AND
(Mov( CLOSE, 8.3896, E) - Mov( CLOSE, 17.5185, E))<=
(PREV+(0.199*((Mov( CLOSE, 8.3896, E) - Mov( CLOSE, 17.5185, E))-PREV))) AND
(Mov( CLOSE, 8.3896, E) - Mov( CLOSE, 17.5185, E))<=
Ref((Mov( CLOSE, 8.3896, E) - Mov( CLOSE, 17.5185, E)),-1){jimt};


 回到顶部
帅哥哟,离线,有人找我吗?
KKSH
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:新手上路 帖子:24 积分:112 威望:0 精华:0 注册:2011/2/15 21:08:00
  发帖心情 Post By:2011/3/7 16:43:07    Post IP:112.65.22.175[显示全部帖子]

MOV就是移动平均线,最后是E的话是EMA的意思,是S的话是SMA的意思,这个是确定的

 

PREV是类似公式重复计算前一根的意思

 

 

[此贴子已经被作者于2011-3-7 16:53:19编辑过]

 回到顶部
帅哥哟,离线,有人找我吗?
KKSH
  3楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:新手上路 帖子:24 积分:112 威望:0 精华:0 注册:2011/2/15 21:08:00
  发帖心情 Post By:2011/3/7 16:43:23    Post IP:112.65.22.175[显示全部帖子]

Metastock的语法

 回到顶部
帅哥哟,离线,有人找我吗?
KKSH
  4楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:新手上路 帖子:24 积分:112 威望:0 精华:0 注册:2011/2/15 21:08:00
  发帖心情 Post By:2011/3/7 16:54:05    Post IP:112.65.22.175[显示全部帖子]

PREV
The PREV constant allows you to create self-referencing formulas.  A self referencing formula is one that is able to reference the "previous" period's value of itself.
For example, the following is an example of a self referencing formula:
((H+L+C)/3) + PREV
This simple formula divides the high, low, and closing prices by 3 and then adds this value to yesterday's value of the ((H+L+C)/3).
The calculation of the popular indicator On Balance Volume illustrates the use of the PREV function.

(if(c>ref(c,-1),1,-1)*volume)+PREV
Although On Balance Volume can be calculated without the use of the PREV function, an exponential moving average cannot (other than using the mov() function).  The following formula shows how a 18% exponential moving average (approximately 10-periods) is calculated using the PREV function.
(close*0.18)+(PREV*0.82)


 回到顶部