|
本帖最後由 manyung 於 19-12-30 17:20 編輯
想求這條線的value
嘗試了這個寫法, 但語法有錯誤, 求修正。
5個pivot high都出現在區域內Vars:HP1(0),HP2(0),HP3(0),HP4(0),HP5(0),
toplinerange(0),topline5pivot(0);
HP1 = PivotHighVS(1,high,5,5,200) ;
HP2 = PivotHighVS(2,high,5,5,200) ;
HP3 = PivotHighVS(3,high,5,5,200) ;
HP4 = PivotHighVS(4,high,5,5,200) ;
HP5 = PivotHighVS(5,high,5,5,200) ;
toplinerange=maxlist(HP1,HP2,HP3,HP4,HP5);
ATR=averagetruerange(atrlength)*atrtime;
topline5pivot = HP1 > (toplinerange-ATR) and
HP2 > (toplinerange-ATR) and
HP3 > (toplinerange-ATR) and
HP4 > (toplinerange-ATR) and
HP5 > (toplinerange-ATR) and
HP1 <= toplinerange and
HP2 <= toplinerange and
HP3 <= toplinerange and
HP4 <= toplinerange and
HP5 <= toplinerange;
|
|