Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
bluefrankey
hqchart
提交
25938495
hqchart
项目概览
bluefrankey
/
hqchart
与 Fork 源项目一致
从无法访问的项目Fork
通知
5
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
hqchart
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
25938495
编写于
10月 09, 2018
作者:
J
jones
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ver 3047
上级
7a4aabc7
变更
5
展开全部
隐藏空白更改
内联
并排
Showing
5 changed file
with
2387 addition
and
1121 deletion
+2387
-1121
webhqchart/phone10.html
webhqchart/phone10.html
+207
-0
webhqchart/umychart.js
webhqchart/umychart.js
+501
-32
wechathqchart/umychart.hqIndexformula.wechat.js
wechathqchart/umychart.hqIndexformula.wechat.js
+928
-0
wechathqchart/umychart.wechat.3.0.js
wechathqchart/umychart.wechat.3.0.js
+751
-1089
小程序行情模块用例/image/hqchart_minute_hscreen.PNG
小程序行情模块用例/image/hqchart_minute_hscreen.PNG
+0
-0
未找到文件。
webhqchart/phone10.html
0 → 100644
浏览文件 @
25938495
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns=
"http://www.w3.org/1999/xhtml"
>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
<title>
通达信脚本网页版(横屏)
</title>
<link
rel=
"stylesheet"
href=
"tools.css"
/>
<link
rel=
"stylesheet"
href=
"font/iconfont.css"
>
<link
rel=
"stylesheet"
href=
"code_color/codemirror.css"
/>
<link
rel=
"stylesheet"
href=
"phone7.tools.css"
/>
</head>
<body>
<div
id=
"kline"
style=
"width: 900px;height:400px;position: relative;"
></div>
<div
class=
"tools"
>
<div
id=
"tools_top"
class=
"top"
>
<span>
指标名称:
</span>
<input
class=
"input"
v-model=
"indexName"
/>
<select
class=
"changeIndex"
v-model=
"changeIndex"
>
<option
value=
"1"
>
副图
</option>
<option
value=
"0"
>
主图
</option>
</select>
<button
class=
"toolsButton"
v-on:click=
"execute()"
>
执行
</button>
<span>
股票代码:
</span>
<input
class=
"input"
v-model=
"symbol"
/>
<button
class=
"toolsButton"
v-on:click=
"change()"
>
切换股票
</button>
<label
v-on:click=
"changeDebug()"
>
<input
type=
"checkbox"
v-model=
"isDebug"
/>
<span
style=
"margin-top:-2px;"
>
输出调试信息
</span>
</label>
<button
class=
"toolsButton"
v-on:click=
"save()"
>
保存
</button>
</div>
<div
class=
"table"
id=
"tools_table"
>
<table
cellpadding=
"0"
cellspacing=
"0"
>
<thead>
<tr>
<th
align=
"left"
>
参数
</th>
<th
align=
"left"
>
最小
</th>
<th
align=
"left"
>
最大
</th>
<th
align=
"left"
>
缺省
</th>
</tr>
</thead>
<tbody>
<tr
v-for=
"(item, index) in list"
>
<td
v-on:click=
"closeEdit(index,'name')"
>
<input
v-if=
"item.name.isEdit"
v-model=
"item.name.value"
v-on:click.stop=
""
/>
<span
v-else=
v-else
v-on:click.stop=
"openEdit(index,'name')"
>
{{item.name.value}}
</span>
</td>
<td
v-on:click=
"closeEdit(index,'min')"
>
<input
v-if=
"item.min.isEdit"
v-model=
"item.min.value"
v-on:click.stop=
""
/>
<span
v-else=
v-else
v-on:click.stop=
"openEdit(index,'min')"
>
{{item.min.value}}
</span>
</td>
<td
v-on:click=
"closeEdit(index,'max')"
>
<input
v-if=
"item.max.isEdit"
v-model=
"item.max.value"
v-on:click.stop=
""
/>
<span
v-else=
v-else
v-on:click.stop=
"openEdit(index,'max')"
>
{{item.max.value}}
</span>
</td>
<td
v-on:click=
"closeEdit(index,'value')"
>
<input
v-if=
"item.value.isEdit"
v-model=
"item.value.value"
v-on:click.stop=
""
/>
<span
v-else=
v-else
v-on:click.stop=
"openEdit(index,'value')"
>
{{item.value.value}}
</span>
</td>
</tr>
</tbody>
</table>
</div>
<div
class=
"code"
>
<textarea
id=
"tools_code"
></textarea>
</div>
<div
class=
"cache"
id=
"tools_cache"
>
<ul>
<li
v-bind:class=
"{ active: index == activeIndex }"
v-for=
"(item, index) in list"
v-on:click=
"select(index)"
>
{{item.name}}
<span
v-on:click.stop=
"_delete(index)"
>
删除
</span>
</li>
</ul>
</div>
</div>
<script
type=
"text/javascript"
src=
"umychart.js"
></script>
<script
type=
"text/javascript"
src=
"umychart.complier.js"
></script>
<script
type=
"text/javascript"
src=
"umychart.index.data.js"
></script>
<script
type=
"text/javascript"
src=
"code_color/codemirror.js"
></script>
<script
type=
"text/javascript"
src=
"code_color/javascript.js"
></script>
<script
type=
"text/javascript"
src=
"vue.js"
></script>
<script
type=
"text/javascript"
src=
"phone7.tools.js"
></script>
<script
src=
"https://cdn.bootcss.com/jquery/2.2.4/jquery.min.js"
></script>
<script>
var
jsChart
;
JS_EXECUTE_DEBUG_LOG
=
false
;
function
getURLParams
(
name
)
{
var
reg
=
new
RegExp
(
"
(^|&)
"
+
name
+
"
=([^&]*)(&|$)
"
,
"
i
"
);
var
r
=
window
.
location
.
search
.
substr
(
1
).
match
(
reg
);
if
(
r
!=
null
)
return
decodeURI
(
r
[
2
]);
return
null
;
}
$
(
window
).
resize
(
resizeCanvas
);
function
resizeCanvas
()
{
var
height
=
$
(
window
).
height
()
-
300
;
//300高度给指标编辑器
var
width
=
$
(
window
).
width
();
var
divKline
=
document
.
getElementById
(
'
kline
'
);
divKline
.
style
.
width
=
500
+
'
px
'
;
divKline
.
style
.
height
=
height
+
'
px
'
;
divKline
.
JSChart
.
OnSize
();
}
$
(
function
()
{
var
symbol
=
getURLParams
(
'
symbol
'
);
if
(
symbol
==
null
)
symbol
=
'
600984.sh
'
;
var
aryIndex
=
new
Array
();
var
index
=
getURLParams
(
'
index
'
);
//指标1
if
(
index
==
null
)
index
=
'
能图-趋势
'
;
aryIndex
.
push
({
"
Index
"
:
index
,
"
Modify
"
:
true
,
"
Change
"
:
true
});
aryIndex
.
push
({
"
Index
"
:
"
MACD
"
,
"
Modify
"
:
true
,
"
Change
"
:
true
});
/*
var index2=getURLParams('index2'); //指标2
//if (index2==null) index2='指数热度';
if (index2==null) index2='能图-资金分析';
*/
let
code
=
'
VAR1:MA(CLOSE,25),COLORYELLOW;VAR2:MA(CLOSE,40);
'
let
code2
=
'
MTR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-REF(CLOSE,1))),ABS(REF(CLOSE,1)-LOW)),N);
\n\
HD :=HIGH-REF(HIGH,1);
\n\
LD :=REF(LOW,1)-LOW;
\n\
DMP:=EXPMEMA(IF(HD>0&&HD>LD,HD,0),N);
\n\
DMM:=EXPMEMA(IF(LD>0&&LD>HD,LD,0),N);
\n\
PDI: DMP*100/MTR;
\n\
MDI: DMM*100/MTR,COLORCYAN;
\n\
ADX: EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,MM),COLORFFB5C5;
\n\
ADXR:EXPMEMA(ADX,MM),COLORYELLOW,LINETHICK2;
'
;
var
jsIndexData
=
new
JSIndexScript
();
let
testIndex
=
jsIndexData
.
Get
(
'
UOS
'
);
console
.
log
(
testIndex
);
//指标3
let
scriptIndex
=
{
Name
:
testIndex
.
Name
,
Script
:
testIndex
.
Script
,
Args
:
testIndex
.
Args
,
"
Modify
"
:
true
,
"
Change
"
:
true
};
//aryIndex.push(scriptIndex);
// 创建股票K线图
jsChart
=
JSChart
.
Init
(
document
.
getElementById
(
'
kline
'
));
var
option
=
{
Type
:
'
分钟走势图横屏
'
,
Windows
:
aryIndex
,
//窗口指标
Symbol
:
symbol
,
//股票代码
IsAutoUpate
:
true
,
//是自动更新数据
IsShowRightMenu
:
true
,
//右键菜单
IsShowCorssCursorInfo
:
true
,
//是否显示十字光标的刻度信息
Border
:
//边框
{
Left
:
45
,
//左边间距
Right
:
50
,
//右边间距
Top
:
80
,
Bottom
:
80
},
Frame
:
//子框架设置
[
{
SplitCount
:
5
,
StringFormat
:
1
},
{
SplitCount
:
3
,
StringFormat
:
1
}
]
}
jsChart
.
SetOption
(
option
);
//jsChart.LockIndex('飞龙四式',unlockIndex);
resizeCanvas
();
Tools
.
init
({
script
:
scriptIndex
.
Script
,
indexName
:
scriptIndex
.
Name
,
args
:
scriptIndex
.
Args
,
symbol
:
option
.
Symbol
});
})
function
unlockIndex
(
indexName
)
{
console
.
log
(
indexName
);
}
function
ComplierError
(
error
)
{
alert
(
error
);
console
.
log
(
'
[ComplierError]
'
,
error
);
}
</script>
</body>
</html>
\ No newline at end of file
webhqchart/umychart.js
浏览文件 @
25938495
此差异已折叠。
点击以展开。
wechathqchart/umychart.hqIndexformula.wechat.js
0 → 100644
浏览文件 @
25938495
此差异已折叠。
点击以展开。
wechathqchart/umychart.wechat.3.0.js
浏览文件 @
25938495
此差异已折叠。
点击以展开。
小程序行情模块用例/image/hqchart_minute_hscreen.PNG
0 → 100644
浏览文件 @
25938495
35.1 KB
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录