同花顺app均线颜色-同花顺app均线颜色设置

2023-04-20 07:45:27 技术指标 0次阅读 投稿:admin
同花顺app均线颜色.jpg

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

同花顺app均线颜色怎么设置


同花顺app均线颜色怎么设置

1、改变同花顺分时图上的量柱颜色的方法:鼠标点在那个区域,待出现白色方块,右键-修改分时成交量-曲线属性-然后设置rgb数值。若要恢复原来的样子,点恢复默认就行。
2、分时图是指大盘和个股的动态实时(即时)分时走势图,其在实战研判中的地位极其重要,是即时把握多空力量转化即市场变化直接的根本所在。
一般设置里会有可以修改的选项

同花顺app均线颜色


同花顺app均线颜色


'''
if type(ma_list) != list:
return None
color_list = []
for ma in ma_list:
if ma > 0:
color_list.append('#FF0000')
elif ma < 0:
color_list.append('#00FF00')
else:
color_list.append('#000000')
return color_list

def get_ma_list(close_list, ma_list):
'''
计算均线列表
'''
if type(close_list) != list or type(ma_list) != list:
return None
ma_data = []
for ma in ma_list:
ma_data.append(talib.MA(np.array(close_list), timeperiod=ma)[-1])
return ma_data

def get_macd_list(close_list):
'''
计算macd
'''
if type(close_list) != list:
return None
macd, signal, hist = talib.MACD(np.array(close_list), fastperiod=12, slowperiod=26, signalperiod=9)
return macd[-1], signal[-1], hist[-1]

def get_kdj_list(high_list, low_list, close_list):
'''
计算kdj
'''
if type(high_list) != list or type(low_list) != list or type(close_list) != list:
return None
k, d = talib.STOCH(np.array(high_list), np.array(low_list), np.array(close_list), fastk_period=9, slowk_period=3, slowd_period=3)
return k[-1], d[-1]

def get_rsi_list(close_list):
'''
计算rsi
'''
if type(close_list) != list:
return None
rsi6 = talib.RSI(np.array(close_list), timeperiod=6)[-1]
rsi12 = talib.RSI(np.array(close_list), timeperiod=12)[-1]
rsi24 = talib.RSI(np.array(close_list), timeperiod=24)[-1]
return rsi6, rsi12, rsi24

def get_boll_list(close_list):
'''
计算布林线
'''
if type(close_list) != list:
return None
upper, middle, lower = talib.BBANDS(np.array(close_list), timeperiod=20, nbdevup=2, nbdevdn=2, matype=0)
return upper[-1], middle[-1], lower[-1]

def get_wr_list(high_list, low_list, close_list):
'''
计算wr
'''
if type(high_list) != list or type(low_list) != list or type(close_list) != list:
return None
wr = talib.WILLR(np.array(high_list), np.array(low_list), np.array(close_list), timeperiod=14)[-1]
return wr

def get_cci_list(high_list, low_list, close_list):
'''
计算cci
'''
if type(high_list) != list or type(low_list) != list or type(close_list) != list:
return None
cci = talib.CCI(np.array(high_list), np.array(low_list), np.array(close_list), timeperiod=14)[-1]
return cci

def get_dmi_list(high_list, low_list, close_list):
'''
计算dmi
'''
if type(high_list) != list or type(low_list) != list or type(close_list) != list:
return None
plus_di, minus_di = talib.PLUS_DI(np.array(high_list), np.array(low_list), np.array(close_list), timeperiod=14)
adx = talib.ADX(np.array(high_list), np.array(low_list), np.array(close_list), timeperiod=14)[-1]
return plus_di[-1], minus_di[-1], adx

def get_obv_list(close_list, volume_list):
'''
计算obv
'''
if type(close_list) != list or type(volume_list) != list:
return None
obv = talib.OBV(np.array(close_list), np.array(volume_list))[-1]
return obv

def get_sar_list(high_list, low_list):
'''
计算sar
'''
if type(high_list) != list or type(low_list) != list:
return None
sar = talib.SAR(np.array(high_list), np.array(low_list), acceleration=0.02, maximum=0.2)[-1]
return sar

def get_trix_list(close_list):
'''
计算trix
'''
if type(close_list) != list:
return None
trix = talib.TRIX(np.array(close_list), timeperiod=12)[-1]
return trix

def get_bias_list(close_list):
'''
计算乖离率
'''
if type(close_list) != list:
return None
ma6 = talib.MA(np.array(close_list), timeperiod=6)[-1]
ma12 = talib.MA(np.array(close_list), timeperiod=12)[-1]
ma24 = talib.MA(np.array(close_list), timeperiod=24)[-1]
bias6 = (close_list[-1] - ma6) / ma6 * 100
bias12 = (close_list[-1] - ma12) / ma12 * 100
bias24 = (close_list[-1] - ma24) / ma24 * 100
return bias6, bias12, bias24

def get_psy_list(close_list):
'''
计算psy
'''
if type(close_list) != list:
return None
psy = talib.PSY(np.array(close_list), timeperiod=12)[-1]
return psy

def get_roc_list(close_list):
'''
计算roc
'''
if type(close_list) != list:
return None
roc = talib.ROC(np.array(close_list), timeperiod=12)[-1]
return roc

def get_mtm_list(close_list):
'''
计算mtm
'''
if type(close_list) != list:
return None
mtm6 = talib.MOM(np.array(close_list), timeperiod=6)[-1]
mtm12 = talib.MOM(np.array(close_list), timeperiod=12)[-1]
mtm24 = talib.MOM(np.array(close_list), timeperiod=24)[-1]
return mtm6, mtm12, mtm24

def get_cr_list(high_list, low_list, close_list):
'''
计算cr
'''
if type(high_list) != list or type(low_list) != list or type(close_list) != list:
return None
cr = talib.NATR(np.array(high_list), np.array(low_list), np.array(close

同花顺app均线颜色设置


同花顺app均线颜色设置

1、在电脑上打开来自同花顺这个软件纤岁,需要右击K线选择修改。

2、会进入公式编辑-五彩K线的相关界面,在第一行回车以后粘贴图示的代码。

3、这个时候如果没问题的话,就可以点击标营志设置这个按钮了。

4、下一步罩竖游会弹出一个对话框,物销可以按照图示的方法来操作并点击确定按钮。

5、这样一来为了修改涨停股票k线颜色,如果没问题的话点击确定按钮实蒸西得况孩露信层委即可。



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