hqchart 1.1.14956 → 1.1.14958
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/package.json +1 -1
- package/src/jscommon/umychart.NetworkFilterTest.js +44 -16
- package/src/jscommon/umychart.js +12 -0
- package/src/jscommon/umychart.testdata.js +44 -16
- package/src/jscommon/umychart.uniapp.h5/umychart.uniapp.h5.js +13 -1
- package/src/jscommon/umychart.version.js +1 -1
- package/src/jscommon/umychart.vue/umychart.NetworkFilterTest.vue.js +44 -16
- package/src/jscommon/umychart.vue/umychart.vue.js +13 -1
package/package.json
CHANGED
|
@@ -55964,6 +55964,7 @@ HQData.Minute_RequestMinuteUpdateData=function(data, callback)
|
|
|
55964
55964
|
var srcStock=fullData[0];
|
|
55965
55965
|
var stockItem={ date:srcStock.date, minute:[], yclose:srcStock.yclose, symbol:symbol, name:symbol };
|
|
55966
55966
|
|
|
55967
|
+
var lastItem=null;
|
|
55967
55968
|
for(var i=0;i<srcStock.minute.length;++i)
|
|
55968
55969
|
{
|
|
55969
55970
|
var item=srcStock.minute[i];
|
|
@@ -55972,6 +55973,7 @@ HQData.Minute_RequestMinuteUpdateData=function(data, callback)
|
|
|
55972
55973
|
//0=日期 1=时间 2=开 3=高 4=低 5=收 6=均价 7=量 8=金额 9=涨幅 10=涨跌
|
|
55973
55974
|
var minItem=[srcStock.date, item.time, item.open, item.high, item.low, item.price, item.avprice , item.vol, item.amount ];
|
|
55974
55975
|
stockItem.minute.push(minItem);
|
|
55976
|
+
lastItem=minItem;
|
|
55975
55977
|
if (stockItem.minute.length>3) break;
|
|
55976
55978
|
}
|
|
55977
55979
|
}
|
|
@@ -55997,28 +55999,54 @@ HQData.Minute_RequestMinuteUpdateData=function(data, callback)
|
|
|
55997
55999
|
if (callcation.After)
|
|
55998
56000
|
{
|
|
55999
56001
|
var afterInfo={ totalcount:60*10, ver:2.0, TimeConfig:{ AryTime:[{ Start:145700, End:145959, Date:srcStock.date }]} }; //9:15-9:25 集合竞价15分钟 1s一个数据
|
|
56002
|
+
var afterData=[];
|
|
56000
56003
|
|
|
56001
|
-
|
|
56002
|
-
|
|
56003
|
-
[
|
|
56004
|
-
|
|
56005
|
-
[
|
|
56006
|
-
|
|
56007
|
-
|
|
56008
|
-
|
|
56009
|
-
|
|
56010
|
-
|
|
56011
|
-
|
|
56012
|
-
|
|
56013
|
-
|
|
56014
|
-
|
|
56015
|
-
|
|
56016
|
-
|
|
56004
|
+
if (IFrameSplitOperator.IsNonEmptyArray(lastItem) && lastItem[1]>=1457)
|
|
56005
|
+
{
|
|
56006
|
+
var price=lastItem[5];
|
|
56007
|
+
afterData=
|
|
56008
|
+
[
|
|
56009
|
+
[145708,price+0.01, 400, 300, 1, 800],
|
|
56010
|
+
[145718,price+0.02, 550, 600, 0, 1500],
|
|
56011
|
+
[145738,price+0.02, 150, 800, 0, 1500],
|
|
56012
|
+
[145748,price+0.02, 150, 800, 0, 1500],
|
|
56013
|
+
[145803,price+0.03, 300, 600, 1, 3600],
|
|
56014
|
+
[145815,price+0.03, 350, 210, 2, 1600],
|
|
56015
|
+
[145826,price+0.02, 1210, 350, 2, 2700],
|
|
56016
|
+
[145833,price+0.01, 260, 550, 2, 1000],
|
|
56017
|
+
[145845,price+0.02, 160, 750, 2, 1000],
|
|
56018
|
+
[145858,price-0.01, 460, 650, 2, 1500],
|
|
56019
|
+
[145905,price-0.02, 160, 450, 1, 1500],
|
|
56020
|
+
[145928,price-0.02, 260, 250, 1, 1500],
|
|
56021
|
+
[145948,price-0.02, 860, 150, 1, 1500],
|
|
56022
|
+
];
|
|
56023
|
+
}
|
|
56017
56024
|
|
|
56018
56025
|
stockItem.after=afterData;
|
|
56019
56026
|
stockItem.afterinfo=afterInfo;
|
|
56020
56027
|
}
|
|
56021
56028
|
|
|
56029
|
+
if (bBuySellBar && lastItem) //盘口分析
|
|
56030
|
+
{
|
|
56031
|
+
var lastPrice=lastItem[4];
|
|
56032
|
+
var aryBuy=[];
|
|
56033
|
+
var value=lastPrice+0.01;
|
|
56034
|
+
for(var i=0;i<10;++i)
|
|
56035
|
+
{
|
|
56036
|
+
aryBuy.push({Price:value, Type:1, Vol:HQData.GetRandomTestData(1000,10000) });
|
|
56037
|
+
value+=0.02;
|
|
56038
|
+
}
|
|
56039
|
+
|
|
56040
|
+
var arySell=[];
|
|
56041
|
+
for(var i=0;i<10;++i)
|
|
56042
|
+
{
|
|
56043
|
+
arySell.push({Price:value, Type:2, Vol:HQData.GetRandomTestData(1000,10000) });
|
|
56044
|
+
value+=0.02;
|
|
56045
|
+
}
|
|
56046
|
+
|
|
56047
|
+
stockItem.BuySellData={ AryBuy:aryBuy, ArySell:arySell };
|
|
56048
|
+
}
|
|
56049
|
+
|
|
56022
56050
|
var hqchartData={code:0, stock:[stockItem], dataType:1 };
|
|
56023
56051
|
hqchartData.LatestPointFlash={ FlashCount:2 };
|
|
56024
56052
|
|
package/src/jscommon/umychart.js
CHANGED
|
@@ -92227,6 +92227,11 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
92227
92227
|
if (option.ClearYCoordinateMaxMin===true) this.Frame.ClearYCoordinateMaxMin();
|
|
92228
92228
|
}
|
|
92229
92229
|
|
|
92230
|
+
this.ResetDataStatus();
|
|
92231
|
+
this.ClearIndexPaint();
|
|
92232
|
+
this.ClearIndexRunCount();
|
|
92233
|
+
this.ClearStockCache();
|
|
92234
|
+
|
|
92230
92235
|
if (this.DayCount<=1) this.RequestMinuteData();
|
|
92231
92236
|
else this.RequestHistoryMinuteData();
|
|
92232
92237
|
}
|
|
@@ -92842,6 +92847,12 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
92842
92847
|
this.SetLatestPointFlash(item.FlashCount)
|
|
92843
92848
|
}
|
|
92844
92849
|
|
|
92850
|
+
if (IFrameSplitOperator.IsNonEmptyArray(data.stock) && data.stock[0])
|
|
92851
|
+
{
|
|
92852
|
+
this.DataStatus.LatestDate=data.stock[0].date; //保存下最后一天的日期
|
|
92853
|
+
this.RecvBuySellData(data.stock[0].BuySellData);
|
|
92854
|
+
}
|
|
92855
|
+
|
|
92845
92856
|
if (this.DayCount>1) //多日走势图
|
|
92846
92857
|
{
|
|
92847
92858
|
this.UpdateCallCationData(beforeOpenData,afterCloseData, { DataType:1});
|
|
@@ -94795,6 +94806,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
94795
94806
|
//获取最新的一条盘后数据
|
|
94796
94807
|
this.GetLatestAfterCloseItem=function()
|
|
94797
94808
|
{
|
|
94809
|
+
var lastItem=null;
|
|
94798
94810
|
if (this.DayCount>1)
|
|
94799
94811
|
{
|
|
94800
94812
|
if (!IFrameSplitOperator.IsNonEmptyArray(this.MultiDayAfterCloseData)) return null;
|
|
@@ -450,6 +450,7 @@ HQData.Minute_RequestMinuteUpdateData=function(data, callback)
|
|
|
450
450
|
var srcStock=fullData[0];
|
|
451
451
|
var stockItem={ date:srcStock.date, minute:[], yclose:srcStock.yclose, symbol:symbol, name:symbol };
|
|
452
452
|
|
|
453
|
+
var lastItem=null;
|
|
453
454
|
for(var i=0;i<srcStock.minute.length;++i)
|
|
454
455
|
{
|
|
455
456
|
var item=srcStock.minute[i];
|
|
@@ -458,6 +459,7 @@ HQData.Minute_RequestMinuteUpdateData=function(data, callback)
|
|
|
458
459
|
//0=日期 1=时间 2=开 3=高 4=低 5=收 6=均价 7=量 8=金额 9=涨幅 10=涨跌
|
|
459
460
|
var minItem=[srcStock.date, item.time, item.open, item.high, item.low, item.price, item.avprice , item.vol, item.amount ];
|
|
460
461
|
stockItem.minute.push(minItem);
|
|
462
|
+
lastItem=minItem;
|
|
461
463
|
if (stockItem.minute.length>3) break;
|
|
462
464
|
}
|
|
463
465
|
}
|
|
@@ -483,28 +485,54 @@ HQData.Minute_RequestMinuteUpdateData=function(data, callback)
|
|
|
483
485
|
if (callcation.After)
|
|
484
486
|
{
|
|
485
487
|
var afterInfo={ totalcount:60*10, ver:2.0, TimeConfig:{ AryTime:[{ Start:145700, End:145959, Date:srcStock.date }]} }; //9:15-9:25 集合竞价15分钟 1s一个数据
|
|
488
|
+
var afterData=[];
|
|
486
489
|
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
[
|
|
490
|
-
|
|
491
|
-
[
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
490
|
+
if (IFrameSplitOperator.IsNonEmptyArray(lastItem) && lastItem[1]>=1457)
|
|
491
|
+
{
|
|
492
|
+
var price=lastItem[5];
|
|
493
|
+
afterData=
|
|
494
|
+
[
|
|
495
|
+
[145708,price+0.01, 400, 300, 1, 800],
|
|
496
|
+
[145718,price+0.02, 550, 600, 0, 1500],
|
|
497
|
+
[145738,price+0.02, 150, 800, 0, 1500],
|
|
498
|
+
[145748,price+0.02, 150, 800, 0, 1500],
|
|
499
|
+
[145803,price+0.03, 300, 600, 1, 3600],
|
|
500
|
+
[145815,price+0.03, 350, 210, 2, 1600],
|
|
501
|
+
[145826,price+0.02, 1210, 350, 2, 2700],
|
|
502
|
+
[145833,price+0.01, 260, 550, 2, 1000],
|
|
503
|
+
[145845,price+0.02, 160, 750, 2, 1000],
|
|
504
|
+
[145858,price-0.01, 460, 650, 2, 1500],
|
|
505
|
+
[145905,price-0.02, 160, 450, 1, 1500],
|
|
506
|
+
[145928,price-0.02, 260, 250, 1, 1500],
|
|
507
|
+
[145948,price-0.02, 860, 150, 1, 1500],
|
|
508
|
+
];
|
|
509
|
+
}
|
|
503
510
|
|
|
504
511
|
stockItem.after=afterData;
|
|
505
512
|
stockItem.afterinfo=afterInfo;
|
|
506
513
|
}
|
|
507
514
|
|
|
515
|
+
if (bBuySellBar && lastItem) //盘口分析
|
|
516
|
+
{
|
|
517
|
+
var lastPrice=lastItem[4];
|
|
518
|
+
var aryBuy=[];
|
|
519
|
+
var value=lastPrice+0.01;
|
|
520
|
+
for(var i=0;i<10;++i)
|
|
521
|
+
{
|
|
522
|
+
aryBuy.push({Price:value, Type:1, Vol:HQData.GetRandomTestData(1000,10000) });
|
|
523
|
+
value+=0.02;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
var arySell=[];
|
|
527
|
+
for(var i=0;i<10;++i)
|
|
528
|
+
{
|
|
529
|
+
arySell.push({Price:value, Type:2, Vol:HQData.GetRandomTestData(1000,10000) });
|
|
530
|
+
value+=0.02;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
stockItem.BuySellData={ AryBuy:aryBuy, ArySell:arySell };
|
|
534
|
+
}
|
|
535
|
+
|
|
508
536
|
var hqchartData={code:0, stock:[stockItem], dataType:1 };
|
|
509
537
|
hqchartData.LatestPointFlash={ FlashCount:2 };
|
|
510
538
|
|
|
@@ -96323,6 +96323,11 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
96323
96323
|
if (option.ClearYCoordinateMaxMin===true) this.Frame.ClearYCoordinateMaxMin();
|
|
96324
96324
|
}
|
|
96325
96325
|
|
|
96326
|
+
this.ResetDataStatus();
|
|
96327
|
+
this.ClearIndexPaint();
|
|
96328
|
+
this.ClearIndexRunCount();
|
|
96329
|
+
this.ClearStockCache();
|
|
96330
|
+
|
|
96326
96331
|
if (this.DayCount<=1) this.RequestMinuteData();
|
|
96327
96332
|
else this.RequestHistoryMinuteData();
|
|
96328
96333
|
}
|
|
@@ -96938,6 +96943,12 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
96938
96943
|
this.SetLatestPointFlash(item.FlashCount)
|
|
96939
96944
|
}
|
|
96940
96945
|
|
|
96946
|
+
if (IFrameSplitOperator.IsNonEmptyArray(data.stock) && data.stock[0])
|
|
96947
|
+
{
|
|
96948
|
+
this.DataStatus.LatestDate=data.stock[0].date; //保存下最后一天的日期
|
|
96949
|
+
this.RecvBuySellData(data.stock[0].BuySellData);
|
|
96950
|
+
}
|
|
96951
|
+
|
|
96941
96952
|
if (this.DayCount>1) //多日走势图
|
|
96942
96953
|
{
|
|
96943
96954
|
this.UpdateCallCationData(beforeOpenData,afterCloseData, { DataType:1});
|
|
@@ -98891,6 +98902,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
98891
98902
|
//获取最新的一条盘后数据
|
|
98892
98903
|
this.GetLatestAfterCloseItem=function()
|
|
98893
98904
|
{
|
|
98905
|
+
var lastItem=null;
|
|
98894
98906
|
if (this.DayCount>1)
|
|
98895
98907
|
{
|
|
98896
98908
|
if (!IFrameSplitOperator.IsNonEmptyArray(this.MultiDayAfterCloseData)) return null;
|
|
@@ -151464,7 +151476,7 @@ function ScrollBarBGChart()
|
|
|
151464
151476
|
|
|
151465
151477
|
|
|
151466
151478
|
|
|
151467
|
-
var HQCHART_VERSION="1.1.
|
|
151479
|
+
var HQCHART_VERSION="1.1.14957";
|
|
151468
151480
|
|
|
151469
151481
|
function PrintHQChartVersion()
|
|
151470
151482
|
{
|
|
@@ -55982,6 +55982,7 @@ HQData.Minute_RequestMinuteUpdateData=function(data, callback)
|
|
|
55982
55982
|
var srcStock=fullData[0];
|
|
55983
55983
|
var stockItem={ date:srcStock.date, minute:[], yclose:srcStock.yclose, symbol:symbol, name:symbol };
|
|
55984
55984
|
|
|
55985
|
+
var lastItem=null;
|
|
55985
55986
|
for(var i=0;i<srcStock.minute.length;++i)
|
|
55986
55987
|
{
|
|
55987
55988
|
var item=srcStock.minute[i];
|
|
@@ -55990,6 +55991,7 @@ HQData.Minute_RequestMinuteUpdateData=function(data, callback)
|
|
|
55990
55991
|
//0=日期 1=时间 2=开 3=高 4=低 5=收 6=均价 7=量 8=金额 9=涨幅 10=涨跌
|
|
55991
55992
|
var minItem=[srcStock.date, item.time, item.open, item.high, item.low, item.price, item.avprice , item.vol, item.amount ];
|
|
55992
55993
|
stockItem.minute.push(minItem);
|
|
55994
|
+
lastItem=minItem;
|
|
55993
55995
|
if (stockItem.minute.length>3) break;
|
|
55994
55996
|
}
|
|
55995
55997
|
}
|
|
@@ -56015,28 +56017,54 @@ HQData.Minute_RequestMinuteUpdateData=function(data, callback)
|
|
|
56015
56017
|
if (callcation.After)
|
|
56016
56018
|
{
|
|
56017
56019
|
var afterInfo={ totalcount:60*10, ver:2.0, TimeConfig:{ AryTime:[{ Start:145700, End:145959, Date:srcStock.date }]} }; //9:15-9:25 集合竞价15分钟 1s一个数据
|
|
56020
|
+
var afterData=[];
|
|
56018
56021
|
|
|
56019
|
-
|
|
56020
|
-
|
|
56021
|
-
[
|
|
56022
|
-
|
|
56023
|
-
[
|
|
56024
|
-
|
|
56025
|
-
|
|
56026
|
-
|
|
56027
|
-
|
|
56028
|
-
|
|
56029
|
-
|
|
56030
|
-
|
|
56031
|
-
|
|
56032
|
-
|
|
56033
|
-
|
|
56034
|
-
|
|
56022
|
+
if (IFrameSplitOperator.IsNonEmptyArray(lastItem) && lastItem[1]>=1457)
|
|
56023
|
+
{
|
|
56024
|
+
var price=lastItem[5];
|
|
56025
|
+
afterData=
|
|
56026
|
+
[
|
|
56027
|
+
[145708,price+0.01, 400, 300, 1, 800],
|
|
56028
|
+
[145718,price+0.02, 550, 600, 0, 1500],
|
|
56029
|
+
[145738,price+0.02, 150, 800, 0, 1500],
|
|
56030
|
+
[145748,price+0.02, 150, 800, 0, 1500],
|
|
56031
|
+
[145803,price+0.03, 300, 600, 1, 3600],
|
|
56032
|
+
[145815,price+0.03, 350, 210, 2, 1600],
|
|
56033
|
+
[145826,price+0.02, 1210, 350, 2, 2700],
|
|
56034
|
+
[145833,price+0.01, 260, 550, 2, 1000],
|
|
56035
|
+
[145845,price+0.02, 160, 750, 2, 1000],
|
|
56036
|
+
[145858,price-0.01, 460, 650, 2, 1500],
|
|
56037
|
+
[145905,price-0.02, 160, 450, 1, 1500],
|
|
56038
|
+
[145928,price-0.02, 260, 250, 1, 1500],
|
|
56039
|
+
[145948,price-0.02, 860, 150, 1, 1500],
|
|
56040
|
+
];
|
|
56041
|
+
}
|
|
56035
56042
|
|
|
56036
56043
|
stockItem.after=afterData;
|
|
56037
56044
|
stockItem.afterinfo=afterInfo;
|
|
56038
56045
|
}
|
|
56039
56046
|
|
|
56047
|
+
if (bBuySellBar && lastItem) //盘口分析
|
|
56048
|
+
{
|
|
56049
|
+
var lastPrice=lastItem[4];
|
|
56050
|
+
var aryBuy=[];
|
|
56051
|
+
var value=lastPrice+0.01;
|
|
56052
|
+
for(var i=0;i<10;++i)
|
|
56053
|
+
{
|
|
56054
|
+
aryBuy.push({Price:value, Type:1, Vol:HQData.GetRandomTestData(1000,10000) });
|
|
56055
|
+
value+=0.02;
|
|
56056
|
+
}
|
|
56057
|
+
|
|
56058
|
+
var arySell=[];
|
|
56059
|
+
for(var i=0;i<10;++i)
|
|
56060
|
+
{
|
|
56061
|
+
arySell.push({Price:value, Type:2, Vol:HQData.GetRandomTestData(1000,10000) });
|
|
56062
|
+
value+=0.02;
|
|
56063
|
+
}
|
|
56064
|
+
|
|
56065
|
+
stockItem.BuySellData={ AryBuy:aryBuy, ArySell:arySell };
|
|
56066
|
+
}
|
|
56067
|
+
|
|
56040
56068
|
var hqchartData={code:0, stock:[stockItem], dataType:1 };
|
|
56041
56069
|
hqchartData.LatestPointFlash={ FlashCount:2 };
|
|
56042
56070
|
|
|
@@ -96367,6 +96367,11 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
96367
96367
|
if (option.ClearYCoordinateMaxMin===true) this.Frame.ClearYCoordinateMaxMin();
|
|
96368
96368
|
}
|
|
96369
96369
|
|
|
96370
|
+
this.ResetDataStatus();
|
|
96371
|
+
this.ClearIndexPaint();
|
|
96372
|
+
this.ClearIndexRunCount();
|
|
96373
|
+
this.ClearStockCache();
|
|
96374
|
+
|
|
96370
96375
|
if (this.DayCount<=1) this.RequestMinuteData();
|
|
96371
96376
|
else this.RequestHistoryMinuteData();
|
|
96372
96377
|
}
|
|
@@ -96982,6 +96987,12 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
96982
96987
|
this.SetLatestPointFlash(item.FlashCount)
|
|
96983
96988
|
}
|
|
96984
96989
|
|
|
96990
|
+
if (IFrameSplitOperator.IsNonEmptyArray(data.stock) && data.stock[0])
|
|
96991
|
+
{
|
|
96992
|
+
this.DataStatus.LatestDate=data.stock[0].date; //保存下最后一天的日期
|
|
96993
|
+
this.RecvBuySellData(data.stock[0].BuySellData);
|
|
96994
|
+
}
|
|
96995
|
+
|
|
96985
96996
|
if (this.DayCount>1) //多日走势图
|
|
96986
96997
|
{
|
|
96987
96998
|
this.UpdateCallCationData(beforeOpenData,afterCloseData, { DataType:1});
|
|
@@ -98935,6 +98946,7 @@ function MinuteChartContainer(uielement,offscreenElement,cacheElement)
|
|
|
98935
98946
|
//获取最新的一条盘后数据
|
|
98936
98947
|
this.GetLatestAfterCloseItem=function()
|
|
98937
98948
|
{
|
|
98949
|
+
var lastItem=null;
|
|
98938
98950
|
if (this.DayCount>1)
|
|
98939
98951
|
{
|
|
98940
98952
|
if (!IFrameSplitOperator.IsNonEmptyArray(this.MultiDayAfterCloseData)) return null;
|
|
@@ -162839,7 +162851,7 @@ function HQChartScriptWorker()
|
|
|
162839
162851
|
|
|
162840
162852
|
|
|
162841
162853
|
|
|
162842
|
-
var HQCHART_VERSION="1.1.
|
|
162854
|
+
var HQCHART_VERSION="1.1.14957";
|
|
162843
162855
|
|
|
162844
162856
|
function PrintHQChartVersion()
|
|
162845
162857
|
{
|