|
|
@@ -180,6 +180,7 @@ const customHistoryDataStringFormat = () => {
|
|
|
Low: 0,
|
|
|
Close: 0,
|
|
|
YClose: 0,
|
|
|
+ YFClose: 0,
|
|
|
Vol: 0,
|
|
|
Amount: 0,
|
|
|
}
|
|
|
@@ -189,12 +190,14 @@ const customHistoryDataStringFormat = () => {
|
|
|
Operator: function () {
|
|
|
const { FormatDateString, FormatTimeString } = Chart.IFrameSplitOperator
|
|
|
const { Data } = this.Value
|
|
|
+ const preValue = Data.YFClose ?? Data.YClose
|
|
|
+
|
|
|
this.Text = `<dl class="app-hqchart-tooltip">`
|
|
|
this.Text += `<dt><span>${FormatDateString(Data.Date)}</span>${Data.Time ? '<span>' + FormatTimeString(Data.Time) + '</span>' : ''}</dt>`
|
|
|
- this.Text += `<dd><span>开盘:</span><span class="${handlePriceColor(Data.Open, Data.YClose)}">${handleNumberValue(Data.Open.toFixed(decimalplace))}</span></dd>`
|
|
|
- this.Text += `<dd><span>最高:</span><span class="${handlePriceColor(Data.High, Data.YClose)}">${handleNumberValue(Data.High.toFixed(decimalplace))}</span></dd>`
|
|
|
- this.Text += `<dd><span>最低:</span><span class="${handlePriceColor(Data.Low, Data.YClose)}">${handleNumberValue(Data.Low.toFixed(decimalplace))}</span></dd>`
|
|
|
- this.Text += `<dd><span>收盘:</span><span class="${handlePriceColor(Data.Close, Data.YClose)}">${handleNumberValue(Data.Close.toFixed(decimalplace))}</span></dd>`
|
|
|
+ this.Text += `<dd><span>开盘:</span><span class="${handlePriceColor(Data.Open, preValue)}">${handleNumberValue(Data.Open.toFixed(decimalplace))}</span></dd>`
|
|
|
+ this.Text += `<dd><span>最高:</span><span class="${handlePriceColor(Data.High, preValue)}">${handleNumberValue(Data.High.toFixed(decimalplace))}</span></dd>`
|
|
|
+ this.Text += `<dd><span>最低:</span><span class="${handlePriceColor(Data.Low, preValue)}">${handleNumberValue(Data.Low.toFixed(decimalplace))}</span></dd>`
|
|
|
+ this.Text += `<dd><span>收盘:</span><span class="${handlePriceColor(Data.Close, preValue)}">${handleNumberValue(Data.Close.toFixed(decimalplace))}</span></dd>`
|
|
|
if (goods.value?.trademode !== 99) {
|
|
|
this.Text += `<dd><span>数量:</span><span>${changeUnit(Data.Vol)}</span></dd>`
|
|
|
this.Text += `<dd><span>金额:</span><span>${changeUnit(Data.Amount)}</span></dd>`
|