序列變量在公式中時(shí)循環(huán)執(zhí)行的么 - TradeBlazer公式 [開拓者 TB]
- 咨詢內(nèi)容:
Vars
NumericSeries HighestOf30Min;
NumericSeries lowestOf30Min;
Numeric myPrice;
Numeric MinPoint;
Numeric lots(1);
Begin
MinPoint = MinMove*PriceScale;
If(Date <> Date[1])
{
HighestOf30Min = High;
lowestOf30Min = Low;
}
Else If(Time < 0.0900+nMins*0.0001)
{
HighestOf30Min = max(high,HighestOf30Min[1]);
lowestOf30Min = min(Low,lowestOf30Min[1]);
這段公式中 HighestOf30Min = max(high,HighestOf30Min[1]); 這個(gè)語句是循環(huán)執(zhí)行的么,從當(dāng)前的bar往前回溯執(zhí)行到當(dāng)天的第一根bar,并且執(zhí)行第一次的時(shí)候HighestOf30Min[1]的值是0
是這樣理解的么? - TB技術(shù)人員:
回復(fù) 1# pwqstar
并不是你所說的方式執(zhí)行的。
公式執(zhí)行順序是從左到右的,從當(dāng)天第一根k線開始,而不是從右往左循環(huán)執(zhí)行。
如果以上指標(biāo)公式不適用于您常用的行情軟件
或者您想改編成選股公式,以便快速選出某種形態(tài)個(gè)股的話,
相關(guān)文章
-
沒有相關(guān)內(nèi)容