您現在的位置:程序化交易>> 期貨公式>> 交易開拓者(TB)>> 開拓者公式>>正文內容

ZLW屠龍刀7分鐘版_滬深300股指_日內震蕩【升級版】【源碼】[開拓者公式]

【升級版】ZLW屠龍刀7分鐘版_滬深300股指_日內震蕩_全自動交易系統
5.1后傾情放送學習性代碼。
重要提示:若要實盤,后果自負!

說明
應用商品:IF888
使用周期:7分鐘K線,
測試區間:2010.4-2014.04.30
手續費:1手手續費100
滑點設置:程序設置為+-1個最小價位


 

   

//------------------------------------------------------------------------
// 簡稱: 日內趨勢策略
// 名稱: RN
// 版本: VER.2.1
// 類別: 公式應用
// 類型: 用戶應用
// 修改: 2014xxxx www.tumamayizhan.com
//
//------------------------------------------------------------------------
//------------------------------------------------------------------------
Params   
        Numeric Nnn1(5);
        Numeric Nnn2(20);
Vars
        Numeric Lots(1.00);
        Numeric offset(1);
        Numeric i_offset;
               
        NumericSeries a1;
        NumericSeries a2;
        NumericSeries a3;
        NumericSeries a4;
               
        NumericSeries a13;               
        NumericSeries a14;
        NumericSeries a15;

        NumericSeries a17;
        NumericSeries a18;
        NumericSeries a19;
        NumericSeries a20;
        NumericSeries a21;
        NumericSeries a22;
        NumericSeries a23;
        NumericSeries a24;
        NumericSeries a25;
               
        Numeric xx_1010;
        Numeric xx_1030;
//------------------------------------------------------------------------
//------------------------------------------------------------------------
Begin

        i_offset=offset*minmove*PriceScale;
               
        a3=AverageFC(Close[1],17);
        a4=StandardDev(Close[1],17,2);
               
        a1=(a3 + (a4 * 1.88));               
        a2=(a3 - (a4 * 1.88));               
       //------------------------------------------------------------------------               
        a18=Summation(Max(Max((High - Low),Abs((High - Close[1]))),Abs((Low - Close[1]))),23);
               
        a19=(High - High[1]);
        a20=(Low[1] - Low);
               
        a21=Summation(IIF((a19 > 0) and (a19 > a20),a19,0),23);
        a22=Summation(IIF((a20 > 0) and (a20 > a19),a20,0),23);
               
        a23=((a21 * 100) / a18);
        a24=((a22 * 100) / a18);
        a25=Average(((Abs((a24 - a23)) / (a24 + a23)) * 100),12);

//------------------------------------------------------------------------
//------------------------------------------------------------------------
If(Time>0.0920 and Time<0.1515)
{

        if (Time>0.0920 AND Time<0.1510)         
        {
               
                        if ((MarketPosition == 0) and (a4 >= 1.9) and (Time <= 0.1456))         
                        {
                                if ((High[1] > a1) and (Open > (a1 - 3)) and (Open <= High[1]))         
                                {
                                        SellShort(Lots,(Open-i_offset));
                                }

                                if ((Low[1] < a2) and (Open < (a2 + 3.8)) and (a25[1]   < 42))         
                                {
                                        Buy(Lots,(Open+i_offset));
                                }

                        } // www.tumamayizhan.com
                               
                        if ((MarketPosition == 1) and (BarsSinceEntry == 0))         
                        {
                                a14=High;a15=Low;  
                        }
                        if ((MarketPosition == 1) and (BarsSinceEntry >= 1))         
                        {
                                a14=Max(a14,High);  
                        }
                        if ((MarketPosition == -1) and (BarsSinceEntry == 0))         
                        {
                                a15=Low;  
                        }
                        if ((MarketPosition == -1) and (BarsSinceEntry >= 1))         
                        {
                                a15=Min(a15,Low);  
                        }
                               

                        if ((BarsSinceEntry >= 1) and (MarketPosition == 1))         
                        {
                                a13=(a14[1]   - EntryPrice);  
                                if ((BarsSinceEntry >= 5) and ((Close[5] - Open[5]) < 0) and ((Close[4] - Open[4]) < 0) and ((Close[3] - Open[3]) < 0) and (a13 >= 18))         
                                {
                                        Sell(Lots,(Open-i_offset));
                                }
                                if ((BarsSinceEntry > 4) and (a13 >= 29) and (Low <= (EntryPrice + 19)))         
                                {
                                        Sell(Lots,((EntryPrice + 19) - i_offset));
                                }
                        }// www.tumamayizhan.com
  
                        if ((BarsSinceEntry >= 1) and (MarketPosition == -1))         
                        {
                                a13=(EntryPrice - a15[1]  );  
                                if ((BarsSinceEntry >= 4) and ((Close[5] - Open[5]) > 0) and ((Close[4] - Open[4]) > 0) and ((Close[3] - Open[3]) > 0) and (a13 >= 26))         
                                {
                                        BuyToCover(Lots,(Open+i_offset));
                                }
                                if ((BarsSinceEntry > 5) and (a13 >= 30) and (High >= (EntryPrice - 16)))         
                                {
                                        BuyToCover(Lots,((EntryPrice - 16)+i_offset));
                                }

                        }

        }
//------------------------------------------------------------------------
//------------------------------------------------------------------------

        xx_1010=AvgEntryPrice;
               
        if ((BarsSinceEntry >= 1) and (MarketPosition > 0) and (Low <= (AvgEntryPrice - 05)) and ((PositionProfit+(Lots * 1500)) < 0))         
        {
                xx_1030=(xx_1010 - 05);  
                Sell(Lots,(Min(Open,xx_1030) - i_offset));

                if (((a2[1]   - a2) <= 5.6) and (Time <= 0.1456))         
                {
                SellShort(Lots,(Min(Open,xx_1030) - i_offset));
                }
        }

//------------------------------------------------------------------------
        if ((BarsSinceEntry >= 1) and (MarketPosition < 0) and (High >= (AvgEntryPrice + 05)) and ((PositionProfit+(Lots * 1500)) < 0))         
        {
                xx_1030=(xx_1010 + 05);      
                BuyToCover(Lots,(Max(Open,xx_1030) + i_offset));

                if (((a1 - a1[1]  ) <= 5.6) and (Time <= 0.1456))         
                {
                Buy(Lots,(Max(Open,xx_1030) + i_offset));
                }
        }
               
//------------------------------------------------------------------------
//------------------------------------------------------------------------

        If(Time>=0.1510 and Time<0.1513  and MarketPosition>0)
        {
                Sell(Lots,(Open-i_offset));
        }

        If(Time>=0.1510 and Time<0.1513  and MarketPosition<0)
        {
                BuyToCover(Lots,(Open+i_offset));
        }               
               
}

//------------------------------------------------------------------------

End

//------------------------------------------------------------------------
// 編譯版本        GS2010.12.08
// 版權所有        www.tumamayizhan.com QQ 1145508240
// 更改聲明        TradeBlazer Software保留對TradeBlazer平
//                        臺每一版本的TradeBlazer公式修改和重寫的權利
//------------------------------------------------------------------------

 

 

 

有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友

可聯系技術人員 QQ: 1145508240  有需要幫忙請點擊這里留言!!!進行 有償 編寫!不貴!點擊查看價格!


【字體: 】【打印文章】【查看評論

相關文章

    沒有相關內容
主站蜘蛛池模板: a级国产乱理伦片| 亚洲不卡av不卡一区二区| 韩国男女无遮挡高清性视频| 在线日韩理论午夜中文电影| 久久99精品九九九久久婷婷| 欧美性猛交xxxx乱大交| 免费成人在线观看| 蜜桃精品免费久久久久影院 | 成人免费视频网站www| 亚洲18在线天美| 污视频免费看网站| 啦啦啦啦在线直播免费播放| 日本人强jizzjizz| 在线国产一区二区| 一级毛片免费全部播放| 日本特黄特色aaa大片免费| 亚洲午夜精品久久久久久人妖| 秋霞免费理论片在线观看午夜| 国产亚洲欧美在线| 亚洲日本va在线观看| 在线播放亚洲美女视频网站| 一级毛片视频免费| 日本丰满岳乱妇中文| 亚洲一级免费视频| 欧美高清免费一级在线| 免费欧美黄色网址| 老师上课跳d突然被开到最大视频 老师你下面好湿好深视频 | 男人边吃奶边做弄进去免费视频 | 一区二区三区四区精品| 日本全彩翼漫画全彩无遮挡| 亚洲va中文字幕无码久久| 欧美精品免费观看二区| 免费久久人人爽人人爽av| 肥老熟妇伦子伦456视频| 国产在线爱做人成小视频| 2023天天操| 国产羞羞视频在线观看| 99视频在线观看视频| 好吊妞视频免费视频| 两个人的视频www免费| 无码国模国产在线观看|