财经股票网

www.caijing889.xyz

大盘
股票行情 通达信 大智慧 同花顺 飞狐公式 股市 人民币 今日股市 今日股市行情 今日大盘 上证指数 金价 股票 日元 macd boll kdj obv cci rsi dmi vol ddx ddy
股票软件 指数 创业板指数 科创板 美元指数 大盘指数 大盘 人民币汇率 美元汇率 英镑汇率 日元汇率 港币兑人民币 美元兑人民币 外汇 期货 基金 操盘手 股吧
当前位置:首页 >> 指标公式 > 指标公式网
金字塔软件下 超短线 5分钟通道策略
  • 相关简介: 今日股市
  • 内容标签: 金字塔,软件,通道
  • 浏览次数: 1523
  • 运行环境: Win10,Win8,Win7,WinXP
  • 文章作者: 财经股票网
  • 文章来源:
  • 加入时间: 2018-09-14 22:45:17
  • 解压密码: (请仔细输入!复制无效!)
  • 大盘指数
软件下载说明:(注:已有源码的指标公式只需要复制源码,不提供文件下载!)

金字塔软件下 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);


版权保护: 本文由「财经股票网」编辑发布 转载请注明出处

文章链接:https://caijing889.xyz/zhibiao/show-13.html

免费下载提示:(下载本站资源请点下方“蓝色图标”进入下载页)

官方千人交流Q群8:

官方千人交流微信群1:



热门文章Top

股票配资广告- 广告合作- 下载声明- 免费下载- 网站地图- 网站XML- 股票公式- 谷歌XML 网站TXT- 公式网- 加入收藏

 Copyright © 2020   财经股票网 () ,  All Rights Reserved.       广告合作QQ: 1217450625


桂ICP备10001000号-1
关闭
关闭
关闭
关闭
关闭
关闭