序列變量在公式中時循環執行的么 - TradeBlazer公式 [開拓者 TB]
- 咨詢內容:
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]); 這個語句是循環執行的么,從當前的bar往前回溯執行到當天的第一根bar,并且執行第一次的時候HighestOf30Min[1]的值是0
是這樣理解的么? - TB技術人員:
回復 1# pwqstar
并不是你所說的方式執行的。
公式執行順序是從左到右的,從當天第一根k線開始,而不是從右往左循環執行。
如果以上指標公式不適用于您常用的行情軟件
或者您想改編成選股公式,以便快速選出某種形態個股的話,
相關文章
-
沒有相關內容