金多多点评周线收出十字星

大盘上星期以探底上升的办法收盘,周线收出十字星,关于履历了上星期剧烈不坚定后的商场,本周会怎样?

盘面上看上星期商场的抢手不少,但是新兴产业板块比方芯片、锂电池和医药生物等则是一条明显的主线,除此之外,商场的抢手则是进行着不间断地轮换,成交量有三个交易日突破了万亿大关,这无疑是一个好事情,北上资金接连着一周净流入的格局。

本周商场沪指第一支撑位在3550,第二支撑位在3500点,上行第一压力位3650点,第二压力位3680点,创业板下方第一支撑位在3200点,第二支撑位在3150点;第一压力位3300,第二压力位3350点。

趋势上上星期五的再度做多给了商场一颗定心丸,日线创业板再度收出一根中阳线,然后带动沪指也收涨,分时图处于一个高位回调,进三退一后的企稳情况,尤其是创业板的表现更是稳健,趋势上看,支撑本周指数继续冲高,甚至是创新高。

从上星期商场的走势看,指数的探底上升也好,盘中的急跌或许拉升也好,其实都是商场在反弹到必定高度,遇到强阻力所表现出来的正常现象,在指数回抽10日线,却没有跌破20日线就出现反弹的商场,无疑是一个多头占有主导地位的商场,而在上星期五的时分,老黎也做过分析,那就是商场做多的亮点仍然在科技股,这一点上星期五午后芯片股的发起足以说明,这个分析的正确性,总归一句话,短期的商场在买盘的推动下,一旦蓝筹股加入到做到的阵营中来,指数将会有再创新高的或许。

以下是一个利用 JavaScript 对日K线数据进行重采样以计算周线、月线、季线、半年线和年线的示例代码: ```javascript // 将日K线数据按时间升序排列 data.sort((a, b) => a.timestamp - b.timestamp); // 计算周线 const weekData = []; let weekStart = data[0]; let weekEnd = data[0]; let weekHigh = data[0].high; let weekLow = data[0].low; let weekVolume = 0; for (let i = 1; i < data.length; i++) { const current = data[i]; if (new Date(current.timestamp).getDay() === 1) { // 如果当前日期是周一 weekEnd = current; weekHigh = Math.max(weekHigh, current.high); weekLow = Math.min(weekLow, current.low); weekVolume += current.volume; weekData.push({ timestamp: weekEnd.timestamp, open: weekStart.open, close: weekEnd.close, high: weekHigh, low: weekLow, volume: weekVolume }); weekStart = current; weekEnd = current; weekHigh = current.high; weekLow = current.low; weekVolume = current.volume; } else { weekEnd = current; weekHigh = Math.max(weekHigh, current.high); weekLow = Math.min(weekLow, current.low); weekVolume += current.volume; } } // 计算月线 const monthData = []; let monthStart = data[0]; let monthEnd = data[0]; let monthHigh = data[0].high; let monthLow = data[0].low; let monthVolume = 0; for (let i = 1; i < data.length; i++) { const current = data[i]; if (new Date(current.timestamp).getMonth() !== new Date(monthEnd.timestamp).getMonth()) { // 如果当前日期所在月份与上个周期不同 monthEnd = current; monthHigh = Math.max(monthHigh, current.high); monthLow = Math.min(monthLow, current.low); monthVolume += current.volume; monthData.push({ timestamp: monthEnd.timestamp, open: monthStart.open, close: monthEnd.close, high: monthHigh, low: monthLow, volume: monthVolume }); monthStart = current; monthEnd = current; monthHigh = current.high; monthLow = current.low; monthVolume = current.volume; } else { monthEnd = current; monthHigh = Math.max(monthHigh, current.high); monthLow = Math.min(monthLow, current.low); monthVolume += current.volume; } } // 计算季线 const quarterData = []; let quarterStart = data[0]; let quarterEnd = data[0]; let quarterHigh = data[0].high; let quarterLow = data[0].low; let quarterVolume = 0; for (let i = 1; i < data.length; i++) { const current = data[i]; if (new Date(current.timestamp).getMonth() % 3 !== new Date(quarterEnd.timestamp).getMonth() % 3) { // 如果当前日期所在季度与上个周期不同 quarterEnd = current; quarterHigh = Math.max(quarterHigh, current.high); quarterLow = Math.min(quarterLow, current.low); quarterVolume += current.volume; quarterData.push({ timestamp: quarterEnd.timestamp, open: quarterStart.open, close: quarterEnd.close, high: quarterHigh, low: quarterLow, volume: quarterVolume }); quarterStart = current; quarterEnd = current; quarterHigh = current.high; quarterLow = current.low; quarterVolume = current.volume; } else { quarterEnd = current; quarterHigh = Math.max(quarterHigh, current.high); quarterLow = Math.min(quarterLow, current.low); quarterVolume += current.volume; } } // 计算半年线 const halfYearData = []; let halfYearStart = data[0]; let halfYearEnd = data[0]; let halfYearHigh = data[0].high; let halfYearLow = data[0].low; let halfYearVolume = 0; for (let i = 1; i < data.length; i++) { const current = data[i]; if (new Date(current.timestamp).getMonth() % 6 !== new Date(halfYearEnd.timestamp).getMonth() % 6) { // 如果当前日期所在半年与上个周期不同 halfYearEnd = current; halfYearHigh = Math.max(halfYearHigh, current.high); halfYearLow = Math.min(halfYearLow, current.low); halfYearVolume += current.volume; halfYearData.push({ timestamp: halfYearEnd.timestamp, open: halfYearStart.open, close: halfYearEnd.close, high: halfYearHigh, low: halfYearLow, volume: halfYearVolume }); halfYearStart = current; halfYearEnd = current; halfYearHigh = current.high; halfYearLow = current.low; halfYearVolume = current.volume; } else { halfYearEnd = current; halfYearHigh = Math.max(halfYearHigh, current.high); halfYearLow = Math.min(halfYearLow, current.low); halfYearVolume += current.volume; } } // 计算年线 const yearData = []; let yearStart = data[0]; let yearEnd = data[0]; let yearHigh = data[0].high; let yearLow = data[0].low; let yearVolume = 0; for (let i = 1; i < data.length; i++) { const current = data[i]; if (new Date(current.timestamp).getFullYear() !== new Date(yearEnd.timestamp).getFullYear()) { // 如果当前日期所在年份与上个周期不同 yearEnd = current; yearHigh = Math.max(yearHigh, current.high); yearLow = Math.min(yearLow, current.low); yearVolume += current.volume; yearData.push({ timestamp: yearEnd.timestamp, open: yearStart.open, close: yearEnd.close, high: yearHigh, low: yearLow, volume: yearVolume }); yearStart = current; yearEnd = current; yearHigh = current.high; yearLow = current.low; yearVolume = current.volume; } else { yearEnd = current; yearHigh = Math.max(yearHigh, current.high); yearLow = Math.min(yearLow, current.low); yearVolume += current.volume; } } ``` 以上代码中,假设 `data` 是按时间升序排列的日K线数据数组,每个元素包含以下属性:`timestamp`(时间戳)、`open`(开盘价)、`close`(收盘价)、`high`(最高价)、`low`(最低价)和 `volume`(成交量)。代码中的五个循环分别计算了周线、月线、季线、半年线和年线的K线数据,结果分别存储在 `weekData`、`monthData`、`quarterData`、`halfYearData` 和 `yearData` 数组中。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值