這個代碼為什么 放到 [開拓者 TB]
-
咨詢內容:
Params
Vars
? ?NumericSeries MA15(0);
Begin
? ???if (barstatus==0) { SetGlobalVar(0,0);setglobalvar(1,0);}
? ?
? ? PlotNumeric("MA15",averageFC(close,15),0,-1,0);
? ? MA15=averageFC(close,15);
? ? ? ? If(??A_Totalposition==0 and GetGlobalVar(0)==0 and??close[1]<ma15 and close>=Ma15??and A_OpenOrderLot==0 and barstatus==2 )
? ? ? ? {
? ? ? ???A_SendOrder(enum_buy,enum_entry,1,Q_askprice+5*minmove*pricescale,0,0);
? ? ? ???SetGlobalVar(0,1);
? ? ? ? }
? ? ? ?
? ? If(A_TotalPosition >0 ) SetGlobalVar(0,0);
? ? If(a_totalposition>0??and Close<close[1] and GetGlobalVar(1)==0 )
? ? ? ? {
? ? ? ???A_SendOrder(enum_sell,enum_exit,1,Q_bidprice-5*minmove*pricescale,0,0);;
? ? ? ???SetGlobalVar(1,1);
? ? ? ? }
? ? ? ? If(A_TotalPosition==0) SetGlobalVar(1,0);
? ? ? ?
? ? ? ? End
? ?? ?? ?? ?? ?為什么這個程序??盤中模擬沒有反應呢????有什么地方沒做對么
? ?? ?
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 511411198 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容