分析家公式网,提供指标公式,股票软件 用户登录  |  用户 注册

软件名称:[B]金字塔交易系统中移动止损得范例[金字塔模型][/B]
软件类型:国产软件
运行环境:Win2000/WinXP/Win2003/WinVista
软件语言:简体中文
授权方式:共享软件
软件大小:0 Bytes
官方主页:Home Page
更新时间:2013-03-15 04:21:19
软件简介:

金字塔公式 金字塔模型策略源码:

VARIABLE: aspect=0; //初始化假定做多头
VARIABLE: stopprice=0;//止损价咯变量
VARIABLE: stopnum = 10; //止损价差

RUNMODE:0;            //工作于逐周期模式

if barpos = 0 then
  stopprice := l - stopnum;

if aspect = 0 then
begin
 //多头处理 
 if l <= stopprice then
 begin
  //多反空
  aspect:= 1;
  stopprice := h+stopnum;
 end
 
 //处理移动的底部
 if l - stopnum > stopprice then
  stopprice := l-stopnum;
end

if aspect = 1 then
begin
 //空头处理 
 if h >= stopprice then
 begin
  //空反多
  aspect:= 0;
  stopprice := l-stopnum;
 end
 
 //处理移动的底部
 if h + stopnum < stopprice then
  stopprice := h+stopnum;
end

//画线
PARTLINE( aspect = 0, stopprice , colorrgb(255,0,0));
PARTLINE( aspect = 1, stopprice , colorrgb(0,255,0));


复制上述代码粘贴到到公式管理器
 


[url=http://www.70822.com/soft/sort013/sort068/down-59290.html]金字塔交易系统中移动止损得范例[金字塔模型][/url]

关于本站 | 网站帮助 | 广告合作 | 声明 | 友情连接 | 网站地图 |
分析家公式网声明:本站所有股票公式软件资料均网上公开收集,如侵权请联系删帖。站内所有广告,均与本站无关!
Copyright © 2003-2024 70822.Com. All Rights Reserved .
页面执行时间:46.87500 毫秒