四周公式怎么在文華里顯示 [文華財經]
- 咨詢內容:
CLOSEREF(HHV(HIGH,N),1),BK;
CLOSEREF(HHV(HIGH,M),1),Bp;
traderblazer
Params
Numeric n1(20);
Vars
NumericSeries hh;
numericseries ll;
Bool a;
bool b;
Begin
hh=Highest(high,n1);
ll=Lowest(low,n1);
a=(hh==high);
b=(ll==low);
if(a && MarketPosition!=1)
{
buy(1,close);
}
if(b && MarketPosition!=-1)
{
sellshort(1,close);
}
End
Params
Numeric length(20);
Vars
NumericSeries Highline;
NumericSeries lowline;
Numeric myprice;
Numeric lots(1);
Begin
highline=highestfc(high[1],length);
lowline=lowestfc(low[1],length);
if(MarketPosition!=1&&High>=highline)
{
myprice=highline;
if(open>=highline)myprice=open;
buy(lots,myprice);
}
if(MarketPosition!=-1&&low<=lowline)
{myprice=lowline;
if(open<=lowline)myprice=open;
SellShort(lots,myprice);
}
End
請問這個怎么在文華里顯示出來
- 文華技術人員: 請整理格式之后重新發布
有思路,想編寫各種指標公式,程序化交易模型,選股公式,預警公式的朋友
可聯系技術人員 QQ: 511411198 進行 有償 編寫!(不貴!點擊查看價格!)
相關文章
-
沒有相關內容