hqchart 1.1.14147 → 1.1.14154
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/umychart.vue.js +17 -12
- package/package.json +1 -1
- package/src/jscommon/umychart.DialogSearchIndex.js +58 -0
- package/src/jscommon/umychart.TReport.js +14 -3
- package/src/jscommon/umychart.uniapp.h5/umychart.uniapp.h5.js +1 -1
- package/src/jscommon/umychart.version.js +1 -1
- package/src/jscommon/umychart.vue/umychart.vue.js +73 -4
package/lib/umychart.vue.js
CHANGED
|
@@ -12932,13 +12932,10 @@ if(IFrameSplitOperator.IsNumber(option.BorderLine))this.Frame.BorderLine=option.
|
|
|
12932
12932
|
if(IFrameSplitOperator.IsBool(option.ItemBorder))chart.IsDrawBorder=option.ItemBorder;//单元格边框
|
|
12933
12933
|
if(IFrameSplitOperator.IsNumber(option.SelectedModel))chart.SelectedModel=option.SelectedModel;}var bRegisterKeydown=true;var bRegisterWheel=true;if(option){if(option.KeyDown===false){bRegisterKeydown=false;JSConsole.Chart.Log('[JSTReportChartContainer::Create] not register keydown event.');}if(option.Wheel===false){bRegisterWheel=false;JSConsole.Chart.Log('[JSTReportChartContainer::Create] not register wheel event.');}}if(bRegisterKeydown)this.UIElement.addEventListener("keydown",function(e){_this63.OnKeyDown(e);},true);//键盘消息
|
|
12934
12934
|
if(bRegisterWheel)this.UIElement.addEventListener("wheel",function(e){_this63.OnWheel(e);},true);//上下滚动消息
|
|
12935
|
-
this.UIElement.ondblclick=function(e){_this63.UIOnDblClick(e);};this.UIElement.onmousedown=function(e){_this63.UIOnMouseDown(e);};this.UIElement.onmousemove=function(e){_this63.UIOnMouseMove(e);};/*
|
|
12935
|
+
this.UIElement.ondblclick=function(e){_this63.UIOnDblClick(e);};this.UIElement.onmousedown=function(e){_this63.UIOnMouseDown(e);};this.UIElement.onmousemove=function(e){_this63.UIOnMouseMove(e);};this.UIElement.onmouseout=function(e){_this63.UIOnMounseOut(e);};this.UIElement.onmouseleave=function(e){_this63.UIOnMouseleave(e);};/*
|
|
12936
12936
|
this.UIElement.onmouseup=(e)=>{ this.UIOnMounseUp(e); }
|
|
12937
12937
|
this.UIElement.oncontextmenu=(e)=> { this.UIOnContextMenu(e); }
|
|
12938
12938
|
|
|
12939
|
-
this.UIElement.onmouseout=(e)=>{ this.UIOnMounseOut(e); }
|
|
12940
|
-
this.UIElement.onmouseleave=(e)=>{ this.UIOnMouseleave(e); }
|
|
12941
|
-
|
|
12942
12939
|
|
|
12943
12940
|
//手机拖拽
|
|
12944
12941
|
this.UIElement.ontouchstart=(e)=> { this.OnTouchStart(e); }
|
|
@@ -13003,7 +13000,7 @@ if(tooltipData){if(tooltipData.Type==20){if(tooltipData.Data&&tooltipData.Data.S
|
|
|
13003
13000
|
event.Callback(event,sendData,this);
|
|
13004
13001
|
}
|
|
13005
13002
|
*/if(mouseStatus)this.UIElement.style.cursor=mouseStatus.Cursor;//if (bDrawTooltip) this.DrawTooltip(this.LastMouseStatus.TooltipStatus);
|
|
13006
|
-
if(bShowChartTooltip){this.ShowMinuteChartTooltip(null,null,chartTooltipData);}else{this.HideMinuteChartTooltip();}};//点表头
|
|
13003
|
+
if(bShowChartTooltip){this.ShowMinuteChartTooltip(null,null,chartTooltipData);}else{this.HideMinuteChartTooltip();}};this.UIOnMounseOut=function(e){this.HideMinuteChartTooltip();};this.UIOnMouseleave=function(e){this.HideMinuteChartTooltip();};//点表头
|
|
13007
13004
|
this.OnClickHeader=function(clickData,e){var header=clickData.Header;if(header.Column&&header.Column.Sort==1){var data={CellType:header.CellType,ColumnIndex:header.ColumnIndex};this.SortHeader(header.Column,data);}};//排序
|
|
13008
13005
|
this.SortHeader=function(column,sortData){var _this67=this;var sortInfo={Field:this.SortInfo.Field,Sort:this.SortInfo.Sort,CellType:this.SortInfo.CellType};var arySortType=column.SortType;if(sortInfo.Field!=sortData.ColumnIndex||sortInfo.CellType!=sortData.CellType){sortInfo.Field=sortData.ColumnIndex;sortInfo.CellType=sortData.CellType;sortInfo.Sort=arySortType[0];}else{if(arySortType.length==1){sortInfo.Sort=arySortType[0];}else{for(var i=0;i<arySortType.length;++i){if(sortInfo.Sort==arySortType[i]){sortInfo.Sort=arySortType[(i+1)%arySortType.length];break;}}}}if(sortInfo.Sort==0)//还原
|
|
13009
13006
|
{this.Data.Data=[];for(var i=0;i<this.SourceData.Data.length;++i){this.Data.Data.push(this.SourceData.Data[i]);}}else{var event=this.GetEventCallback(JSCHART_EVENT_ID.ON_TREPORT_LOCAL_SORT);if(event&&event.Callback){var sendData={Column:column,SortInfo:sortInfo,SymbolList:this.Data.Data,Result:null};event.Callback(event,sendData,this);if(Array.isArray(sendData.Result))this.Data.Data=sendData.Result;}else{this.Data.Data.sort(function(left,right){return _this67.LocalSort(left,right,column,sortInfo.Sort,sortInfo.CellType);});}}this.Data.YOffset=0;this.SortInfo.Field=sortInfo.Field;this.SortInfo.Sort=sortInfo.Sort;this.SortInfo.CellType=sortInfo.CellType;this.Draw();this.DelayUpdateStockData();};//本地排序
|
|
@@ -13012,8 +13009,8 @@ case TREPORT_COLUMN_ID.POSITION_ID://持仓量
|
|
|
13012
13009
|
case TREPORT_COLUMN_ID.AMPLITUDE_ID:case TREPORT_COLUMN_ID.INCREASE_ID:case TREPORT_COLUMN_ID.RESERVE_NUMBER1_ID:case TREPORT_COLUMN_ID.RESERVE_NUMBER2_ID:case TREPORT_COLUMN_ID.RESERVE_NUMBER3_ID:case TREPORT_COLUMN_ID.RESERVE_NUMBER4_ID:case TREPORT_COLUMN_ID.RESERVE_NUMBER5_ID:case TREPORT_COLUMN_ID.RESERVE_NUMBER6_ID:case TREPORT_COLUMN_ID.RESERVE_NUMBER7_ID:case TREPORT_COLUMN_ID.RESERVE_NUMBER8_ID:case TREPORT_COLUMN_ID.RESERVE_NUMBER9_ID:case TREPORT_COLUMN_ID.RESERVE_NUMBER10_ID:return this.LocalNumberSort(left,right,column,sortType,cellType);default:return 0;}};this.LocalNumberSort=function(left,right,column,sortType,cellType){var leftStock=this.GetExePriceData(left);var rightStock=this.GetExePriceData(right);var leftValue=-99999999999999,rightValue=-99999999999999;if(sortType==2)leftValue=rightValue=99999999999999;var filedName=MAP_TREPORT_COLUMN_FIELD.get(column.Type);if(cellType==0)//行权价格
|
|
13013
13010
|
{if(leftStock&&IFrameSplitOperator.IsNumber(leftStock.ExePrice))leftValue=leftStock.ExePrice;if(rightStock&&IFrameSplitOperator.IsNumber(rightStock.ExePrice))rightValue=rightStock.ExePrice;}else if(cellType==1){if(leftStock&&leftStock.LeftData){var value=leftStock.LeftData[filedName];if(IFrameSplitOperator.IsNumber(value))leftValue=value;}if(rightStock&&rightStock.LeftData){var value=rightStock.LeftData[filedName];if(IFrameSplitOperator.IsNumber(value))rightValue=value;}}else if(cellType==2){if(leftStock&&leftStock.RightData){var value=leftStock.RightData[filedName];if(IFrameSplitOperator.IsNumber(value))leftValue=value;}if(rightStock&&rightStock.RightData){var value=rightStock.RightData[filedName];if(IFrameSplitOperator.IsNumber(value))rightValue=value;}}if(sortType==1){if(rightValue<leftValue)return-1;else if(rightValue<leftValue)return 1;else return 0;}else{if(leftValue<rightValue)return-1;else if(leftValue>rightValue)return 1;else return 0;}};this.GetTReportChart=function(){var chart=this.ChartPaint[0];return chart;};this.OnWheel=function(e)//滚轴
|
|
13014
13011
|
{JSConsole.Chart.Log('[JSTReportChartContainer::OnWheel]',e);if(this.ChartSplashPaint&&this.ChartSplashPaint.IsEnableSplash==true)return;if(!this.Data||!IFrameSplitOperator.IsNonEmptyArray(this.Data.Data))return;var x=e.clientX-this.UIElement.getBoundingClientRect().left;var y=e.clientY-this.UIElement.getBoundingClientRect().top;var isInClient=false;this.Canvas.beginPath();this.Canvas.rect(this.Frame.ChartBorder.GetLeft(),this.Frame.ChartBorder.GetTop(),this.Frame.ChartBorder.GetWidth(),this.Frame.ChartBorder.GetHeight());isInClient=this.Canvas.isPointInPath(x,y);if(!isInClient)return;var chart=this.GetTReportChart();if(!chart)return;var wheelValue=e.wheelDelta;if(!IFrameSplitOperator.IsObjectExist(e.wheelDelta))wheelValue=e.deltaY*-0.01;if(wheelValue<0)//下
|
|
13015
|
-
{var result=this.MoveSelectedRow(1,{EnablePageCycle:this.EnablePageCycle});if(result){if(result.Redraw)this.Draw();if(result.Update)this.DelayUpdateStockData();}}else if(wheelValue>0)//上
|
|
13016
|
-
{var result=this.MoveSelectedRow(-1,{EnablePageCycle:this.EnablePageCycle});if(result){if(result.Redraw)this.Draw();if(result.Update)this.DelayUpdateStockData();}}if(e.preventDefault)e.preventDefault();else e.returnValue=false;};this.OnKeyDown=function(e){if(this.ChartSplashPaint&&this.ChartSplashPaint.IsEnableSplash==true)return;var reportChart=this.GetTReportChart();if(!reportChart)return;var keyID=e.keyCode?e.keyCode:e.which;if(keyID==116)return;//F15刷新不处理
|
|
13012
|
+
{this.LastMouseStatus.TooltipStatus=null;var result=this.MoveSelectedRow(1,{EnablePageCycle:this.EnablePageCycle});if(result){if(result.Redraw)this.Draw();if(result.Update)this.DelayUpdateStockData();}}else if(wheelValue>0)//上
|
|
13013
|
+
{this.LastMouseStatus.TooltipStatus=null;var result=this.MoveSelectedRow(-1,{EnablePageCycle:this.EnablePageCycle});if(result){if(result.Redraw)this.Draw();if(result.Update)this.DelayUpdateStockData();}}if(e.preventDefault)e.preventDefault();else e.returnValue=false;};this.OnKeyDown=function(e){if(this.ChartSplashPaint&&this.ChartSplashPaint.IsEnableSplash==true)return;var reportChart=this.GetTReportChart();if(!reportChart)return;var keyID=e.keyCode?e.keyCode:e.which;if(keyID==116)return;//F15刷新不处理
|
|
13017
13014
|
switch(keyID){/*
|
|
13018
13015
|
case 33: //page up
|
|
13019
13016
|
if (this.GotoPreviousPage(this.PageUpDownCycle))
|
|
@@ -13802,19 +13799,27 @@ trDom.appendChild(tdDom);cellItem.Td=tdDom;var spanDom=document.createElement("s
|
|
|
13802
13799
|
}if(this.OpData.OpType==1){if(!IFrameSplitOperator.IsNumber(this.OpData.WindowIndex))return;var indexItem=cellItem.IndexItem;if(indexItem.Type==0)//系统指标
|
|
13803
13800
|
{this.HQChart.ChangeIndex(this.OpData.WindowIndex,indexItem.ID);}else if(indexItem.Type==1)//自定义脚本指标
|
|
13804
13801
|
{var indexData={ID:indexItem.ID,Name:indexItem.Name,Script:indexItem.Script,Args:indexItem.Args};this.HQChart.ChangeScriptIndex(this.OpData.WindowIndex,indexData);}else if(indexItem.Type==2)//api指标
|
|
13805
|
-
{var indedData={API:{ID:indexItem.ID,Name:indexItem.Name,Args:indexItem.Args,Url:'local'}};this.HQChart.ChangeAPIIndex(this.OpData.WindowIndex,indedData);}
|
|
13802
|
+
{var indedData={API:{ID:indexItem.ID,Name:indexItem.Name,Args:indexItem.Args,Url:'local'}};this.HQChart.ChangeAPIIndex(this.OpData.WindowIndex,indedData);}else if(indexItem.Type==3)//指标模板
|
|
13803
|
+
{this.HQChart.ChangeIndexTemplate(indexItem.TemplateData);}}else if(this.OpData.OpType==2){if(!IFrameSplitOperator.IsNumber(this.OpData.WindowIndex))return;var indexItem=cellItem.IndexItem;if(indexItem.Type==0)//系统指标
|
|
13806
13804
|
{var obj={WindowIndex:this.OpData.WindowIndex,IndexName:indexItem.ID};this.HQChart.AddOverlayIndex(obj);}else if(indexItem.Type==1)//自定义脚本指标
|
|
13807
13805
|
{var obj={WindowIndex:this.OpData.WindowIndex,IndexName:indexItem.ID,Name:indexItem.Name,Script:indexItem.Script,Args:indexItem.Args};this.HQChart.AddOverlayIndex(obj);}else if(indexItem.Type==2)//api指标
|
|
13808
|
-
{var obj={WindowIndex:this.OpData.WindowIndex,API:{ID:indexItem.ID,Name:indexItem.Name,Args:indexItem.Args,Url:'local'}};this.HQChart.AddOverlayIndex(obj);}
|
|
13806
|
+
{var obj={WindowIndex:this.OpData.WindowIndex,API:{ID:indexItem.ID,Name:indexItem.Name,Args:indexItem.Args,Url:'local'}};this.HQChart.AddOverlayIndex(obj);}else if(indexItem.Type==3)//指标模板
|
|
13807
|
+
{this.HQChart.ChangeIndexTemplate(indexItem.TemplateData);}}else if(this.OpData.OpType==3)//新增加指标窗口
|
|
13809
13808
|
{var indexItem=cellItem.IndexItem;if(indexItem.Type==0)//系统指标
|
|
13810
13809
|
{this.HQChart.AddIndexWindow(indexItem.ID,this.OpData);}else if(indexItem.Type==1)//自定义脚本指标
|
|
13811
13810
|
{var indexData={ID:indexItem.ID,Name:indexItem.Name,Script:indexItem.Script,Args:indexItem.Args};this.HQChart.AddScriptIndexWindow(indexData,this.OpData);}else if(indexItem.Type==2)//api指标
|
|
13812
|
-
{var indexData={API:{ID:indexItem.ID,Name:indexItem.Name,Args:indexItem.Args,Url:'local'}};this.HQChart.AddAPIIndexWindow(indexData,this.OpData);}
|
|
13811
|
+
{var indexData={API:{ID:indexItem.ID,Name:indexItem.Name,Args:indexItem.Args,Url:'local'}};this.HQChart.AddAPIIndexWindow(indexData,this.OpData);}else if(indexItem.Type==3)//指标模板
|
|
13812
|
+
{this.HQChart.ChangeIndexTemplate(indexItem.TemplateData);}}};this.OnClickGroup=function(e){if(!e.target)return false;var groupID=e.target.dataset.groupid;if(!groupID)return false;this.ChangeGroup(groupID);};this.UpdateStyle=function(){if(!this.DivDialog)return;if(this.BGColor)this.DivDialog.style['background-color']=this.BGColor;if(this.BorderColor)this.DivDialog.style['border-color']=this.BorderColor;if(this.TitleBGColor)this.TitleBox.DivTitle.style['background-color']=this.TitleBGColor;if(this.TitleColor)this.TitleBox.DivName.style['color']=this.TitleColor;if(this.InputTextColor)this.InputDom.style['color']=this.InputTextColor;};this.ChangeGroup=function(groupID){if(!this.IndexData)return;if(!IFrameSplitOperator.IsNonEmptyArray(this.IndexData.Data))return;var findItem=null;for(var i=0;i<this.IndexData.Data.length;++i){var item=this.IndexData.Data[i];if(item.Group.ID==groupID){findItem=item;break;}}if(!findItem)return;this.UpdateTableData(findItem);};//左侧分类
|
|
13813
13813
|
this.UpdateGroupData=function(){var index=0;for(index=0;index<this.IndexData.Data.length&&index<this.AryGroup.length;++index){var item=this.IndexData.Data[index];var cell=this.AryGroup[index];cell.Span.innerText=item.Group.Name;cell.Span.dataset.groupid=item.Group.ID;cell.Span.dataset.groupname=item.Group.Name;cell.Span.style.color=this.GroupNameColor;if(cell.Div.style.display=="none")cell.Div.style.display="";}for(;index<this.AryGroup.length;++index){var cell=this.AryGroup[index];cell.Div.style.display="none";}};this.UpdateTableData=function(data){var rowIndex=0;for(var j=0,index=0;rowIndex<this.AryData.length&&index<data.AryIndex.length;++rowIndex){var row=this.AryData[rowIndex];var cellCount=0;for(j=0;j<row.AryCell.length;++j){var cell=row.AryCell[j];if(index<data.AryIndex.length){var indexItem=data.AryIndex[index];cell.Span.innerText=indexItem.Name;cell.Span.style.color=this.IndexNameColor;if(cell.Td.style.display=="none")cell.Td.style.display="";cell.IndexItem=indexItem;++index;++cellCount;}else{cell.Td.style.display="none";}}if(cellCount>0){if(row.Tr.style.display=="none")row.Tr.style.display="";}else{row.Tr.style.display=="none";}}for(;rowIndex<this.AryData.length;++rowIndex){var row=this.AryData[rowIndex];row.Tr.style.display="none";}};//搜索
|
|
13814
13814
|
this.OnInputSearch=function(e){var strSearh=e.target.value;var aryIndex=[];var aryData=this.SeachIndex(strSearh);var setIndex=new _set2.default();for(var i=0;i<aryData.length;++i){var item=aryData[i];var key=item.ID+'-'+item.Type;setIndex.add(key);aryIndex.push(item);}//内置指标
|
|
13815
13815
|
var scriptData=new JSIndexScript();var result=scriptData.Search(strSearh);if(IFrameSplitOperator.IsNonEmptyArray(result)){for(var i=0;i<result.length;++i){var id=result[i];var key=id+'-0';if(setIndex.has(key))continue;var item={Name:id,ID:id,Type:0};aryIndex.push(item);}}this.UpdateTableData({AryIndex:aryIndex});};this.SeachIndex=function(strSearch){if(!this.IndexData||!IFrameSplitOperator.IsNonEmptyArray(this.IndexData.Data))return[];var aryData=[];var upperSearch=strSearch.toUpperCase();for(var i=0,j=0;i<this.IndexData.Data.length;++i){var groupItem=this.IndexData.Data[i];for(j=0;j<groupItem.AryIndex.length;++j){var item=groupItem.AryIndex[j];if(item.Name.indexOf(strSearch)>=0||item.Name.indexOf(upperSearch)>=0){aryData.push(item);}}}return aryData;};//配色修改
|
|
13816
13816
|
this.ReloadResource=function(option){this.TitleColor=g_JSChartResource.DialogSearchIndex.TitleColor;this.TitleBGColor=g_JSChartResource.DialogSearchIndex.TitleBGColor;this.BGColor=g_JSChartResource.DialogSearchIndex.BGColor;this.BorderColor=g_JSChartResource.DialogSearchIndex.BorderColor;this.IndexNameColor=g_JSChartResource.DialogSearchIndex.IndexNameColor;this.GroupNameColor=g_JSChartResource.DialogSearchIndex.GroupNameColor;this.InputTextColor=g_JSChartResource.DialogSearchIndex.InputTextColor;if(!this.DivDialog)return;this.UpdateStyle();};}JSDialogSearchIndex.GetDefaultIndexData=function(){var data={Name:"内置指标分类",Data:[{Group:{ID:"超买超卖型",Name:"超买超卖型"},AryIndex:[{Name:"ADTM 动态买卖气指标",ID:"ADTM",Type:0},//Type:0=系统指标 1=自定义通达信脚本 2=api指标
|
|
13817
|
-
{Name:"BIAS 乖离率",ID:"BIAS",Type:0},{Name:"BIAS36 三六乖离",ID:"BIAS36",Type:0},{Name:"BIAS_QL 乖离率-传统版",ID:"BIAS_QL",Type:0},{Name:"CCI 商品路径指标",ID:"CCI",Type:0},{Name:"FSL 分水岭",ID:"FSL",Type:0},{Name:"KDJ 随机指标",ID:"KDJ",Type:0},{Name:"MTM 动量线",ID:"MTM",Type:0},{Name:"OSC 变动速率线",ID:"OSC",Type:0},{Name:"RSI 相对强弱指标",ID:"RSI",Type:0},{Name:"ROC 变动率指标",ID:"ROC",Type:0},{Name:"WR 威廉指标",ID:"WR",Type:0}]},{Group:{ID:"趋势型",Name:"趋势型"},AryIndex:[{Name:"CHO 济坚指数",ID:"CHO",Type:0},{Name:"DMA 平均差",ID:"DMA",Type:0},{Name:"DMI 趋向指标",ID:"DMI",Type:0},{Name:"EMV 简易波动指标",ID:"EMV",Type:0},{Name:"MACD 平滑异同平均",ID:"MACD",Type:0},{Name:"TRIX 三重指数平均线",ID:"TRIX",Type:0},{Name:"UOS 终极指标",ID:"UOS",Type:0},{Name:"TRIX 三重指数平均线",ID:"TRIX",Type:0}]},{Group:{ID:"成交量型",Name:"成交量型"},AryIndex:[{Name:"HSL 换手率",ID:"HSL",Type:0},{Name:"OBV 累积能量线",ID:"OBV",Type:0},{Name:"NVI 负成交量",ID:"NVI",Type:0},{Name:"PVI 正成交量",ID:"PVI",Type:0},{Name:"VOL 成交量",ID:"VOL",Type:0}]},{Group:{ID:"均线型",Name:"均线型"},AryIndex:[{Name:"MA 均线",ID:"MA",Type:0},{Name:"BBI 多空线",ID:"BBI",Type:0}]},{Group:{ID:"路径型",Name:"路径型"},AryIndex:[{Name:"BOLL 布林线",ID:"BOLL",Type:0},{Name:"BOLL副图 布林线",ID:"BOLL副图",Type:0},{Name:"MIKE 麦克支撑压力",ID:"MIKE",Type:0},{Name:"ENE 轨道线",ID:"ENE",Type:0}]},{Group:{ID:"能量型",Name:"能量型"},AryIndex:[{Name:"BRAR 情绪指标",ID:"BRAR",Type:0},{Name:"CYR 市场强弱",ID:"CYR",Type:0},{Name:"MASS 梅斯线",ID:"MASS",Type:0},{Name:"PSY 心理线",ID:"PSY",Type:0},{Name:"CR 带状能量线",ID:"CR",Type:0},{Name:"VR 成交量变异率",ID:"VR",Type:0},{Name:"WAD 威廉多空力度线",ID:"WAD",Type:0}]},{Group:{ID:"自定义",Name:"自定义"},AryIndex:[{Name:"收盘线(后台指标)",ID:"CLOSE_LINE",Type:2,Args:null},(0,_defineProperty3.default)({Name:"高低均价(自定义脚本)",ID:"HIGH_LOW_AV",Type:1,Args:null,Script:"均价:(H+L)/2;高:H;低:L;"},'Args',[{Name:'N',Value:20},{Name:'M',Value:6}])]}]}
|
|
13817
|
+
{Name:"BIAS 乖离率",ID:"BIAS",Type:0},{Name:"BIAS36 三六乖离",ID:"BIAS36",Type:0},{Name:"BIAS_QL 乖离率-传统版",ID:"BIAS_QL",Type:0},{Name:"CCI 商品路径指标",ID:"CCI",Type:0},{Name:"FSL 分水岭",ID:"FSL",Type:0},{Name:"KDJ 随机指标",ID:"KDJ",Type:0},{Name:"MTM 动量线",ID:"MTM",Type:0},{Name:"OSC 变动速率线",ID:"OSC",Type:0},{Name:"RSI 相对强弱指标",ID:"RSI",Type:0},{Name:"ROC 变动率指标",ID:"ROC",Type:0},{Name:"WR 威廉指标",ID:"WR",Type:0}]},{Group:{ID:"趋势型",Name:"趋势型"},AryIndex:[{Name:"CHO 济坚指数",ID:"CHO",Type:0},{Name:"DMA 平均差",ID:"DMA",Type:0},{Name:"DMI 趋向指标",ID:"DMI",Type:0},{Name:"EMV 简易波动指标",ID:"EMV",Type:0},{Name:"MACD 平滑异同平均",ID:"MACD",Type:0},{Name:"TRIX 三重指数平均线",ID:"TRIX",Type:0},{Name:"UOS 终极指标",ID:"UOS",Type:0},{Name:"TRIX 三重指数平均线",ID:"TRIX",Type:0}]},{Group:{ID:"成交量型",Name:"成交量型"},AryIndex:[{Name:"HSL 换手率",ID:"HSL",Type:0},{Name:"OBV 累积能量线",ID:"OBV",Type:0},{Name:"NVI 负成交量",ID:"NVI",Type:0},{Name:"PVI 正成交量",ID:"PVI",Type:0},{Name:"VOL 成交量",ID:"VOL",Type:0}]},{Group:{ID:"均线型",Name:"均线型"},AryIndex:[{Name:"MA 均线",ID:"MA",Type:0},{Name:"BBI 多空线",ID:"BBI",Type:0}]},{Group:{ID:"路径型",Name:"路径型"},AryIndex:[{Name:"BOLL 布林线",ID:"BOLL",Type:0},{Name:"BOLL副图 布林线",ID:"BOLL副图",Type:0},{Name:"MIKE 麦克支撑压力",ID:"MIKE",Type:0},{Name:"ENE 轨道线",ID:"ENE",Type:0}]},{Group:{ID:"能量型",Name:"能量型"},AryIndex:[{Name:"BRAR 情绪指标",ID:"BRAR",Type:0},{Name:"CYR 市场强弱",ID:"CYR",Type:0},{Name:"MASS 梅斯线",ID:"MASS",Type:0},{Name:"PSY 心理线",ID:"PSY",Type:0},{Name:"CR 带状能量线",ID:"CR",Type:0},{Name:"VR 成交量变异率",ID:"VR",Type:0},{Name:"WAD 威廉多空力度线",ID:"WAD",Type:0}]},{Group:{ID:"自定义",Name:"自定义"},AryIndex:[{Name:"收盘线(后台指标)",ID:"CLOSE_LINE",Type:2,Args:null},(0,_defineProperty3.default)({Name:"高低均价(自定义脚本)",ID:"HIGH_LOW_AV",Type:1,Args:null,Script:"均价:(H+L)/2;高:H;低:L;"},'Args',[{Name:'N',Value:20},{Name:'M',Value:6}])]},{Group:{ID:"组合指标",Name:"组合指标"},AryIndex:[{Name:"BOLL+ENE+KDJ",ID:"9E154D3C-A4D4-40DD-8D8F-2C499F35E31B",Type:3,TemplateData:{Windows:[{Index:"BOLL"},{Index:"ENE"},{Index:"KDJ"}]}},{Name:"MA_OSC+DPO_RSI",ID:"E828DD1C-D41B-4888-9CB5-4CA1D84F7B50",Type:3,TemplateData:{Windows:[//{ API:{ Name:"后台指标ID", ID:"后台指标ID", Url:'local' } },
|
|
13818
|
+
{Index:'MA'},{Index:"DPO"}],OverlayIndex://叠加指标设置
|
|
13819
|
+
[{Index:'OSC',Windows:0//IsShareY:true,ShowRightText:false
|
|
13820
|
+
},{Index:'RSI',Windows:1//ShowRightText:false
|
|
13821
|
+
}]//KLine:{ Period:5, }
|
|
13822
|
+
}}]}]};return data;};function JSDialogModifyIndexParam(){this.DivDialog=null;this.DragTitle=null;this.TitleBox=null;//{ DivTitle, DivName, DivName }
|
|
13818
13823
|
this.Style=0;//样式 预留
|
|
13819
13824
|
this.TitleColor=g_JSChartResource.DialogModifyIndexParam.TitleColor;this.TitleBGColor=g_JSChartResource.DialogModifyIndexParam.TitleBGColor;this.BGColor=g_JSChartResource.DialogModifyIndexParam.BGColor;this.BorderColor=g_JSChartResource.DialogModifyIndexParam.BorderColor;this.ParamNameColor=g_JSChartResource.DialogModifyIndexParam.ParamNameColor;this.InputTextColor=g_JSChartResource.DialogModifyIndexParam.InputTextColor;this.MaxRowCount=30;//行
|
|
13820
13825
|
this.HQChart=null;this.AryData=[];this.IndexData=null;//指标数据 { WindowsIndex:, Type:1=主图 2=叠加, Identify, IndexScript: }
|
|
@@ -13863,7 +13868,7 @@ hisData.Symbol=message.symbol;}var stockObj={HQDataType:HQ_DATA_TYPE.KLINE_ID,St
|
|
|
13863
13868
|
this.ExecuteScript(item,data);}this.Status=0;}};this.OnExecuteFinish=function(data,indexInfo,jsExectute,jobInfo){var message={Data:data,IndexInfo:indexInfo,ID:JSCHART_WORKER_MESSAGE_ID.FINISH_EXECUTE_SCRIPT,JobInfo:jobInfo};postMessage(message);};this.OnExecuteError=function(error,indexInfo,jobData){var message={IndexInfo:indexInfo,ID:JSCHART_WORKER_MESSAGE_ID.ERROR_EXECUTE_SCRIPT,Error:error};postMessage(message);};}/********************************************************************************
|
|
13864
13869
|
* 版本信息输出
|
|
13865
13870
|
*
|
|
13866
|
-
*/var HQCHART_VERSION="1.1.
|
|
13871
|
+
*/var HQCHART_VERSION="1.1.14153";function PrintHQChartVersion(){var logo='\n\n*************************************************************************************************************************************************************************** \n* \n* :%@@- \n* :@@@@- \n* =@@@@ :#@@@ .:+#@@@#=: :=*@@@@@@#+-. *@@@@. \n* :@@@@@ .@@@@@ .#@@@@@@@@@@@- +@@@@@@@@@@@@@+ @@@@@ -%@@* \n* +@@@@% #@@@@# *@@@@@@@@@@@@@@%. =@@@@@@@@@@@@@@@- @@@@@ -@@@@+ \n* %@@@@* @@@@@+ .%@@@@@@@@@@@@@@@@%: #@@@@@@@@@@@@@@@% @@@@# *@@@@= \n* @@@@@= @@@@@- .%@@@@@@@*++*%@@@@@@% .%@@@@@@@%*+==+**= -@@@@+ #@@@@- \n* @@@@@. @@@@@. #@@@@@%= =@@@@@@* %@@@@@@#: *@@@@- :::. .-+*###+: ::: .+##+: -%%@@@@@%%%% \n* .@@@@@ .@@@@@. +@@@@@% .@@@@@@ *@@@@@@: %@@@@: +@@@@@%. :%@@@@@@@@@@: *@@@ :@@@@@* @@@@@@@@@@@@ \n* :@@@@@ :@@@@@ @@@@@% :@@@@@+ @@@@@@: %@@@@-@@@@@@@@@. @@@@@@@@@@@@@. :@@@%-@@@@@@.:@@@@@@@@@@@# \n* -@@@@% -@@@@@ =@@@@@. %@@@@% %@@@@@- %@@@@@@@@@@@@@@* %@@@@@@@@@@@@+ -@@@@@@@@@@# -@@@@@@@@@@@. \n* +@@@@%=========#@@@@% @@@@@# :@@@@@ .@@@@@% @@@@@@@@%@@@@@@@ -%+:. .#@@@@* +@@@@@@@%%@. .::+@@@@#:: \n* #@@@@@@@@@@@@@@@@@@@# .@@@@@ .@@@@@ :@@@@@. @@@@@@#. #@@@@@. -@@@@* #@@@@@@: *@@@@+ \n* %@@@@@@@@@@@@@@@@@@@+ :@@@@@ .@@@@@ -@@@@@ @@@@@+ @@@@@. :@@@@* @@@@@% #@@@@- \n* @@@@@@@@@@@@@@@@@@@@: :@@@@% :@@@@@ +@@@@% -@@@@+ @@@@@ -@@@@+ @@@@@. @@@@@. \n* .@@@@@@@@@@@@@@@@@@@@ :@@@@% -@@@@% *@@@@% #@@@@. @@@@@ .=*#%%%@@@@@= :@@@@# @@@@@. \n* -@@@@@:::::::::=@@@@@ :@@@@@ @@@@@* +@@@@% @@@@@ @@@@% -#@@@@@@@@@@@@: -@@@@* @@@@@ \n* =@@@@% =@@@@% .@@@@@ :@@@@@. -@@@@% @@@@@ .@@@@* +@@@@@@@@@@@@@@. =@@@@+ .@@@@@ \n* +@@@@# +@@@@# @@@@@# %@@@@% :@@@@@ .@@@@% =@@@@= -@@@@@*-:..%@@@@ +@@@@= :@@@@# \n* *@@@@* *@@@@* +@@@@@: #@@@@@+ .@@@@@@ :@@@@% *@@@@- @@@@@. @@@@% #@@@@: =@@@@+ \n* %@@@@= %@@@@+ @@@@@@- .%@@@@@# #@@@@@# :@@@@% #@@@@: @@@@% @@@@* %@@@@. #@@@@- \n* @@@@@- @@@@@= =@@@@@@#=...-*@@@@@@@: @@@@@@%=. :+**. :@@@@* %@@@@. .@@@@* *@@@@= @@@@@ %@@@@+ \n* .@@@@@: .@@@@@: *@@@@@@@@@@@@@@@@@@@# =@@@@@@@@%%%@@@@@@ +@@@@- @@@@@ .@@@@@: :%@@@@@- .@@@@% %@@@@@*+- \n* :@@@@@ :@@@@@ +@@@@@@@@@@@@@@@@@@@# =@@@@@@@@@@@@@@@@% %@@@@ @@@@@ @@@@@@@@@@@@@@@: -@@@@* *@@@@@@@@- \n* =@@@@@ -@@@@@ :@@@@@@@@@@@@@@@@@@@# :@@@@@@@@@@@@@@@% @@@@@ %@@@% #@@@@@@@@@#@@@@. +@@@@- .@@@@@@@@# \n* *@@@@# =@@@@% :#@@@@@@@#: :@@@@@= =@@@@@@@@@@@+. @@@@@ :@@@+ *@@@@@@@- %@@@ *@@@= =@@@@@@@* \n* =++++- -++++= .:::. .=*+: :-=+++=:. ****= .=+. .-++=: :+++ -+=: .-=+=:. \n* \n* \n* HQChart \n* Ver: '+HQCHART_VERSION+' \n* License: Apache License 2.0 \n* Source: https://github.com/jones2000/HQChart\n*\n************************************************************************************************************************************************************************** \n ';console.log(logo);}PrintHQChartVersion();//把给外界调用的方法暴露出来
|
|
13867
13872
|
exports.default=(_jsChartInit$jsChartS={jsChartInit:JSChart.Init,jsChartStyle:JSChart.SetStyle,// IsIndexSymbol:IsIndexSymbol,
|
|
13868
13873
|
// BaseIndex:BaseIndex,
|
|
13869
13874
|
// ChartLine:ChartLine,
|
package/package.json
CHANGED
|
@@ -313,6 +313,10 @@ function JSDialogSearchIndex()
|
|
|
313
313
|
var indedData={ API: { ID:indexItem.ID, Name:indexItem.Name, Args:indexItem.Args, Url:'local'} };
|
|
314
314
|
this.HQChart.ChangeAPIIndex(this.OpData.WindowIndex, indedData);
|
|
315
315
|
}
|
|
316
|
+
else if (indexItem.Type==3) //指标模板
|
|
317
|
+
{
|
|
318
|
+
this.HQChart.ChangeIndexTemplate(indexItem.TemplateData)
|
|
319
|
+
}
|
|
316
320
|
}
|
|
317
321
|
else if (this.OpData.OpType==2)
|
|
318
322
|
{
|
|
@@ -334,6 +338,10 @@ function JSDialogSearchIndex()
|
|
|
334
338
|
var obj={ WindowIndex:this.OpData.WindowIndex, API: { ID:indexItem.ID, Name:indexItem.Name, Args:indexItem.Args, Url:'local'} };
|
|
335
339
|
this.HQChart.AddOverlayIndex(obj);
|
|
336
340
|
}
|
|
341
|
+
else if (indexItem.Type==3) //指标模板
|
|
342
|
+
{
|
|
343
|
+
this.HQChart.ChangeIndexTemplate(indexItem.TemplateData)
|
|
344
|
+
}
|
|
337
345
|
}
|
|
338
346
|
else if (this.OpData.OpType==3) //新增加指标窗口
|
|
339
347
|
{
|
|
@@ -352,6 +360,10 @@ function JSDialogSearchIndex()
|
|
|
352
360
|
var indexData={ API: { ID:indexItem.ID, Name:indexItem.Name, Args:indexItem.Args, Url:'local'} };
|
|
353
361
|
this.HQChart.AddAPIIndexWindow(indexData, this.OpData);
|
|
354
362
|
}
|
|
363
|
+
else if (indexItem.Type==3) //指标模板
|
|
364
|
+
{
|
|
365
|
+
this.HQChart.ChangeIndexTemplate(indexItem.TemplateData)
|
|
366
|
+
}
|
|
355
367
|
}
|
|
356
368
|
|
|
357
369
|
}
|
|
@@ -633,6 +645,52 @@ JSDialogSearchIndex.GetDefaultIndexData=function()
|
|
|
633
645
|
{ Name:"收盘线(后台指标)", ID:"CLOSE_LINE", Type:2, Args:null },
|
|
634
646
|
{ Name:"高低均价(自定义脚本)", ID:"HIGH_LOW_AV", Type:1, Args:null , Script:"均价:(H+L)/2;高:H;低:L;", Args:[ { Name:'N', Value:20}, { Name:'M', Value:6}]},
|
|
635
647
|
]
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
Group:{ ID:"组合指标", Name:"组合指标" } ,
|
|
651
|
+
AryIndex:
|
|
652
|
+
[
|
|
653
|
+
{
|
|
654
|
+
Name:"BOLL+ENE+KDJ", ID:"9E154D3C-A4D4-40DD-8D8F-2C499F35E31B", Type:3,
|
|
655
|
+
TemplateData:
|
|
656
|
+
{
|
|
657
|
+
Windows:
|
|
658
|
+
[
|
|
659
|
+
{ Index:"BOLL" },
|
|
660
|
+
{ Index:"ENE" },
|
|
661
|
+
{ Index:"KDJ"}
|
|
662
|
+
]
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
},
|
|
666
|
+
|
|
667
|
+
{
|
|
668
|
+
Name:"MA_OSC+DPO_RSI", ID:"E828DD1C-D41B-4888-9CB5-4CA1D84F7B50", Type:3,
|
|
669
|
+
TemplateData:
|
|
670
|
+
{
|
|
671
|
+
Windows:
|
|
672
|
+
[
|
|
673
|
+
//{ API:{ Name:"后台指标ID", ID:"后台指标ID", Url:'local' } },
|
|
674
|
+
{ Index:'MA', },
|
|
675
|
+
{ Index:"DPO" },
|
|
676
|
+
],
|
|
677
|
+
|
|
678
|
+
OverlayIndex: //叠加指标设置
|
|
679
|
+
[
|
|
680
|
+
{
|
|
681
|
+
Index:'OSC', Windows:0,
|
|
682
|
+
//IsShareY:true,ShowRightText:false
|
|
683
|
+
},
|
|
684
|
+
{
|
|
685
|
+
Index:'RSI', Windows:1,
|
|
686
|
+
//ShowRightText:false
|
|
687
|
+
},
|
|
688
|
+
],
|
|
689
|
+
|
|
690
|
+
//KLine:{ Period:5, }
|
|
691
|
+
}
|
|
692
|
+
},
|
|
693
|
+
]
|
|
636
694
|
}
|
|
637
695
|
|
|
638
696
|
]
|
|
@@ -470,14 +470,13 @@ function JSTReportChartContainer(uielement)
|
|
|
470
470
|
this.UIElement.ondblclick=(e)=>{ this.UIOnDblClick(e); }
|
|
471
471
|
this.UIElement.onmousedown=(e)=> { this.UIOnMouseDown(e); }
|
|
472
472
|
this.UIElement.onmousemove=(e)=>{ this.UIOnMouseMove(e);}
|
|
473
|
+
this.UIElement.onmouseout=(e)=>{ this.UIOnMounseOut(e); }
|
|
474
|
+
this.UIElement.onmouseleave=(e)=>{ this.UIOnMouseleave(e); }
|
|
473
475
|
|
|
474
476
|
/*
|
|
475
477
|
this.UIElement.onmouseup=(e)=>{ this.UIOnMounseUp(e); }
|
|
476
478
|
this.UIElement.oncontextmenu=(e)=> { this.UIOnContextMenu(e); }
|
|
477
479
|
|
|
478
|
-
this.UIElement.onmouseout=(e)=>{ this.UIOnMounseOut(e); }
|
|
479
|
-
this.UIElement.onmouseleave=(e)=>{ this.UIOnMouseleave(e); }
|
|
480
|
-
|
|
481
480
|
|
|
482
481
|
//手机拖拽
|
|
483
482
|
this.UIElement.ontouchstart=(e)=> { this.OnTouchStart(e); }
|
|
@@ -1115,6 +1114,16 @@ function JSTReportChartContainer(uielement)
|
|
|
1115
1114
|
}
|
|
1116
1115
|
}
|
|
1117
1116
|
|
|
1117
|
+
this.UIOnMounseOut=function(e)
|
|
1118
|
+
{
|
|
1119
|
+
this.HideMinuteChartTooltip();
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
this.UIOnMouseleave=function(e)
|
|
1123
|
+
{
|
|
1124
|
+
this.HideMinuteChartTooltip();
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1118
1127
|
//点表头
|
|
1119
1128
|
this.OnClickHeader=function(clickData, e)
|
|
1120
1129
|
{
|
|
@@ -1321,6 +1330,7 @@ function JSTReportChartContainer(uielement)
|
|
|
1321
1330
|
|
|
1322
1331
|
if (wheelValue<0) //下
|
|
1323
1332
|
{
|
|
1333
|
+
this.LastMouseStatus.TooltipStatus=null;
|
|
1324
1334
|
var result=this.MoveSelectedRow(1,{ EnablePageCycle:this.EnablePageCycle })
|
|
1325
1335
|
if (result)
|
|
1326
1336
|
{
|
|
@@ -1330,6 +1340,7 @@ function JSTReportChartContainer(uielement)
|
|
|
1330
1340
|
}
|
|
1331
1341
|
else if (wheelValue>0) //上
|
|
1332
1342
|
{
|
|
1343
|
+
this.LastMouseStatus.TooltipStatus=null;
|
|
1333
1344
|
var result=this.MoveSelectedRow(-1,{ EnablePageCycle:this.EnablePageCycle} );
|
|
1334
1345
|
if (result)
|
|
1335
1346
|
{
|
|
@@ -139523,7 +139523,7 @@ function ScrollBarBGChart()
|
|
|
139523
139523
|
|
|
139524
139524
|
|
|
139525
139525
|
|
|
139526
|
-
var HQCHART_VERSION="1.1.
|
|
139526
|
+
var HQCHART_VERSION="1.1.14153";
|
|
139527
139527
|
|
|
139528
139528
|
function PrintHQChartVersion()
|
|
139529
139529
|
{
|
|
@@ -136698,14 +136698,13 @@ function JSTReportChartContainer(uielement)
|
|
|
136698
136698
|
this.UIElement.ondblclick=(e)=>{ this.UIOnDblClick(e); }
|
|
136699
136699
|
this.UIElement.onmousedown=(e)=> { this.UIOnMouseDown(e); }
|
|
136700
136700
|
this.UIElement.onmousemove=(e)=>{ this.UIOnMouseMove(e);}
|
|
136701
|
+
this.UIElement.onmouseout=(e)=>{ this.UIOnMounseOut(e); }
|
|
136702
|
+
this.UIElement.onmouseleave=(e)=>{ this.UIOnMouseleave(e); }
|
|
136701
136703
|
|
|
136702
136704
|
/*
|
|
136703
136705
|
this.UIElement.onmouseup=(e)=>{ this.UIOnMounseUp(e); }
|
|
136704
136706
|
this.UIElement.oncontextmenu=(e)=> { this.UIOnContextMenu(e); }
|
|
136705
136707
|
|
|
136706
|
-
this.UIElement.onmouseout=(e)=>{ this.UIOnMounseOut(e); }
|
|
136707
|
-
this.UIElement.onmouseleave=(e)=>{ this.UIOnMouseleave(e); }
|
|
136708
|
-
|
|
136709
136708
|
|
|
136710
136709
|
//手机拖拽
|
|
136711
136710
|
this.UIElement.ontouchstart=(e)=> { this.OnTouchStart(e); }
|
|
@@ -137343,6 +137342,16 @@ function JSTReportChartContainer(uielement)
|
|
|
137343
137342
|
}
|
|
137344
137343
|
}
|
|
137345
137344
|
|
|
137345
|
+
this.UIOnMounseOut=function(e)
|
|
137346
|
+
{
|
|
137347
|
+
this.HideMinuteChartTooltip();
|
|
137348
|
+
}
|
|
137349
|
+
|
|
137350
|
+
this.UIOnMouseleave=function(e)
|
|
137351
|
+
{
|
|
137352
|
+
this.HideMinuteChartTooltip();
|
|
137353
|
+
}
|
|
137354
|
+
|
|
137346
137355
|
//点表头
|
|
137347
137356
|
this.OnClickHeader=function(clickData, e)
|
|
137348
137357
|
{
|
|
@@ -137549,6 +137558,7 @@ function JSTReportChartContainer(uielement)
|
|
|
137549
137558
|
|
|
137550
137559
|
if (wheelValue<0) //下
|
|
137551
137560
|
{
|
|
137561
|
+
this.LastMouseStatus.TooltipStatus=null;
|
|
137552
137562
|
var result=this.MoveSelectedRow(1,{ EnablePageCycle:this.EnablePageCycle })
|
|
137553
137563
|
if (result)
|
|
137554
137564
|
{
|
|
@@ -137558,6 +137568,7 @@ function JSTReportChartContainer(uielement)
|
|
|
137558
137568
|
}
|
|
137559
137569
|
else if (wheelValue>0) //上
|
|
137560
137570
|
{
|
|
137571
|
+
this.LastMouseStatus.TooltipStatus=null;
|
|
137561
137572
|
var result=this.MoveSelectedRow(-1,{ EnablePageCycle:this.EnablePageCycle} );
|
|
137562
137573
|
if (result)
|
|
137563
137574
|
{
|
|
@@ -148093,6 +148104,10 @@ function JSDialogSearchIndex()
|
|
|
148093
148104
|
var indedData={ API: { ID:indexItem.ID, Name:indexItem.Name, Args:indexItem.Args, Url:'local'} };
|
|
148094
148105
|
this.HQChart.ChangeAPIIndex(this.OpData.WindowIndex, indedData);
|
|
148095
148106
|
}
|
|
148107
|
+
else if (indexItem.Type==3) //指标模板
|
|
148108
|
+
{
|
|
148109
|
+
this.HQChart.ChangeIndexTemplate(indexItem.TemplateData)
|
|
148110
|
+
}
|
|
148096
148111
|
}
|
|
148097
148112
|
else if (this.OpData.OpType==2)
|
|
148098
148113
|
{
|
|
@@ -148114,6 +148129,10 @@ function JSDialogSearchIndex()
|
|
|
148114
148129
|
var obj={ WindowIndex:this.OpData.WindowIndex, API: { ID:indexItem.ID, Name:indexItem.Name, Args:indexItem.Args, Url:'local'} };
|
|
148115
148130
|
this.HQChart.AddOverlayIndex(obj);
|
|
148116
148131
|
}
|
|
148132
|
+
else if (indexItem.Type==3) //指标模板
|
|
148133
|
+
{
|
|
148134
|
+
this.HQChart.ChangeIndexTemplate(indexItem.TemplateData)
|
|
148135
|
+
}
|
|
148117
148136
|
}
|
|
148118
148137
|
else if (this.OpData.OpType==3) //新增加指标窗口
|
|
148119
148138
|
{
|
|
@@ -148132,6 +148151,10 @@ function JSDialogSearchIndex()
|
|
|
148132
148151
|
var indexData={ API: { ID:indexItem.ID, Name:indexItem.Name, Args:indexItem.Args, Url:'local'} };
|
|
148133
148152
|
this.HQChart.AddAPIIndexWindow(indexData, this.OpData);
|
|
148134
148153
|
}
|
|
148154
|
+
else if (indexItem.Type==3) //指标模板
|
|
148155
|
+
{
|
|
148156
|
+
this.HQChart.ChangeIndexTemplate(indexItem.TemplateData)
|
|
148157
|
+
}
|
|
148135
148158
|
}
|
|
148136
148159
|
|
|
148137
148160
|
}
|
|
@@ -148413,6 +148436,52 @@ JSDialogSearchIndex.GetDefaultIndexData=function()
|
|
|
148413
148436
|
{ Name:"收盘线(后台指标)", ID:"CLOSE_LINE", Type:2, Args:null },
|
|
148414
148437
|
{ Name:"高低均价(自定义脚本)", ID:"HIGH_LOW_AV", Type:1, Args:null , Script:"均价:(H+L)/2;高:H;低:L;", Args:[ { Name:'N', Value:20}, { Name:'M', Value:6}]},
|
|
148415
148438
|
]
|
|
148439
|
+
},
|
|
148440
|
+
{
|
|
148441
|
+
Group:{ ID:"组合指标", Name:"组合指标" } ,
|
|
148442
|
+
AryIndex:
|
|
148443
|
+
[
|
|
148444
|
+
{
|
|
148445
|
+
Name:"BOLL+ENE+KDJ", ID:"9E154D3C-A4D4-40DD-8D8F-2C499F35E31B", Type:3,
|
|
148446
|
+
TemplateData:
|
|
148447
|
+
{
|
|
148448
|
+
Windows:
|
|
148449
|
+
[
|
|
148450
|
+
{ Index:"BOLL" },
|
|
148451
|
+
{ Index:"ENE" },
|
|
148452
|
+
{ Index:"KDJ"}
|
|
148453
|
+
]
|
|
148454
|
+
}
|
|
148455
|
+
|
|
148456
|
+
},
|
|
148457
|
+
|
|
148458
|
+
{
|
|
148459
|
+
Name:"MA_OSC+DPO_RSI", ID:"E828DD1C-D41B-4888-9CB5-4CA1D84F7B50", Type:3,
|
|
148460
|
+
TemplateData:
|
|
148461
|
+
{
|
|
148462
|
+
Windows:
|
|
148463
|
+
[
|
|
148464
|
+
//{ API:{ Name:"后台指标ID", ID:"后台指标ID", Url:'local' } },
|
|
148465
|
+
{ Index:'MA', },
|
|
148466
|
+
{ Index:"DPO" },
|
|
148467
|
+
],
|
|
148468
|
+
|
|
148469
|
+
OverlayIndex: //叠加指标设置
|
|
148470
|
+
[
|
|
148471
|
+
{
|
|
148472
|
+
Index:'OSC', Windows:0,
|
|
148473
|
+
//IsShareY:true,ShowRightText:false
|
|
148474
|
+
},
|
|
148475
|
+
{
|
|
148476
|
+
Index:'RSI', Windows:1,
|
|
148477
|
+
//ShowRightText:false
|
|
148478
|
+
},
|
|
148479
|
+
],
|
|
148480
|
+
|
|
148481
|
+
//KLine:{ Period:5, }
|
|
148482
|
+
}
|
|
148483
|
+
},
|
|
148484
|
+
]
|
|
148416
148485
|
}
|
|
148417
148486
|
|
|
148418
148487
|
]
|
|
@@ -148950,7 +149019,7 @@ function HQChartScriptWorker()
|
|
|
148950
149019
|
|
|
148951
149020
|
|
|
148952
149021
|
|
|
148953
|
-
var HQCHART_VERSION="1.1.
|
|
149022
|
+
var HQCHART_VERSION="1.1.14153";
|
|
148954
149023
|
|
|
148955
149024
|
function PrintHQChartVersion()
|
|
148956
149025
|
{
|