收藏 分享(赏)

rrquantC47.doc

上传人:a****2 文档编号:3393837 上传时间:2024-04-15 格式:DOC 页数:4 大小:24KB
下载 相关 举报
rrquantC47.doc_第1页
第1页 / 共4页
rrquantC47.doc_第2页
第2页 / 共4页
rrquantC47.doc_第3页
第3页 / 共4页
rrquantC47.doc_第4页
第4页 / 共4页
亲,该文档总共4页,全部预览完了,如果喜欢就下载吧!
资源描述

1、/-/ 简称 rrquantC47/ 名称 人人宽客C47/ 类别 公式应用/ 类型 用户应用/ 输出 Void/-/策略思路:全品种中长线加仓通用策略:拳头;进场:双均线+收盘价过滤,同时也是反向进场点。盈利一定幅度,加仓一次。出场:ATR止损+棘轮止盈。/适用软件:TB/公式名称:人人宽客C47/数据周期:日/数据合约:指数合约/交易合约:主力合约/适合品种:苹果/玉米/淀粉/铁矿/焦炭/郑醇/PP/螺纹/橡胶/锰硅/郑煤等Params/此处添加参数Numeric Length1( 5 );Numeric Length2( 20 );Numeric M_HL( 10 );Numeric F

2、und( 20000 );Vars/此处添加变量NumericSeries Var1( 0 );NumericSeries TR( 0 );NumericSeries ATR( 0 );NumericSeries MA1( 0 );NumericSeries MA2( 0 );NumericSeries N_BuyK( 0 );NumericSeries N_SellK( 0 );NumericSeries ATR_BuyK( 0 );NumericSeries ATR_SellK( 0 );NumericSeries Price_BuyK( 0 );NumericSeries Price_S

3、ellK( 0 );NumericSeries Price_BuyAK( 0 );NumericSeries Price_SellAK( 0 );NumericSeries Price_SellS( 0 );NumericSeries Price_BuyS( 0 );NumericSeries Price_SellY( 0 );NumericSeries Price_BuyY( 0 );BoolSeries BuyPK( false );BoolSeries SellPK( false ); BoolSeries BuyAK( false );BoolSeries SellAK( false

4、);BoolSeries BuyA( false );BoolSeries SellA( false ); BoolSeries BuyS( false );BoolSeries SellS( false ); BoolSeries BuyY( false );BoolSeries SellY( false ); Begin/此处添加代码正文Var1=Max(1,IntPart(Fund/(Open*ContractUnit*BigPointValue*0.1);TR=Max(Max(High-Low),Abs(Close1-High),ABS(Close1-Low); ATR=Average

5、(TR,Length2); MA1=Average(Close,Length1);MA2=Average(Close,Length2);N_BuyK=BarsSinceEntry+1;N_SellK=BarsSinceEntry+1;BuyPK=High=Highest(High,Length1) & MA1MA2;SellPK=Low=Lowest(Low,Length1) & MA1Price_BuyAK;SellAK=ClosePrice_SellAK;SellS=Close=Price_BuyS;SellY=ClosePrice_BuyK+ATR_BuyK & Close=Price_

6、SellY;BuyY=Close=Price_BuyY;Price_SellY=Lowest(Low,M_HL)+N_BuyK*0.05*ATR;Price_BuyY=Highest(High,M_HL)-N_SellK*0.05*ATR;if (CurrentBarLength2)If (MarketPosition=0 and SellPK1) SellShort(Var1,O);Commentary(SPK);ATR_SellK=ATR;Price_SellK=Open;Price_SellAK=Price_SellK-ATR;Price_BuyS=Price_SellK+2*ATR;S

7、ellA=false;if (BarsSinceEntry1)If (MarketPosition0) if (BuyA=false and BuyAK1)Buy(Var1,O);Commentary(BAK);BuyA=True;if (SellS1)Sell(0,O);Commentary(SS);if (SellY1)Sell(0,O);Commentary(SY);If (MarketPosition0) if (SellA=false and SellAK1)SellShort(Var1,O);Commentary(SAK);SellA=True;If (BuyS1)BuyToCov

8、er(0,O);Commentary(BS);If (BuyY1)BuyToCover(0,O);Commentary(BY);/*PlotNumeric(Price_SellS,Price_SellS); Commentary(N_BuyK+Text(N_BuyK);Commentary(SellAK=+IIFString(SellAK,True,False);*/ End/-/ 编译版本2018-05-01 151201/ 内核版本V2.8.2.14/ 版权所有rrquant/ 更改声明TradeBlazer Software保留对TradeBlazer平台/每一版本的TradeBlazer公式修改和重写的权利/-

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 考研资料 > 公开课真题 > 033--【肖厂长【商业模式系统课】——创业七步法之创模式】第12课【战法招合集】超级专业IP-订阅制代理-自有品牌醉鹅娘模式拆解 > 033--【肖厂长【商业模式系统课】——创业七步法之创模式】第12课【战法招合集】超级专业IP-订阅制代理-自有品牌醉鹅娘模式拆解

copyright@ 2008-2023 wnwk.com网站版权所有

经营许可证编号:蜀ICP备2023000928号