老師看一下我的,為什么不發(fā)單 [開拓者 TB]
-
咨詢內(nèi)容:
? ?? ?? ???if(A_BuyPosition()==0 and A_SellPosition()==0) SetGlobalVar(2,0);? ?? ?? ?
? ?? ?? ???If(GetGlobalVar(2)==InvalidNumeric)
? ?? ???{
? ?? ?? ?? ?? ? SetGlobalVar(2,0);
? ?? ???}
? ?? ?
? ?? ?? ?? ?cond1=(GetGlobalVar(2));
? ?? ?? ?? ?BUYSS=A_BuyPosition;
? ?? ?? ?? ?PlotString("GetGlobalVar(2)",text(GetGlobalVar(2)),0,red);
? ?? ?? ?? ?ApriceDD=Text(A_BuyAvgPrice);
? ?? ?? ?? ?ApriceD=Value(ApriceDD);
? ?? ?? ?? ?MyOffset = MinMove*PriceScale;
? ?? ?? ?? ?
? ?? ?? ?? ?? ? //開倉(cāng);
? ?? ?? ?? ?? ? If(TimesToday<TimesMaxToday And CurrentBar>90 AND CMM>NN )
? ?? ?? ?? ?? ? {
? ?? ?? ?? ?? ?? ?? ?? ?If(A_BuyPosition()==0? ?and cond1==0)
? ?? ?? ?? ?? ?? ?? ?? ?{
? ?? ?? ?? ?? ?? ?? ?? ?? ?? ???If(開多條件 )
? ?? ?? ?? ?? ?? ?? ?? ?? ?? ???{
? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ? A_SendOrder(Enum_Buy,Enum_Entry,1,Q_AskPrice +
MyOffset);
? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ? SetGlobalVar(2,1);
? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ???ddd=1;
? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ???PlotString("d",Text(ddd),0,Yellow);
? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ? TimesToday = TimesToday+1;
? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ? Return;
? ?? ?? ?? ?? ?? ?? ?? ?? ?? ???}
? ?? ?? ?? ?? ?? ?? ?? ?}
? ?? ?? ?? ?? ?? ?? ?? ?If(A_SellPosition()==0 or MarketPosition==0 and cond1==0)
? ?? ?? ?? ?? ?? ?? ?? ?{
? ?? ?? ?? ?? ?? ?? ?? ?? ?? ???If(??開空條件)
? ?? ?? ?? ?? ?? ?? ?? ?? ?? ???{
? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ? A_SendOrder(Enum_Sell,Enum_Entry,1,Q_BidPrice -
MyOffset);
? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ? SetGlobalVar(2,3);
? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ???ddd=3;
? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ???PlotString("d",Text(ddd),0,Blue);
? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ???TimesToday = TimesToday+1;
? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ???Return;
? ?? ?? ?? ?? ?? ?? ?? ?? ?? ???}
? ?? ?? ?? ?? ?? ?? ?? ?}
? ?? ?? ?? ?? ? }
? ?? ?? ?? ???
? ?? ?? ?? ? //止損;
? ?? ?? ?? ???if(A_SellPosition>0 and cond1==3)
? ?? ?? ?? ?? ???{
? ?? ?? ?? ?? ?? ???if(AA>BB)
? ?? ?? ?? ?? ?? ?? ???{
? ?? ?? ?? ?? ?? ?? ?? ?? ? A_SendOrder(Enum_Buy,Enum_Exit,A_SellPosition(),Q_AskPrice +
MyOffset);? ?? ?? ?
? ?? ?? ?? ?? ?? ?? ?? ?? ? SetGlobalVar(2,0);
? ?? ?? ?? ?? ?? ?? ?? ?? ???ddd=8;
? ?? ?? ?? ?? ?? ?? ?? ?? ???PlotString("d",Text(ddd),0,Blue);
? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ? }
? ?? ?? ?? ?? ?? ?? ?? ?? ? }
? ?? ?? ?? ?? ? if(A_BuyPosition>0 and cond1==1)
? ?? ?? ?? ?? ???{
? ?? ?? ?? ?? ?? ???if(AA<=BB)
? ?? ?? ?? ?? ?? ?? ???{
? ?? ?? ?? ?? ?? ?? ?? ? A_SendOrder(Enum_Sell,Enum_Exit,A_BuyPosition(),Q_BidPrice -
MyOffset);? ?? ?? ?
? ?? ?? ?? ?? ?? ?? ?? ???SetGlobalVar(2,0);
? ?? ?? ?? ?? ?? ?? ?? ???ddd=8;
? ?? ?? ?? ?? ?? ?? ?? ?? ???PlotString("d",Text(ddd),0,Blue);
? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ? }
? ?? ?? ?? ?? ?? ?? ?? ?? ? }
? ?? ???}
? ?? ???
是不是我全局變量設(shè)置的有問(wèn)題??
- TB技術(shù)人員: 頂 啊
有思路,想編寫各種指標(biāo)公式,程序化交易模型,選股公式,預(yù)警公式的朋友
可聯(lián)系技術(shù)人員 QQ: 511411198 進(jìn)行 有償 編寫!(不貴!點(diǎn)擊查看價(jià)格!)
相關(guān)文章
-
沒有相關(guān)內(nèi)容