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

软件名称:[B]5分钟通道策略(金字塔程序化 源码 贴图)[/B]
软件类型:国产软件
运行环境:Win9X/Win2000/WinXP/Win2003/Win7/
软件语言:简体中文
授权方式:免费版
软件大小:1.00 KB
官方主页:Home Page
更新时间:2016-04-02 00:47:24
软件简介:

金字塔软件下 5分钟通道策略
5分钟通道策略旨在捕捉趋势行情中在上升或者下降通道内的震荡,
即捕捉市场中有意义的回撤,通过短线持有以获得小额收益的积累。
应用周期:5分钟
}
//定义参数
Input:N(12,1,100,1);//均线和标准差参数
Num:=1;//开仓手数
//中间变量
Ma10:Ma(c,N);//10日均线
Std1:=Std(c,N);//一个标准差
Upper:=Ma10+Std1;//通道上轨
Bottom:=Ma10-Std1;//通道下轨
BuyCond:=h>ref(h,1) and l>ref(l,1) and l<=Bottom;//上涨趋势中价咯触及下轨
SellCond:=h<ref(l,1) and l<ref(l,1) and h>=Upper;//下跌趋势中价咯初级上轨开仓
//下单语句
if BuyCond then begin
Sellshort(holding<0,0,market);//市价平空
Buy(holding=0,Num,market);//市价开多
end
if SellCond then begin
Sell(holding>0,0,market);//市价平多
BuyShort(holding=0,Num,market);//市价开空
end
//止盈止损
Win_Buy:=h-enterprice>=2;//多头盈利2点
Win_Sell:=enterprice-l>=2;//空头盈利2点
Lose_Buy:=enterprice-l>=1.25;//多头亏损1.25点
Lose_Sell:=h-enterprice>=1.25;//空头亏损1.25点
//市价止盈止损
if Win_Buy and holding>0 then 多止盈:Sell(enterbars>0,0,market);
if Win_Sell and holding<0 then 空止盈:Sellshort(enterbars>0,0,market);
if Lose_Buy and holding>0 then 多止损:Sell(enterbars>0,0,market);
if Lose_Sell and holding<0 then 空止损:Sellshort(enterbars>0,0,market);


[url=http://www.70822.com/soft/sort013/sort068/down-96681.html]5分钟通道策略(金字塔程序化 源码 贴图)[/url]

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