同花顺软件均线颜色-同花顺软件均线颜色设置

2023-04-21 22:25:46 技术指标 0次阅读 投稿:admin
同花顺软件均线颜色.jpg

关于同花顺软件均线颜色的问题,我们总结了以下几点,给你解答:

同花顺软件均线颜色怎么设置


同花顺软件均线颜色怎么设置

MA5:MA(C,5),COLOR00FF00,LINETHICK2;
PARTLINE(MA5,MA5>REF(MA5,1),colorred),LINETHICK2;
PARTLINE(MA5,MA5<REF(MA5,1),COLOR008800),LINETHICK2;
PARTLINE(MA5,C>MA5,colorred),LINETHICK2;
PARTLINE(MA5,C<MA5,COLOR00CD00),LINETHICK2;
MA10:MA(C,10),COLOR00FF00,LINETHICK2;
PARTLINE(MA10,MA10>REF(MA10,1),colorred),LINETHICK4;
PARTLINE(MA10,MA10<REF(MA10,1),COLOR008800),LINETHICK4;
PARTLINE(MA10,C>MA10,colorred),LINETHICK4;
PARTLINE(MA10,C<MA10,COLOR00CD00),LINETHICK4;
MA26:MA(C,26),coloryellow;

已经测试通过。

同花顺软件均线颜色


同花顺软件均线颜色


'''
# 均线颜色
color_dict = {
'MA5': '#FF0000',
'MA10': '#00FF00',
'MA20': '#0000FF',
'MA30': '#FFFF00',
'MA60': '#FF00FF',
}
return color_dict[ma]


def get_ma_color_by_index(index):
'''
获取同花顺软件均线颜色
'''
# 均线颜色
color_list = [
'#FF0000',
'#00FF00',
'#0000FF',
'#FFFF00',
'#FF00FF',
]
return color_list[index]


def get_ma_name_by_index(index):
'''
获取同花顺软件均线名称
'''
# 均线名称
name_list = [
'MA5',
'MA10',
'MA20',
'MA30',
'MA60',
]
return name_list[index]


def get_ma_list():
'''
获取同花顺软件均线列表
'''
# 均线名称
name_list = [
'MA5',
'MA10',
'MA20',
'MA30',
'MA60',
]
return name_list


def get_ma_color_list():
'''
获取同花顺软件均线颜色列表
'''
# 均线颜色
color_list = [
'#FF0000',
'#00FF00',
'#0000FF',
'#FFFF00',
'#FF00FF',
]
return color_list


def get_ma_dict():
'''
获取同花顺软件均线字典
'''
# 均线字典
ma_dict = {
'MA5': '#FF0000',
'MA10': '#00FF00',
'MA20': '#0000FF',
'MA30': '#FFFF00',
'MA60': '#FF00FF',
}
return ma_dict


def get_ma_list_by_num(num):
'''
获取同花顺软件均线列表
'''
# 均线名称
name_list = [
'MA5',
'MA10',
'MA20',
'MA30',
'MA60',
]
return name_list[:num]


def get_ma_color_list_by_num(num):
'''
获取同花顺软件均线颜色列表
'''
# 均线颜色
color_list = [
'#FF0000',
'#00FF00',
'#0000FF',
'#FFFF00',
'#FF00FF',
]
return color_list[:num]


def get_ma_dict_by_num(num):
'''
获取同花顺软件均线字典
'''
# 均线字典
ma_dict = {
'MA5': '#FF0000',
'MA10': '#00FF00',
'MA20': '#0000FF',
'MA30': '#FFFF00',
'MA60': '#FF00FF',
}
return {k: v for k, v in ma_dict.items() if k in get_ma_list_by_num(num)}


def get_ma_list_by_num_with_index(num):
'''
获取同花顺软件均线列表
'''
# 均线名称
name_list = [
'MA5',
'MA10',
'MA20',
'MA30',
'MA60',
]
return [(name_list[i], i) for i in range(num)]


def get_ma_color_list_by_num_with_index(num):
'''
获取同花顺软件均线颜色列表
'''
# 均线颜色
color_list = [
'#FF0000',
'#00FF00',
'#0000FF',
'#FFFF00',
'#FF00FF',
]
return [(color_list[i], i) for i in range(num)]


def get_ma_dict_by_num_with_index(num):
'''
获取同花顺软件均线字典
'''
# 均线字典
ma_dict = {
'MA5': '#FF0000',
'MA10': '#00FF00',
'MA20': '#0000FF',
'MA30': '#FFFF00',
'MA60': '#FF00FF',
}
return {k: (v, i) for i, (k, v) in enumerate(ma_dict.items()) if k in get_ma_list_by_num(num)}


def get_ma_list_by_num_with_index_and_color(num):
'''
获取同花顺软件均线列表
'''
# 均线名称
name_list = [
'MA5',
'MA10',
'MA20',
'MA30',
'MA60',
]
# 均线颜色
color_list = [
'#FF0000',
'#00FF00',
'#0000FF',
'#FFFF00',
'#FF00FF',
]
return [(name_list[i], color_list[i], i) for i in range(num)]


def get_ma_dict_by_num_with_index_and_color(num):
'''
获取同花顺软件均线字典
'''
# 均线字典
ma_dict = {
'MA5': '#FF0000',
'MA10': '#00FF00',
'MA20': '#0000FF',
'MA30': '#FFFF00',
'MA60': '#FF00FF',
}
return {k: (v, i) for i, (k, v) in enumerate(ma_dict.items()) if k in get_ma_list_by_num(num)}


def get_ma_list_by_num_with_color(num):
'''
获取同花顺软件均线列表
'''
# 均线名称
name_list = [
'MA5',
'MA10',
'MA20',
'MA30

同花顺软件均线颜色设置


同花顺软件均线颜色设置

点击“工具”-“系统设置”-“外观”,你想修改哪条线,就在右侧栏里找指标输出1,指标输出2,等,想修改成什么颜色,就点下面的颜色块就行了。



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