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

软件名称:[B]金字塔对应平仓示例[金字塔模型][/B]
软件类型:国产软件
运行环境:Win2000/WinXP/Win2003/WinVista
软件语言:简体中文
授权方式:共享软件
软件大小:0 Bytes
官方主页:Home Page
更新时间:2013-03-14 02:41:30
软件简介:

开仓条件为A对应平仓条件A1。开仓条件为B的话对应平仓条件为B1。

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

VARIABLE:aa=0;
VARIABLE:bb=0;
if holding=0 then aa:=0;
if holding=0 then bb:=0;

h20:ref(hhv(h,20),1);
l20:ref(llv(l,20),1);
ma2:ma(c,30);

A:=cross(c,h20);
A1:=cross(l20,c);
B:=cross(c,ma2);
B1:=cross(ma2,c);

if aa=1 and holding>0 and A1  then sell(1,holding,limitr,c);
if bb=1 and holding>0 and B1  then sell(1,holding,limitr,c);

if A and holding=0 then
begin
buy(1,1,limitr,c);
IF  A and  holding>0 THEN aa:=1;

end
if B and holding=0 then
begin
buy(1,1,limitr,c);
IF  B and  holding>0 THEN bb:=1;

end

分析 家公式网 www。88 gs。com


[url=http://www.70822.com/soft/sort013/sort068/down-59320.html]金字塔对应平仓示例[金字塔模型][/url]

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