到奇狐勝券首頁 奇狐社區論壇 購買奇狐勝券 試用奇狐勝券
 
論壇首頁 你可以在這裡編輯你的資料,查看短訊,訂閱主題和論壇參數等等 免費會員註冊 會員列表 論壇幫助 論壇日曆 論壇搜索 加入我的最愛 登出論壇  
奇狐社區論壇 : Powered by vBulletin version 2.3.0 奇狐社區論壇 > 指標公式 > 問題交流 > 如何HTS語法轉奇狐語法呢
  上一主題   下一主題
作者
主題 發表新主題    回覆主題
taiwanyang121
資深會員

註冊日期: Sep 2009
來  自: 台北市
文章數量: 221

如何HTS語法轉奇狐語法呢

如何HTS語法轉奇狐語法呢

向版主報告此篇 | 查IP位址
Old Post 2010-06-11 13:32
taiwanyang121 現在離線 點選這裡查看 taiwanyang121 的個人資料 點選這裡給 taiwanyang121 傳送一條短訊 查找更多關於 taiwanyang121 的文章 增加 taiwanyang121 至你的好友列表 編輯/刪除訊息 引用回覆
cgjj
總版主

註冊日期: Oct 2003
來  自:
文章數量: 18100

回覆: 如何HTS語法轉奇狐語法呢

引用:
最初由 taiwanyang121 發表
如何HTS語法轉奇狐語法呢


若軟體運算基礎架構有些不同
那麼相同語法, 算出的結果未必相同

了解指標原理, 改用奇狐直接撰寫
會比較可靠, 不建議用轉的

善用軟體本身的特質, 才能得到較優的處理方式
讓其充份發揮

向版主報告此篇 | 查IP位址
Old Post 2010-06-11 13:59
cgjj 現在離線 點選這裡查看 cgjj 的個人資料 點選這裡給 cgjj 傳送一條短訊 查找更多關於 cgjj 的文章 增加 cgjj 至你的好友列表 編輯/刪除訊息 引用回覆
taiwanyang121
資深會員

註冊日期: Sep 2009
來  自: 台北市
文章數量: 221

可以幫忙嗎

//////紅三兵
(
CNDL_WhiteLine[2] and
CNDL_WhiteLine[1] and
CNDL_WhiteLine and
Open[1] >= Min(Open[2], Close[2]) and
Open[1] <= Max(Open[2], Close[2]) and
Open >= Min(Open[1], Close[1]) and
Open <= Max(Open[1], Close[1]) and
Close[1] >= Close[2] and
Close >= Close[1] and
CNDL_UpShadow <= CNDL_Height * 0.1 and
((volume > volume[1] or volume[1] > volume[2] or volume > volume[2] ) and (volume[1] <均量 or volume[2] <均量) and volume > 均量*2)
)

最後由 taiwanyang121 在 2010-06-11 18:28 編輯 向版主報告此篇 | 查IP位址
Old Post 2010-06-11 14:10
taiwanyang121 現在離線 點選這裡查看 taiwanyang121 的個人資料 點選這裡給 taiwanyang121 傳送一條短訊 查找更多關於 taiwanyang121 的文章 增加 taiwanyang121 至你的好友列表 編輯/刪除訊息 引用回覆
cgjj
總版主

註冊日期: Oct 2003
來  自:
文章數量: 18100

回覆: 可以幫忙嗎

引用:
最初由 taiwanyang121 發表
param: 短均長度(5),中均長度(10),長均長度(24),多空長度(48),均量長度(50),下單口數(1),起始K棒(50)
param: 停損(30),跳空百分2停損(20),移動比(0.2),停利(100),損平門檻(40),保障點(20),加多單距離(20),加空單距離(20),加碼停損(30)
var: 加碼停利(60)
var: 短均線(0),中均線(0),長均線(0),多空線(0),均量(0)
var: 最大獲利點數(0), 多單移動停損點(0), 空單移動停損點(0),多單停利點(0),空單停利點(0),多單保障點(0),空單保障點(0),試單次數(0),上次結算利潤(0),連續虧損次數(0)
var: 試多條件(false),試空條件(false),在多空線之上條件(false),在多空線之下條件(false),再作多1條件(false),再作空1條件(false),再作多2條件(false),再作空2條件(false),移到損平點條件(false)
var: 平倉時間條件(false),操作時間條件(false),操作時間(90000)
var: 昨日收盤價(0),今日開盤價(0),多單出場條件(false),空單出場條件(false)
Variables: DownTrend(True), Counter(0)
//////////均線計算式///////////////////////////////////////////////
短均線=ema(close, 短均長度)
中均線=ema(close, 中均長度)
長均線=ema(close, 長均長度)
多空線=ema(close, 多空長度)
均量=ema(volume, 均量長度)
//////////主進場條件式///////////////////////////////////////////////
試多條件=(currentcontracts=0
and
(
//////紅三兵
(
CNDL_WhiteLine[2] and
CNDL_WhiteLine[1] and
CNDL_WhiteLine and
Open[1] >= Min(Open[2], Close[2]) and
Open[1] <= Max(Open[2], Close[2]) and
Open >= Min(Open[1], Close[1]) and
Open <= Max(Open[1], Close[1]) and
Close[1] >= Close[2] and
Close >= Close[1] and
CNDL_UpShadow <= CNDL_Height * 0.1 and
((volume > volume[1] or volume[1] > volume[2] or volume > volume[2] ) and (volume[1] <均量 or volume[2] <均量) and volume > 均量*2)
)
or
//////三紅k攻擊
(
CNDL_WhiteLine[2] and
CNDL_WhiteLine[1] and
CNDL_WhiteLine and
Close[1] >= Close[2] and
Close >= Close[1] and
((volume > volume[1]) and (volume[1] > volume[2])) and
(volume>均量 and volume[1]< 均量 and volume[2] < 均量)
)
or
/////短均線 中均線 多空線 交叉
(
Close[1] >= Close[2] and
Close >= Close[1] and
短均線 > 多空線 and
中均線 > 多空線 and
(短均線 cross over 長均線 or 短均線[1] cross over 長均線[1] or 短均線[2] cross over 長均線[2] or
短均線[3] cross over 長均線[3] or 短均線[4] cross over 長均線[4]or 短均線[5] cross over 長均線[5]) and
((volume > volume[1] or volume[1] > volume[2] or volume > volume[2] ) and (volume[1] <均量 or volume[2] <均量) and volume > 均量)
)
or
(
CNDL_TrendDown[2] and
CNDL_BlackLine[2] and
CNDL_WhiteLine[1] and
CNDL_LongBody(10)[1] and
CNDL_Engulfing[1] and
CNDL_WhiteLine and
Close > Close[1] and
(volume[2]>均量*2 or volume[1]>均量*2 or volume>均量*2)
///////////底部!穿陰線
)
or
(
CNDL_TrendDown[2] and
CNDL_UpShadow[2] <= CNDL_Height[2] * 0.2 and
CNDL_DownShadow[2] > CNDL_Body[2] * 2 and
!CNDL_Doji[2] and
CNDL_GapDown[2] and
(CNDL_WhiteLine[1] or CNDL_WhiteLine[2]) and
(volume[3]>均量*2 or volume[2]>均量*2 or volume[1]>均量*2)
//////////底部!槌子
)
)
and (barssinceexit(0)=-1 or barssinceexit(0)>3)
)
////////////////////////////////////////////////////////////////////
Condition1 = Hammer(2.5, Open, High, Low, Close)
DownTrend = True
For Counter = 3 To 1 Step -1
If Low[Counter] < Low[0] Then
DownTrend = False
Exit For
End If
End For
////////////////////////////////////////////////////////////////////
試空條件=(currentcontracts=0
and
not(
DownTrend And
Condition1 and
/// DrawPoint1 (BottomSide, "買!槌子" )
(volume[2]>均量 or volume[1]>均量 or volume>均量)
//////////底部!槌子
)
and
(
//////黑三兵
(
CNDL_BlackLine[2] and
CNDL_BlackLine[1] and
CNDL_BlackLine and
Open[1] >= Min(Open[2], Close[2]) and
Open[1] <= Max(Open[2], Close[2]) and
Open >= Min(Open[1], Close[1]) and
Open <= Max(Open[1], Close[1]) and
Close[1] < Close[2] and
Close < Close[1] and
(open[2]-close[2])<10 and
(open[1]-close[1])<10 and
(volume >均量*2 or volume[1]> 均量*2 or volume[2] > 均量*2)
)
or
//////三黑k攻擊
(
CNDL_BlackLine[2] and
CNDL_BlackLine[1] and
CNDL_BlackLine and
Close[1] <= Close[2] and
Close <= Close[1] and
((volume > volume[1]) and (volume[1] > volume[2])) and
(volume>均量*2 and volume[1]< 均量 and volume[2] < 均量)
)
or
//////黑二兵 長黑
(
CNDL_BlackLine[1] and
CNDL_BlackLine and
Close < Close[1] and
(open[1]-close[1])<20 and
短均線 < 長均線 and
短均線 < 多空線 and
((volume > volume[1] or volume[1] > volume[2] or volume > volume[2] ) and (volume[1] <均量 or volume[2] <均量) and volume > 均量*2)
)
or
/////短均線 中均線 多空線 交叉
(
Close[1] <= Close[2] and
Close <= Close[1] and
短均線 < 多空線 and
中均線 < 多空線 and
(短均線 cross under 長均線 or 短均線[1] cross under 長均線[1] or 短均線[2] cross under 長均線[2] or
短均線[3] cross under 長均線[3] or 短均線[4] cross under 長均線[4]or 短均線[5] cross under 長均線[5]) and
((volume > volume[1] or volume[1] > volume[2] or volume > volume[2] ) and (volume[1] <均量 or volume[2] <均量) and volume > 均量)
)
or
(
///////頭部!兩陰吃一陽copy
CNDL_TrendUp[2] and
CNDL_WhiteLine[2] and
CNDL_BlackLine[1] and
CNDL_BlackLine and
CNDL_Body[2] < 5 and
CNDL_Body[1] < 5 and
CNDL_Body > 5*2 and
Close < Close[1] and
(volume[2]<均量 and (volume[1]>均量*2 or volume>均量*2))
)
or
(
/////頭部!穿陽線"
CNDL_TrendUp[2] and
CNDL_WhiteLine[2] and
CNDL_BlackLine[1] and
CNDL_LongBody(10)[1] and
CNDL_Engulfing[1] and
(CNDL_BlackLine or CNDL_Doji) and
Close < Close[1] and
(volume[2]>均量 or volume[1]>均量 or volume>均量)
)
)
and (barssinceexit(0)=-1 or barssinceexit(0)>3)
)
////////////////再進場條件式////////////////////////////////////////////
再作多1條件=(close-entryprice(0)>=加多單距離 and
currentcontracts=下單口數*1 and
Close >= Close[1] and
(短均線 cross over 長均線 or (volume>volume[1] or volume > 均量*2)) and
短均線 > 多空線 and
中均線 > 多空線 )
再作多2條件=(close-entryprice(0)>=加多單距離 and
currentcontracts=下單口數*2 and
Close >= Close[1] and
(短均線 cross over 長均線 or (volume>volume[1] or volume > 均量*2)) and
短均線 > 多空線 and
中均線 > 多空線 )
再作空1條件=(close-entryprice(0)<=加空單距離 and
currentcontracts=-下單口數*1 and
Close <= Close[1] and
(短均線 cross under 長均線 or (volume>volume[1] or volume > 均量*2)) and
短均線 < 多空線 and
中均線 < 多空線 )
再作空1條件=(close-entryprice(0)<=加空單距離 and
currentcontracts=-下單口數*2 and
Close <= Close[1] and
(短均線 cross under 長均線 or (volume>volume[1] or volume > 均量*2)) and
短均線 < 多空線 and
中均線 < 多空線 )



請給指標原理, 這樣比較好協助您

向版主報告此篇 | 查IP位址
Old Post 2010-06-11 16:51
cgjj 現在離線 點選這裡查看 cgjj 的個人資料 點選這裡給 cgjj 傳送一條短訊 查找更多關於 cgjj 的文章 增加 cgjj 至你的好友列表 編輯/刪除訊息 引用回覆
全部時間均為台灣時間, 現在時間為23:24 發表新主題    回覆主題
  上一主題   下一主題
顯示可列印版本 | 訂閱此主題

論壇跳轉:
主題評分:

論壇規定:
你不可以發表新主題
你不可以回覆文章
你不可以上傳附件
你不可以編輯自己的文章
HTML語法禁止
vB 語法核准
表情符號核准
貼圖語法[IMG]核准
 

本站所有內容未經作者授權禁止轉貼節錄, 發表言論僅供參考勿作為投資決策依據。瀏覽本站請使用 IE 5.5 以上版本, 最佳瀏覽解析度 1024 x 768 全彩。

Powered by: vBulletin Version 2.3.0 - Copyright©2000-, Jelsoft Enterprises Limited.

簡愛洋行 製作 Copyright 2003-. All Rights Reserved.  聯絡我們