版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、滬饃2分鐘波段策略PARAM1:=105;PARAM2:=-25;NX1:=7;NX2:=8;NX3:=9;NN:=BARSLAST(DATE<>REF(DATE,1)+1;YC:=REF(C,NN);YO:=REF(REF(O,NN-1),NN);YYC:=REF(REF(C,NN),NN);TDO:=REF(O,NN);TDOMAX:=MAX1(TDO,REF(TDO,NN),REF(REF(TDO,NN),NN);TDOMIN:=MIN1(TDO,REF(TDO,NN),REF(REF(TDO,NN),NN);LOTS:=300000/(0.1*UNIT*CLOSE);MA5
2、BD:=(ABS(REF(O,SUMBARS(NN=1,2)-REF(C,SUMBARS(NN=1,1)+1)+ABS(REF( O,SUMBARS(NN=1,3)-REF(C,SUMBARS(NN=1,2)+1)+ABS(REF(O,SUMBARS(NN=1, 4)-REF(C,SUMBARS(NN=1,3)+1)+ABS(REF(O,SUMBARS(NN=1,5)-REF(C,SUMBAR S(NN=1,4)+1)+ABS(REF(O,SUMBARS(NN=1,6)-REF(C,SUMBARS(NN=1,5)+1)/5;HHS:=REF(HHV(H,10),NX2)*(1000+NX3)/
3、1000;LLS:=REF(LLV(L,10),NX2)*(1000-NX3)/1000;BUYMARKET:=IF(YYC/YC>=1,1,0);BUYMARKETBUYPRICE:=IF(BUYMARKET=1,TDOMAX+PARAM2*MA5BD/100,TDOMAX);BUYMARKETSHORTPRICE:=IF(BUYMARKET=1,TDOMIN-PARAM1*MA5BD/100,TDOMIN);SHORTMARKET:=IF(YYC/YC<1,1,0);SHORTMARKETBUYPRICE:=IF(SHORTMARKET=1,TDOMAX+PARAM1*MA5B
4、D/100,TDOMAX);SHORTMARKETSHORTPRICE:=IF(SHORTMARKET=1,TDOMIN-PARAM2*MA5BD/100,TDOMIN);JUMPK:=ABS(REF(O,NN-1)-YC)/YC*1000);NNN:=IF(JUMPK>3,9,0);KEY:=ABS(YC-YO)<=0.2*MA5BD AND ABS(YC-YO)>=0*MA5BD;KEY1:=ABS(YC-YO)<=2.5*MA5BD AND ABS(YC-YO)>=0.25*MA5BD;LASTMAXBKPRICE:=IF(COUNTSIG(BK,REF(N
5、N,NN)*3)>0,HHV(BKPRICE,REF(NN,NN )*3)*(1000+0)/1000,0);LASTMINSKPRICE:=IF(COUNTSIG(SK,REF(NN,NN)*3)>0,LLV(SKPRICE,REF(NN,NN) *3)*(1000-0)/1000,0);LASTMAXBPPRICE:=IF(COUNTSIG(BP,REF(NN,NN)*3)>0,HHV(REF(C,BARSBP),REF (NN,NN)*3)*(1000+0)/1000,C);LASTMINSPPRICE:=IF(COUNTSIG(SP,REF(NN,NN)*3)>
6、0,LLV(REF(C,BARSSP),REF(NN,NN)*3)*(1000-0)/1000,C);XX1:=IF(LASTOFFSETPROFIT<0 AND ISLASTBP=1,BARSBP,1000);XX2:=IF(LASTOFFSETPROFIT<0 AND ISLASTSP=1,BARSSP,1000);YY1:=IF(ISLASTBPK=1,BARSBK,1000);YY2:=IF(ISLASTSPK=1,BARSSK,1000);NN>=NNN AND BKVOL=0 AND KEY=1 AND BUYMARKET=1C>=BUYMARKETBUYP
7、RICEANDC>=LASTMAXBKPRICEC>=LASTMAXBPPRICE AND XX1>REF(NN,NN),BK(LOTS);NN>=NNN AND SKVOL=0 AND KEY=1 AND BUYMARKET=1C<=BUYMARKETSHORTPRICEANDC<=LASTMINSKPRICEC<=LASTMINSPPRICE AND XX2>REF(NN,NN),SK(LOTS);NN>=NNN AND BKVOL=0 AND KEY=1 AND SHORTMARKET=1C>=SHORTMARKETBUYPRI
8、CEANDC>=LASTMAXBKPRICEC>=LASTMAXBPPRICE AND XX1>REF(NN,NN),BK(LOTS);NN>=NNN AND SKVOL=0 AND KEY=1 AND SHORTMARKET=1C<=SHORTMARKETSHORTPRICEANDC<=LASTMINSKPRICEC<=LASTMINSPPRICE AND XX2>REF(NN,NN),SK(LOTS);NN>=NNN AND BKVOL=0AND KEY1=1AND BUYMARKET=1C>=BUYMARKETBUYPRICEA
9、NDC>=LASTMAXBKPRICEC>=LASTMAXBPPRICE AND XX1>REF(NN,NN),BK(LOTS);NN>=NNN AND SKVOL=0 AND KEY1=1 AND BUYMARKET=1C<=BUYMARKETSHORTPRICEANDC<=LASTMINSKPRICEANDANDANDANDANDANDANDANDANDANDANDANDC<=LASTMINSPPRICE AND XX2>REF(NN,NN),SK(LOTS);NN>=NNN AND BKVOL=0 AND KEY1=1 AND SHO
10、RTMARKET=1C>=SHORTMARKETBUYPRICEANDC>=LASTMAXBKPRICEC>=LASTMAXBPPRICE AND XX1>REF(NN,NN),BK(LOTS);NN>=NNN AND SKVOL=0 AND KEY1=1 AND SHORTMARKET=1C<=SHORTMARKETSHORTPRICEAND C<=LASTMINSKPRICEC<=LASTMINSPPRICE AND XX2>REF(NN,NN),SK(LOTS);BKVOL>0 AND BUYMARKET=1 AND C<
11、=TDOMIN-PARAM1*MA5BD/100YY1>REF(NN,NN),SPK(BKVOL);SKVOL>0 AND BUYMARKET=1 AND C>=TDOMAX+PARAM2*MA5BD/100YY2>REF(NN,NN),BPK(SKVOL);BKVOL>0 AND SHORTMARKET=1 AND C<=TDOMIN-PARAM2*MA5BD/100YY1>REF(NN,NN),SPK(BKVOL);SKVOL>0 AND SHORTMARKET=1 AND C>=TDOMAX+PARAM1*MA5BD/100ANDAN
12、DANDANDANDANDANDANDYY2>REF(NN,NN),BPK(SKVOL);BKVOL>0 AND C<BKPRICE*(1000-NX1)/1000,SP(BKVOL);SKVOL>0 AND C>SKPRICE*(1000+NX1)/1000,BP(SKVOL);BKVOL>0 AND BARSBK>NX2 AND C<=LLS,SP(BKVOL);SKVOL>0 AND BARSSK>NX2 AND C>=HHS,BP(SKVOL);BKVOL>0 AND (REF(O,NN-1)-YC)/YC*100
13、0<-5 AND NN=1,SP(BKVOL);SKVOL>0 AND (REF(O,NN-1)-YC)/YC*1000>5 AND NN=1,BP(SKVOL);SETALLSIGPRICETYPE(TRACING_ORDER);CLOSEKLINE(0,3);橡月至2分鐘波段策略PARAM1:=85;PARAM2:=40;PARAM3:=105;PARAM4:=45;NX1:=6;NX2:=8;NX3:=8;M1:=5;M2:=30;LOTS:=300000/(0.1*UNIT*C);NN:=BARSLAST(DATE<>REF(DATE,1)+1;YC:=R
14、EF(C,NN);丫O:=REF(REF(O,NN-1),NN);YYC:=REF(REF(C,NN),NN);TDO:=REF(O,NN);TDOMAX:=MAX(TDO,REF(REF(TDO,NN),NN);TDOMIN:=MIN(TDO,REF(REF(TDO,NN),NN);ALPHA0:=MAX(MIN(REF(MA(ABS(CLOSE-OPEN)/O*1000,REF(NN,NN)*3),NN),1),0.6 );MA5BD:=(ABS(REF(O,SUMBARS(NN=1,2)-REF(C,SUMBARS(NN=1,1)+1)+ABS(REF( O,SUMBARS(NN=1,3
15、)-REF(C,SUMBARS(NN=1,2)+1)+ABS(REF(O,SUMBARS(NN=1, 4)-REF(C,SUMBARS(NN=1,3)+1)+ABS(REF(O,SUMBARS(NN=1,5)-REF(C,SUMBAR S(NN=1,4)+1)+ABS(REF(O,SUMBARS(NN=1,6)-REF(C,SUMBARS(NN=1,5)+1)/5;KEY:=ABS(YC-YO)<=0.5*MA5BD;KEY1:=ABS(YC-YO)>0.5*MA5BD;HHS:=REF(HHV(H,10),NX2)*(1000+ALPHA0*NX3)/1000;LLS:=REF(
16、LLV(L,10),NX2)*(1000-ALPHA0*NX3)/1000;ALPHA10:=HHV(C,5);ALPHA11:=LLV(C,5);BUYMARKET:=IF(YYC/YC>=1,1,0);BUYMARKETBUYPRICE:=TDOMAX+PARAM2*MA5BD/100;BUYMARKETSHORTPRICE:=TDOMIN-PARAM1*MA5BD/100;BUYMARKETBUYPRICE1:=TDOMAX+PARAM4*MA5BD/100;BUYMARKETSHORTPRICE1:=TDOMIN-PARAM3*MA5BD/100;SHORTMARKET:=IF(
17、YYC/YC<1,1,0);SHORTMARKETBUYPRICE:=TDOMAX+PARAM1*MA5BD/100;SHORTMARKETSHORTPRICE:=TDOMIN-PARAM2*MA5BD/100;SHORTMARKETBUYPRICE1:=TDOMAX+PARAM3*MA5BD/100;SHORTMARKETSHORTPRICE1:=TDOMIN-PARAM4*MA5BD/100;LASTMAXBPPRICE:=IF(COUNTSIG(BP,REF(NN,NN)*2)>0,HHV(REF(C,BARSBP),REF (NN,NN)*(1000-2)/1000,C);
18、LASTMINSPPRICE:=IF(COUNTSIG(SP,REF(NN,NN)*2)>0,LLV(REF(C,BARSSP),REF(NN,NN)*(1000+2)/1000,C);XX1:=IF(ISLASTBP=1,BARSBP,1000);XX2:=IF(ISLASTSP=1,BARSSP,1000);JUMPK:=ABS(REF(O,NN-1)-YC)/YC*1000);NNN:=IF(JUMPK>5,15,0);/突破NN>=NNN AND NOT(CLOSEMINUTE<=30) AND KEY=1 AND BKVOL=0 ANDBUYMARKET=1
19、AND C>=BUYMARKETBUYPRICE AND C>=LASTMAXBPPRICEANDXX2>=REF(NN,NN)*0.5ANDCOUNTSIG(BK,NN)+COUNTSIG(SK,NN)+COUNTSIG(SP,NN)<2,BK(LOTS);NN>=NNN AND NOT(CLOSEMINUTE<=30) AND KEY=1 AND SKVOL=0 ANDBUYMARKET=1 AND C<=BUYMARKETSHORTPRICE AND C<=LASTMINSPPRICEANDXX1>=REF(NN,NN)*0.5AND
20、COUNTSIG(BK,NN)+COUNTSIG(SK,NN)+COUNTSIG(BP,NN)<2,SK(LOTS);NN>=NNN AND NOT(CLOSEMINUTE<=30) AND KEY=1 AND BKVOL=0 ANDSHORTMARKET=1AND C>=SHORTMARKETBUYPRICEANDC>=LASTMAXBPPRICEANDXX2>=REF(NN,NN)*0.5ANDCOUNTSIG(BK,NN)+COUNTSIG(SK,NN)+COUNTSIG(SP,NN)<2,BK(LOTS);NN>=NNN AND NOT(
21、CLOSEMINUTE<=30) AND KEY=1 AND SKVOL=0 ANDSHORTMARKET=1AND C<=SHORTMARKETSHORTPRICEANDC<=LASTMINSPPRICEANDXX1>=REF(NN,NN)*0.5ANDCOUNTSIG(BK,NN)+COUNTSIG(SK,NN)+COUNTSIG(BP,NN)<2,SK(LOTS);NN>=NNN AND NOT(CLOSEMINUTE<=30) AND KEY1=1 AND BKVOL=0 ANDBUYMARKET=1AND C>=BUYMARKETBUY
22、PRICE1AND C>=LASTMAXBPPRICEANDXX2>=REF(NN,NN)*0.5ANDCOUNTSIG(BK,NN)+COUNTSIG(SK,NN)+COUNTSIG(SP,NN)<2,BK(LOTS);NN>=NNN AND NOT(CLOSEMINUTE<=30) AND KEY1=1 AND SKVOL=0 ANDBUYMARKET=1AND C<=BUYMARKETSHORTPRICE1ANDC<=LASTMINSPPRICEANDXX1>=REF(NN,NN)*0.5ANDCOUNTSIG(BK,NN)+COUNTSI
23、G(SK,NN)+COUNTSIG(BP,NN)<2,SK(LOTS);NN>=NNN AND NOT(CLOSEMINUTE<=30) AND KEY1=1 AND BKVOL=0 ANDSHORTMARKET=1AND C>=SHORTMARKETBUYPRICE1ANDC>=LASTMAXBPPRICEANDXX2>=REF(NN,NN)*0.5ANDCOUNTSIG(BK,NN)+COUNTSIG(SK,NN)+COUNTSIG(SP,NN)<2,BK(LOTS);NN>=NNN AND NOT(CLOSEMINUTE<=30) AND KEY1=1 AND SKVOL=0 ANDSHORTMARKET=1AND C<=SHORTMARKETSHORTPRICE1ANDC<=LASTMINSPPRICEANDXX1>=REF(NN,NN)*0.5ANDCOUNTSIG(BK,NN)+COUNTSIG(SK,NN)+COU
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2024年土地使用權(quán)轉(zhuǎn)讓合同(含開(kāi)發(fā)權(quán))
- 2024年廣西路分公司一級(jí)干線租用合同
- 2024年安全監(jiān)控外包服務(wù)合同
- 2024年工程設(shè)計(jì)變更合同補(bǔ)充
- 2024年度石油化工設(shè)備安裝調(diào)試合同
- 2024年工廠租賃合同書(shū)
- 2024年度塔吊設(shè)計(jì)研發(fā)合同
- 2024購(gòu)房合同應(yīng)注意事項(xiàng)
- 2024征地補(bǔ)償安置合同范本
- 2024年學(xué)校治安門(mén)衛(wèi)合同
- 母版_安徽省中小學(xué)生轉(zhuǎn)學(xué)申請(qǐng)表
- YY∕T 0106-2021 醫(yī)用診斷X射線機(jī)通用技術(shù)條件
- 小組合作學(xué)習(xí)方法指導(dǎo)(課堂PPT)
- 工程造價(jià)咨詢費(fèi)黑價(jià)聯(lián)[2013]39號(hào)
- 聚氨酯車輪容許載荷的計(jì)算方法
- 五年級(jí)地方教學(xué)計(jì)劃
- 河北省廊坊市房屋租賃合同自行成交版
- 電商銷售獎(jiǎng)勵(lì)制度
- 關(guān)于設(shè)置治安保衛(wèi)管理機(jī)構(gòu)的通知(附安全保衛(wèi)科職責(zé))
- 淺論國(guó)省道干線公路養(yǎng)護(hù)管理存在問(wèn)題與應(yīng)對(duì)措施
- 淺談激光標(biāo)簽打印機(jī)在電磁兼容測(cè)試標(biāo)準(zhǔn)及在產(chǎn)品設(shè)計(jì)中應(yīng)關(guān)注的焦點(diǎn)
評(píng)論
0/150
提交評(píng)論