作者dontblame (占卜师)
看板Trading
标题Re: [问题] HTS语法的毛病
时间Mon Aug 3 12:28:13 2009
试试看 这个语法吧
buy this bar at 翻多价 or higher
buy this bar at 翻多价 or lower
要在this bar 做进出
最好用这方法
记得两行同时要写喔
※ 引述《kurasige (kurasige)》之铭言:
: 我也有类似的问题
: Parameter: fastlength(20)
: If Close[1]>MA(close,fastlength)[1] then
: If MA(close,fastlength)[1]>MA(close,fastlength)[2] then
: If open >=MA(close,fastlength)[1] then
: Buy("买进") this bar at open stop
: end if
: End if
: End if
: If CurrentContracts=1 then
: If Open<MA(close,fastlength)[1] then
: ExitLong From Entry ("买进") this bar at open stop
: End if
: Else
: if MA(close,fastlength)[1]<Open then
: if low<MA(close,fastlength)[1] then
: ExitLong From Entry ("买进") this bar at MA(close,fastlength)[1] stop
: End if
: END if
: End if
: 有时明明盘中跌破20MA,还是没停损,等到隔天开盘才停损
: 我也一直想不出错在哪里?
: 有没有大大能帮忙一下?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 218.165.78.50
1F:→ chihung:单纯这样还是会出问题的...还要有其他条件辅助 08/03 16:19