如何讓信號不再消失
作者:開拓者 TB 來源:cxh99.com 發(fā)布時間:2017年08月02日
-
咨詢內(nèi)容:
If((BarType==1 or BarType==2) && BarStatus == 3 && date!=date[1] && high==low) return;
? ?? ?? ?If(BarType==0 && BarStatus == 3 && CurrentTime<=0.09 && high==low) return;
??If(ma3[0]<ma3[2])
??{
? ? if(ma3[0]<l[1]&&MarketPosition!=-1)
? ? ? ? {
? ? ? ?? ???//如果條件成立...
? ? ? ? Sell(lots,min(o,l[1]));
??SellShort(lots,min(o,l[1]));
? ? ? ?
??}
??}
If(ma3[0]>ma3[2])
??{
??if(ma3[0]>h[1]and MarketPosition!=1)
? ? ? ? {
? ? ? ?? ???//如果條件成立...
? ? ? ? BuyToCover(Lots,max(o,h[1]));
??Buy(Lots,max(o,h[1]));
??
}
}
If((Date[-1]!=InvalidInteger && Date!=Date[-1])||(Date[-1]==InvalidInteger && Date < CurrentDate))
? ? {
? ?? ???Sell(0,Close);
? ?? ???BuyToCover(0,Close);
? ? }Else If(Date==CurrentDate && Time==0.1455 && CurrentTime>=0.1459)
? ? {
? ?? ???Sell(0,Close);
? ?? ???BuyToCover(0,Close);
? ? }
?
-
TB技術(shù)人員:
1,barstatus的返回值只用 0 , 1 ,2 這三個值。 沒有==3的情況。。
2,ma3的賦值語句是什么樣的?
3,該公式是用于什么周期上的?
?
-
TB客服:
小米 發(fā)表于 2017-4-24 14:40
1,barstatus的返回值只用 0 , 1 ,2 這三個值。 沒有==3的情況。。
2,ma3的賦值語句是什么樣的?
3,該 ...
ma3=(h+l)/2,用于5分或15分鐘
?
-
網(wǎng)友回復(fù):
hbxtxq77 發(fā)表于 2017-5-3 18:32
ma3=(h+l)/2,用于5分或15分鐘
ma3是會變化的,是可能導(dǎo)致信號變化或是消失的。。。
換成ma3[1]這類的試試吧