新年快乐
本帖最后由 zhilifu 于 2017-1-26 08:55 编辑. 加我461560244 :handshake :shutup: 根本没法用,严重偷价,被这垃圾骗了1000块,大家别被骗了! Params
Numeric XiShu1(0.65);
Numeric XiShu2(0.65);
Numeric Lots(1); //手数,自己想开几手就设置几手
Numeric Hyl(0.8); //最高盈利百分比,1表示1%
Numeric Hc(0.3); //回撤百分比,1表示1%
Vars
NumericSeries OpenToday;
NumericSeries Band1;
NumericSeries Band2;
NumericSeries UpperBand;
NumericSeries LowerBand;
NumericSeries SellBand;
NumericSeries BuyToCoverBand;
NumericSeries myEntryPrice;
NumericSeries isHyl;//是否达到最大盈利
Begin
If(Date >= 20170501) return;
OpenToday=OpenD(0);
Band1=(HighD(1)-LowD(1))*Max(XiShu1,XiShu2);
UpperBand=OpenToday+Band1;
LowerBand=OpenToday-Band1;
Band2=(HighD(1)-LowD(1))*Min(XiShu1,XiShu2);
SellBand=OpenToday-Band2;
BuyToCoverBand=OpenToday+Band2;
PlotNumeric("UpperBand",UpperBand);
PlotNumeric("LowerBand",LowerBand);
PlotNumeric("SellBand",SellBand);
PlotNumeric("BuyToCoverBand",BuyToCoverBand);
//PlotNumeric("OpenToday",OpenToday);
If(MarketPosition==1 and (High-EntryPrice)/EntryPrice>=Hyl/100)
{
isHyl=1;
}
If(MarketPosition==1 and isHyl==1 and (Low-EntryPrice)/EntryPrice<=Hc/100)
{
isHyl=0;
Sell(Lots,EntryPrice*(1+Hc));
}
If(MarketPosition==-1 and (EntryPrice-Low)/EntryPrice>=Hyl/100)
{
isHyl=1;
}
If(MarketPosition==-1 and isHyl==1 and (EntryPrice-High)/EntryPrice<=Hc/100)
{
isHyl=0;
BuyToCover(Lots,EntryPrice*(1-Hc));
}
If(MarketPosition==-1 && High>=BuyToCoverBand)
{
If(Open>BuyToCoverBand) myEntryPrice=Open;
Else myEntryPrice=BuyToCoverBand;
BuyToCover(Lots,myEntryPrice);
}
If(MarketPosition==1 && Low<=SellBand)
{
If(Open<SellBand) myEntryPrice=Open;
Else myEntryPrice=SellBand;
Sell(Lots,myEntryPrice);
}
If(MarketPosition!=-1 && Low<=LowerBand)
{
If(Open<LowerBand) myEntryPrice=Open;
Else myEntryPrice=LowerBand;
SellShort(Lots,myEntryPrice);
}
If(MarketPosition!=1 && High>=UpperBand)
{
If(Open>UpperBand) myEntryPrice=Open;
Else myEntryPrice=UpperBand;
Buy(Lots,myEntryPrice);
}
End 我贴出来上述公式大家看看,记住这个人,避免上当受骗。 偷价之处在于:
If(MarketPosition==1 and (High-EntryPrice)/EntryPrice>=Hyl/100) //当有多单,且在上一根K时盈利最大达到Hyl%时
{
isHyl=1;
}
If(MarketPosition==1 and isHyl==1 and (Low-EntryPrice)/EntryPrice<=Hc/100) //当有多单,且上上一根K盈利最大达到Hyl%时,本根K盈利小于Hyl%时
{
isHyl=0;
Sell(Lots,EntryPrice*(1+Hc)); //以盈利HC%的价格平多单,此处偷价!!!其实根本不能保证以以盈利HC%的价格平多单,说不定在上根K或者上上根K就跌的找不到了,空单同理。
} 大家记住楼主这个骗子“zhilifu” sss1983320 发表于 2017-1-25 18:28 static/image/common/back.gif
大家记住楼主这个骗子“zhilifu”
其实,你只要想一下,如果他的模型真的那么牛B,早自己发财去了,还用卖给你去挣你那几百一千的模型费?各个论坛,各个QQ群、微信群,都充斥着各种“神”模,你想,他们那么牛B,为何还浪费时间在这里给你推销?你看看实盘排名榜那些真正赚钱的人,有哪个会在这里卖模型的呢,你问下思路人家都不告诉你,还把编好的模型卖给你?想得美;P
页:
[1]
2