copyright, license, fixes
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
const symbol = urlParams.get('symbol');
|
||||
const time = urlParams.get('time');
|
||||
const symbol2 = urlParams.get('symbol2');
|
||||
|
||||
const heightrsimacdchart = 100
|
||||
|
||||
@@ -163,7 +164,6 @@ const chartmacd = LightweightCharts.createChart(document.getElementById("contain
|
||||
},
|
||||
|
||||
height: heightrsimacdchart,
|
||||
|
||||
timeScale: {
|
||||
timeVisible: true,
|
||||
secondsVisible: false,
|
||||
@@ -306,10 +306,10 @@ fetch("/botdata/asset-histories/" + symbol + ".history." + time + ".csv", { cach
|
||||
|
||||
|
||||
// Lines for price levels
|
||||
fetch("/botdata/asset-histories/" + symbol + ".history.csv.levels", { cache: 'no-store' })
|
||||
fetch("/botdata/asset-histories/" + symbol + ".history." + time + ".csv.levels", { cache: 'no-store' })
|
||||
.then(response => response.text())
|
||||
.then(text => {
|
||||
const levels = text.split('\n');
|
||||
const levels = text.split(' ');
|
||||
levels.forEach(function(level) {
|
||||
candleSeries.createPriceLine({price: level, color: "blue", lineWidth: 0.5, lineStyle: 3, axisLabelVisible: true, title: 'Level'});
|
||||
});
|
||||
@@ -362,7 +362,7 @@ DXYchart.applyOptions({
|
||||
horzAlign: 'top',
|
||||
vertAlign: 'left',
|
||||
color: '#DDD',
|
||||
text: "DXY" + time,
|
||||
text: symbol2 + " " + time,
|
||||
}
|
||||
});
|
||||
|
||||
@@ -415,7 +415,7 @@ const DXYlineSeriesRSI5 = DXYchartrsi.addLineSeries({ color: 'orange', lineWidth
|
||||
const DXYlineSeriesRSI14 = DXYchartrsi.addLineSeries({ color: 'yellow', lineWidth: 2, priceLineVisible: false, title: 'RSI14'});
|
||||
const DXYlineSeriesRSI21 = DXYchartrsi.addLineSeries({ color: 'lightgreen', lineWidth: 1, lineStyle: 2, priceLineVisible: false, title: 'RSI21'});
|
||||
|
||||
fetch("/botdata/asset-histories/ECONOMY-DXY.history." + time + ".csv", { cache: 'no-store' })
|
||||
fetch("/botdata/asset-histories/" + symbol2 + ".history." + time + ".csv", { cache: 'no-store' })
|
||||
.then(response => response.text())
|
||||
.then(data => {
|
||||
const DYXparsedData = parseCSV(data);
|
||||
@@ -540,6 +540,3 @@ DXYchart.subscribeCrosshairMove(param => {
|
||||
const dataPointmacd = getCrosshairDataPoint(DXYlineSeriesEMA50, param);
|
||||
syncCrosshair(chartmacd, lineSeriesMACD, dataPointrsi);
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user