股票均线变色-均线变色指标公式

2023-07-15 17:06:53 入门知识 0次阅读 投稿:admin
股票均线变色.jpg

关于股票均线变色的问题,我们总结了以下几点,给你解答:

股票均线变色


股票均线变色


def stock_ma_change_color(self, stock_code, stock_name, stock_data):
# 均线变色
ma_5 = stock_data['ma_5']
ma_10 = stock_data['ma_10']
ma_20 = stock_data['ma_20']
ma_30 = stock_data['ma_30']
ma_60 = stock_data['ma_60']
ma_120 = stock_data['ma_120']
ma_250 = stock_data['ma_250']
# 均线变色
if ma_5 > ma_10 > ma_20 > ma_30 > ma_60 > ma_120 > ma_250:
self.ma_change_color_list.append([stock_code, stock_name])
# print(stock_code, stock_name, '均线变色')

# 判断股票是否突破
def stock_break_through(self, stock_code, stock_name, stock_data):
# 均线突破
ma_5 = stock_data['ma_5']
ma_10 = stock_data['ma_10']
ma_20 = stock_data['ma_20']
ma_30 = stock_data['ma_30']
ma_60 = stock_data['ma_60']
ma_120 = stock_data['ma_120']
ma_250 = stock_data['ma_250']
# 均线突破
if ma_5 > ma_10 > ma_20 > ma_30 > ma_60 > ma_120 > ma_250:
self.ma_break_through_list.append([stock_code, stock_name])
# print(stock_code, stock_name, '均线突破')

# 判断股票是否金叉
def stock_golden_cross(self, stock_code, stock_name, stock_data):
# 金叉
ma_5 = stock_data['ma_5']
ma_10 = stock_data['ma_10']
# 金叉
if ma_5 > ma_10:
self.golden_cross_list.append([stock_code, stock_name])
# print(stock_code, stock_name, '金叉')

# 判断股票是否死叉
def stock_dead_cross(self, stock_code, stock_name, stock_data):
# 死叉
ma_5 = stock_data['ma_5']
ma_10 = stock_data['ma_10']
# 死叉
if ma_5 < ma_10:
self.dead_cross_list.append([stock_code, stock_name])
# print(stock_code, stock_name, '死叉')

# 判断股票是否放量
def stock_volume_increase(self, stock_code, stock_name, stock_data):
# 放量
volume = stock_data['volume']
volume_ma_5 = stock_data['volume_ma_5']
# 放量
if volume > volume_ma_5:
self.volume_increase_list.append([stock_code, stock_name])
# print(stock_code, stock_name, '放量')

# 判断股票是否缩量
def stock_volume_decrease(self, stock_code, stock_name, stock_data):
# 缩量
volume = stock_data['volume']
volume_ma_5 = stock_data['volume_ma_5']
# 缩量
if volume < volume_ma_5:
self.volume_decrease_list.append([stock_code, stock_name])
# print(stock_code, stock_name, '缩量')

# 判断股票是否放量突破
def stock_volume_break_through(self, stock_code, stock_name, stock_data):
# 放量突破
volume = stock_data['volume']
volume_ma_5 = stock_data['volume_ma_5']
volume_ma_10 = stock_data['volume_ma_10']
# 放量突破
if volume > volume_ma_5 > volume_ma_10:
self.volume_break_through_list.append([stock_code, stock_name])
# print(stock_code, stock_name, '放量突破')

# 判断股票是否缩量突破
def stock_volume_break_down(self, stock_code, stock_name, stock_data):
# 缩量突破
volume = stock_data['volume']
volume_ma_5 = stock_data['volume_ma_5']
volume_ma_10 = stock_data['volume_ma_10']
# 缩量突破
if volume < volume_ma_5 < volume_ma_10:
self.volume_break_down_list.append([stock_code, stock_name])
# print(stock_code, stock_name, '缩量突破')

# 判断股票是否放量变色
def stock_volume_change_color(self, stock_code, stock_name, stock_data):
# 放量变色
volume = stock_data['volume']
volume_ma_5 = stock_data['volume_ma_5']
volume_ma_10 = stock_data['volume_ma_10']
# 放量变色
if volume > volume_ma_5 > volume_ma_10:
self.volume_change_color_list.append([stock_code, stock_name])
# print(stock_code, stock_name, '放量变色')

# 判断股票是否缩量变色
def stock_volume_change_color_down(self, stock_code, stock_name, stock_data):
# 缩量变色
volume = stock_data['volume']
volume_ma_5 = stock_data['volume_ma_5']
volume_ma_10 = stock_data['volume_ma_10']
# 缩量变色
if volume < volume_ma_5 < volume_ma_10:
self.volume_change_color_down_list.append([stock_code, stock_name])
# print(stock_code, stock_name, '缩量变色')

# 判断股票是否放量金叉
def stock_volume_golden_cross(self, stock_code, stock_name, stock_data):
# 放量金叉
volume = stock_data['volume']
volume_ma_5 = stock_data['volume_ma_5']
# 放量金叉
if volume > volume_ma_5:
self.volume_golden_cross_list.append([stock_code, stock_name])
# print(stock_code, stock_name, '放量金叉')

# 判断股票是否缩量死叉
def stock_volume_dead_cross(self, stock_code, stock_name, stock_data):
# 缩量死叉
volume = stock_data['volume']

均线变色指标公式


均线变色指标公式

以21日均线-“万能线”为例
VAR2:MA(C,21),COLORRED,LINETHICK4;
上翘:IF(VAR2>REF(VAR2,1),VAR2,DRAWNULL),COLORRED,LINETHICK4;
下拐:IF(VAR2<REF(VAR2,1),VAR2,DRAWNULL),COLOR227700,LINETHICK4;

均线变色指标


均线变色指标

M60:=MA(C,60);
IF(M60>=REF(M60,1),M60,DRAWNULL),COLORRED,LINETHICK2;
IF(M60<=REF(M60,1),M60群肉巴差以式径聚志握,DRAWNULL),COLORGREEN,LINETHICK2;
主图叠加60日均线。上升为红色,下降为绿色。


声明:稳得一批是理财投资基础知识平台! 并不指导专业性投资! 投资有风险,入市需谨慎!