請問一下一個HTS程式的寫法 - 財經

Table of Contents

大概類似於
If BarSinceEntry=3 and high<high[2] and high[1]<high[2] then
exitLong....
end if
可能數字有些小錯
你再試試看 調整一下吧


※ 引述《hiroshiho (感覺布拉格的春天)》之銘言:
: 如果要寫買進後兩根k線
: 高點均未高於買進那根K線的高點
: 即賣出的寫法
: 非常感謝

--

All Comments

Doris avatarDoris2010-05-11
我寫過...但是出現BarSinceEntry無法以index型態來使用
Delia avatarDelia2010-05-15
的訊息...
Edith avatarEdith2010-05-16
BarSinceEntry(0)試試
Jake avatarJake2010-05-18
樓上是正確的
Edward Lewis avatarEdward Lewis2010-05-18
感謝~~