终极买入指标公式源码(买入信号连续出现三次选股指标源码?)
1. 买入信号连续出现三次选股指标源码?
您好,这是一个基于Python的选股指标源码,用于筛选连续出现三次买入信号的股票。
```
import pandas as pd
import talib
def get_buy_signal(df):
# 计算移动平均线
ma5 = talib.SMA(df['close'].values, timeperiod=5)
ma10 = talib.SMA(df['close'].values, timeperiod=10)
ma20 = talib.SMA(df['close'].values, timeperiod=20)
# 判断是否出现买入信号
buy_signal = (ma5 > ma10) & (ma10 > ma20)
return buy_signal.astype(int)
def get_consecutive_buy_signals(df):
# 获取买入信号
buy_signal = get_buy_signal(df)
# 查找连续买入信号
consecutive_buy_signals = pd.Series(buy_signal).rolling(window=3).sum() == 3
return consecutive_buy_signals.astype(int)
# 示例代码
df = pd.read_csv('stock_data.csv')
consecutive_buy_signals = get_consecutive_buy_signals(df)
print(consecutive_buy_signals)
```
该代码首先定义了一个`get_buy_signal`函数,用于计算移动平均线并判断是否出现买入信号,然后定义了一个`get_consecutive_buy_signals`函数,用于查找连续出现三次买入信号的股票。最后,通过读取股票数据并调用`get_consecutive_buy_signals`函数,可以得到连续出现三次买入信号的股票列表。
2. 买入信号连续出现三次选股指标源码?
您好,这是一个基于Python的选股指标源码,用于筛选连续出现三次买入信号的股票。
```
import pandas as pd
import talib
def get_buy_signal(df):
# 计算移动平均线
ma5 = talib.SMA(df['close'].values, timeperiod=5)
ma10 = talib.SMA(df['close'].values, timeperiod=10)
ma20 = talib.SMA(df['close'].values, timeperiod=20)
# 判断是否出现买入信号
buy_signal = (ma5 > ma10) & (ma10 > ma20)
return buy_signal.astype(int)
def get_consecutive_buy_signals(df):
# 获取买入信号
buy_signal = get_buy_signal(df)
# 查找连续买入信号
consecutive_buy_signals = pd.Series(buy_signal).rolling(window=3).sum() == 3
return consecutive_buy_signals.astype(int)
# 示例代码
df = pd.read_csv('stock_data.csv')
consecutive_buy_signals = get_consecutive_buy_signals(df)
print(consecutive_buy_signals)
```
该代码首先定义了一个`get_buy_signal`函数,用于计算移动平均线并判断是否出现买入信号,然后定义了一个`get_consecutive_buy_signals`函数,用于查找连续出现三次买入信号的股票。最后,通过读取股票数据并调用`get_consecutive_buy_signals`函数,可以得到连续出现三次买入信号的股票列表。
3. 买入信号连续出现三次选股指标源码?
您好,这是一个基于Python的选股指标源码,用于筛选连续出现三次买入信号的股票。
```
import pandas as pd
import talib
def get_buy_signal(df):
# 计算移动平均线
ma5 = talib.SMA(df['close'].values, timeperiod=5)
ma10 = talib.SMA(df['close'].values, timeperiod=10)
ma20 = talib.SMA(df['close'].values, timeperiod=20)
# 判断是否出现买入信号
buy_signal = (ma5 > ma10) & (ma10 > ma20)
return buy_signal.astype(int)
def get_consecutive_buy_signals(df):
# 获取买入信号
buy_signal = get_buy_signal(df)
# 查找连续买入信号
consecutive_buy_signals = pd.Series(buy_signal).rolling(window=3).sum() == 3
return consecutive_buy_signals.astype(int)
# 示例代码
df = pd.read_csv('stock_data.csv')
consecutive_buy_signals = get_consecutive_buy_signals(df)
print(consecutive_buy_signals)
```
该代码首先定义了一个`get_buy_signal`函数,用于计算移动平均线并判断是否出现买入信号,然后定义了一个`get_consecutive_buy_signals`函数,用于查找连续出现三次买入信号的股票。最后,通过读取股票数据并调用`get_consecutive_buy_signals`函数,可以得到连续出现三次买入信号的股票列表。
4. 通达信,网状指标+量柱擒涨停指标选股公式使用方法?
指标如果运用的好,在交易中是存在一定帮助的,起码无论是价值投资还是价格投机,都要看个股的价格是否处在偏高或者偏低区域,靠指标去辨别一定的高低点,买卖后和只看基本面直接买入个股还是存在一定的价格优势的。
可以看下图:
通达信,网状指标+量柱擒涨停指标其实包含了换手+KDJ+成交量的结合构建的两个副图指标,主要在于判断个股调整之后的趋势,当成交量出现后,股票触底上涨,此时就是该指标提供的买入机会。
量柱捉涨停:
通过网状和量柱的结合捕捉住趋势,这是该指标的特点,可以说在很大程度规避了单一指标带来的判断趋势的缺陷。运用该指标也是为了跟势交易。
但是指标更多是辅助,操作中还是要结合市场环境和风控来达到处理,才能做好交易。
倍数:=1.9;倍量1:=REF(VOL,3)>倍数*REF(VOL,4) AND REF(C,3)>=REF(O,3);价升量缩:= LLV(C,3)>=REF(L,3) AND HHV(VOL,3)<=REF(VOL,3);连阳:= COUNT(C>=O,4)=4;选股:倍量1 AND 价升量缩 AND 连阳;
至于选股公式的使用方法就是在综合选股里加入柱选股公式,然后根据柱选股公式选出来的个股再运用两种副图去判断是否存在介入的机会。
感谢点赞并关注,欢迎评论和转发,每日分享更多观点
5. stoch80上死叉,20下金叉源码?
STOCH80是一种技术指标,用于分析股票价格的趋势和动量。死叉和金叉是STOCH80指标中的两种重要信号,用于判断股票价格的买入和卖出时机。下面是STOCH80指标死叉和金叉的源码示例:
1. STOCH80死叉源码:
```
// 计算STOCH80指标
double[] high = ...; // 最高价数组
double[] low = ...; // 最低价数组
double[] close = ...; // 收盘价数组
int n = 80; // STOCH80指标周期
double[] stoch80 = new double[close.length];
for (int i = n; i < close.length; i++) {
double maxHigh = Arrays.stream(high, i - n, i).max().getAsDouble();
double minLow = Arrays.stream(low, i - n, i).min().getAsDouble();
double k = (close[i] - minLow) / (maxHigh - minLow) * 100;
stoch80[i] = Arrays.stream(stoch80, i - n + 1, i + 1).average().getAsDouble();
}
// 判断STOCH80死叉
for (int i = n + 1; i < close.length; i++) {
if (stoch80[i] > 80 && stoch80[i - 1] > 80 && stoch80[i - 2] > 80 && stoch80[i - 3] > 80 && stoch80[i - 4] > 80 && stoch80[i - 5] > 80 && stoch80[i - 6] > 80 && stoch80[i - 7] > 80 && stoch80[i - 8] > 80 && stoch80[i - 9] > 80 && stoch80[i - 10] > 80 && stoch80[i - 11] > 80 && stoch80[i - 12] > 80 && stoch80[i - 13] > 80 && stoch80[i - 14] > 80 && stoch80[i - 15] > 80 && stoch80[i - 16] > 80 && stoch80[i - 17] > 80 && stoch80[i - 18] > 80 && stoch80[i - 19] > 80) {
System.out.println("STOCH80死叉");
}
}
```
2. STOCH80金叉源码:
```
// 计算STOCH80指标
double[] high = ...; // 最高价数组
double[] low = ...; // 最低价数组
double[] close =...; // 收盘价数组
int n = 80; // STOCH80指标周期
double[] stoch80 = new double[close.length];
for (int i = n; i < close.length; i++) {
double maxHigh = Arrays.stream(high, i - n, i).max().getAsDouble();
double minLow = Arrays.stream(low, i - n, i).min().getAsDouble();
double k = (close[i] - minLow) / (maxHigh - minLow) * 100;
stoch80[i] = Arrays.stream(stoch80, i - n + 1, i + 1).average().getAsDouble();
}
// 判断STOCH80金叉
for (int i = n + 1; i < close.length; i++) {
if (stoch80[i] < 20 && stoch80[i - 1] < 20 && stoch80[i - 2] < 20 && stoch80[i - 3] < 20 && stoch80[i - 4] < 20 && stoch80[i - 5] < 20 && stoch80[i - 6] < 20 && stoch80[i - 7] < 20 && stoch80[i - 8] < 20 && stoch80[i - 9] < 20 && stoch80[i - 10] < 20 && stoch80[i - 11] < 20 && stoch80[i - 12] < 20 && stoch80[i - 13] < 20 && stoch80[i - 14] < 20 && stoch80[i - 15] < 20 && stoch80[i - 16] < 20 && stoch80[i - 17] < 20 && stoch80[i - 18] < 20 && stoch80[i - 19] < 20) {
System.out.println("STOCH80金叉");
}
}
```
需要注意的是,以上代码仅为示例,实际使用时需要根据具体情况进行调整和优化。此外,股票投资具有一定的风险,以上代码仅供参考,不构成任何投资建议。
6. stoch80上死叉,20下金叉源码?
STOCH80是一种技术指标,用于分析股票价格的趋势和动量。死叉和金叉是STOCH80指标中的两种重要信号,用于判断股票价格的买入和卖出时机。下面是STOCH80指标死叉和金叉的源码示例:
1. STOCH80死叉源码:
```
// 计算STOCH80指标
double[] high = ...; // 最高价数组
double[] low = ...; // 最低价数组
double[] close = ...; // 收盘价数组
int n = 80; // STOCH80指标周期
double[] stoch80 = new double[close.length];
for (int i = n; i < close.length; i++) {
double maxHigh = Arrays.stream(high, i - n, i).max().getAsDouble();
double minLow = Arrays.stream(low, i - n, i).min().getAsDouble();
double k = (close[i] - minLow) / (maxHigh - minLow) * 100;
stoch80[i] = Arrays.stream(stoch80, i - n + 1, i + 1).average().getAsDouble();
}
// 判断STOCH80死叉
for (int i = n + 1; i < close.length; i++) {
if (stoch80[i] > 80 && stoch80[i - 1] > 80 && stoch80[i - 2] > 80 && stoch80[i - 3] > 80 && stoch80[i - 4] > 80 && stoch80[i - 5] > 80 && stoch80[i - 6] > 80 && stoch80[i - 7] > 80 && stoch80[i - 8] > 80 && stoch80[i - 9] > 80 && stoch80[i - 10] > 80 && stoch80[i - 11] > 80 && stoch80[i - 12] > 80 && stoch80[i - 13] > 80 && stoch80[i - 14] > 80 && stoch80[i - 15] > 80 && stoch80[i - 16] > 80 && stoch80[i - 17] > 80 && stoch80[i - 18] > 80 && stoch80[i - 19] > 80) {
System.out.println("STOCH80死叉");
}
}
```
2. STOCH80金叉源码:
```
// 计算STOCH80指标
double[] high = ...; // 最高价数组
double[] low = ...; // 最低价数组
double[] close =...; // 收盘价数组
int n = 80; // STOCH80指标周期
double[] stoch80 = new double[close.length];
for (int i = n; i < close.length; i++) {
double maxHigh = Arrays.stream(high, i - n, i).max().getAsDouble();
double minLow = Arrays.stream(low, i - n, i).min().getAsDouble();
double k = (close[i] - minLow) / (maxHigh - minLow) * 100;
stoch80[i] = Arrays.stream(stoch80, i - n + 1, i + 1).average().getAsDouble();
}
// 判断STOCH80金叉
for (int i = n + 1; i < close.length; i++) {
if (stoch80[i] < 20 && stoch80[i - 1] < 20 && stoch80[i - 2] < 20 && stoch80[i - 3] < 20 && stoch80[i - 4] < 20 && stoch80[i - 5] < 20 && stoch80[i - 6] < 20 && stoch80[i - 7] < 20 && stoch80[i - 8] < 20 && stoch80[i - 9] < 20 && stoch80[i - 10] < 20 && stoch80[i - 11] < 20 && stoch80[i - 12] < 20 && stoch80[i - 13] < 20 && stoch80[i - 14] < 20 && stoch80[i - 15] < 20 && stoch80[i - 16] < 20 && stoch80[i - 17] < 20 && stoch80[i - 18] < 20 && stoch80[i - 19] < 20) {
System.out.println("STOCH80金叉");
}
}
```
需要注意的是,以上代码仅为示例,实际使用时需要根据具体情况进行调整和优化。此外,股票投资具有一定的风险,以上代码仅供参考,不构成任何投资建议。
7. stoch80上死叉,20下金叉源码?
STOCH80是一种技术指标,用于分析股票价格的趋势和动量。死叉和金叉是STOCH80指标中的两种重要信号,用于判断股票价格的买入和卖出时机。下面是STOCH80指标死叉和金叉的源码示例:
1. STOCH80死叉源码:
```
// 计算STOCH80指标
double[] high = ...; // 最高价数组
double[] low = ...; // 最低价数组
double[] close = ...; // 收盘价数组
int n = 80; // STOCH80指标周期
double[] stoch80 = new double[close.length];
for (int i = n; i < close.length; i++) {
double maxHigh = Arrays.stream(high, i - n, i).max().getAsDouble();
double minLow = Arrays.stream(low, i - n, i).min().getAsDouble();
double k = (close[i] - minLow) / (maxHigh - minLow) * 100;
stoch80[i] = Arrays.stream(stoch80, i - n + 1, i + 1).average().getAsDouble();
}
// 判断STOCH80死叉
for (int i = n + 1; i < close.length; i++) {
if (stoch80[i] > 80 && stoch80[i - 1] > 80 && stoch80[i - 2] > 80 && stoch80[i - 3] > 80 && stoch80[i - 4] > 80 && stoch80[i - 5] > 80 && stoch80[i - 6] > 80 && stoch80[i - 7] > 80 && stoch80[i - 8] > 80 && stoch80[i - 9] > 80 && stoch80[i - 10] > 80 && stoch80[i - 11] > 80 && stoch80[i - 12] > 80 && stoch80[i - 13] > 80 && stoch80[i - 14] > 80 && stoch80[i - 15] > 80 && stoch80[i - 16] > 80 && stoch80[i - 17] > 80 && stoch80[i - 18] > 80 && stoch80[i - 19] > 80) {
System.out.println("STOCH80死叉");
}
}
```
2. STOCH80金叉源码:
```
// 计算STOCH80指标
double[] high = ...; // 最高价数组
double[] low = ...; // 最低价数组
double[] close =...; // 收盘价数组
int n = 80; // STOCH80指标周期
double[] stoch80 = new double[close.length];
for (int i = n; i < close.length; i++) {
double maxHigh = Arrays.stream(high, i - n, i).max().getAsDouble();
double minLow = Arrays.stream(low, i - n, i).min().getAsDouble();
double k = (close[i] - minLow) / (maxHigh - minLow) * 100;
stoch80[i] = Arrays.stream(stoch80, i - n + 1, i + 1).average().getAsDouble();
}
// 判断STOCH80金叉
for (int i = n + 1; i < close.length; i++) {
if (stoch80[i] < 20 && stoch80[i - 1] < 20 && stoch80[i - 2] < 20 && stoch80[i - 3] < 20 && stoch80[i - 4] < 20 && stoch80[i - 5] < 20 && stoch80[i - 6] < 20 && stoch80[i - 7] < 20 && stoch80[i - 8] < 20 && stoch80[i - 9] < 20 && stoch80[i - 10] < 20 && stoch80[i - 11] < 20 && stoch80[i - 12] < 20 && stoch80[i - 13] < 20 && stoch80[i - 14] < 20 && stoch80[i - 15] < 20 && stoch80[i - 16] < 20 && stoch80[i - 17] < 20 && stoch80[i - 18] < 20 && stoch80[i - 19] < 20) {
System.out.println("STOCH80金叉");
}
}
```
需要注意的是,以上代码仅为示例,实际使用时需要根据具体情况进行调整和优化。此外,股票投资具有一定的风险,以上代码仅供参考,不构成任何投资建议。
8. ccl指标公式源码?
以下是通达信ccl优化源码(无源码的请下载附件导入)
使用方法:绿色底部区域,红色操作区域;CCL上穿-100买入时机 ,CCL下破100卖出时机
DRAWBAND(-100,RGB(0,250,0),"CCI.CCI",RGB(250,0,0));
DRAWBAND(100,RGB(0,0,0),-100,RGB(0,0,0));
CCI:"CCI.CCI";
DRAWBAND(100,RGB(250,0,0),100,RGB(250,0,0)),DOTLINE;
DRAWBAND(-100,RGB(250,0,0),-100,RGB(250,0,0)),DOTLINE;
9. 经典rsi指标源码?
飞狐经典趋势RSI指标公式源码
均价:=(2*C+(H-L)/2+L+o)/4;
LC:=REF(均价,1);
rsi24:=((((SMA(MAX((均价- LC),0),24,1) / SMA(ABS((均价- LC)),24,1)) * 100) ));
rsi48:=((((SMA(MAX((均价- LC),0),48,1) / SMA(ABS((均价- LC)),48,1)) * 100)));
rsi72:=((((SMA(MAX((均价- LC),0),72,1) / SMA(ABS((均价- LC)),72,1)) * 100)));
趋势:EMA(((((rsi24+ rsi48) / 2) - rsi72) )*10,18),COLOR0000FF,LINETHICK2;
MA3:=EMA(趋势,3);
PARTLINE(趋势<MA3,趋势),COLOR00AA99,LINETHICK2;
界:STICKLINE(C>0,0,0,6,0);
10. t+0分时图指标公式?
通达信疯狂T+0分时主图指标
MA30:=EMA(CLOSE,30);
强弱:EMA(CLOSE,900);
STICKLINE((MA30>强弱),MA30,强弱,1,0),COLOR0000FF;
STICKLINE((MA30<强弱),MA30,强弱,1,0),COLOR00FF00;
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
阻力:L1+P1*7/8,COLOR00DD00;
支撑:L1+P1*0.5/8,COLOR00DD00;
现价:CLOSE,COLORWHITE,LINETHICK1;
STICKLINE(CROSS(支撑,现价),支撑,阻力,1,0),COLORYELLOW;
DRAWTEXT(LONGCROSS(支撑,现价,2),支撑*1.001,'★B'),COLORYELLOW;{吸}
DRAWTEXT(LONGCROSS(现价,阻力,2),现价,'★'),COLORRED;{抛};
11. 经典rsi指标源码?
飞狐经典趋势RSI指标公式源码
均价:=(2*C+(H-L)/2+L+o)/4;
LC:=REF(均价,1);
rsi24:=((((SMA(MAX((均价- LC),0),24,1) / SMA(ABS((均价- LC)),24,1)) * 100) ));
rsi48:=((((SMA(MAX((均价- LC),0),48,1) / SMA(ABS((均价- LC)),48,1)) * 100)));
rsi72:=((((SMA(MAX((均价- LC),0),72,1) / SMA(ABS((均价- LC)),72,1)) * 100)));
趋势:EMA(((((rsi24+ rsi48) / 2) - rsi72) )*10,18),COLOR0000FF,LINETHICK2;
MA3:=EMA(趋势,3);
PARTLINE(趋势<MA3,趋势),COLOR00AA99,LINETHICK2;
界:STICKLINE(C>0,0,0,6,0);
12. 100%尾盘选股法公式?
一、选股法公式:
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
CCI修正1:=EMA(EMA(EMA(CCI,2),2),2);
CCI修正2:=EMA(EMA(EMA(CCI,3),2),2);
X:=(CROSS(CCI修正1,CCI修正2) OR (CCI修正1 >=CCI修正2))
AND CCI修正1>=-101 AND CCI修正1>=ref(CCI修正1,1)
AND ref(CCI修正1,1)<-101 ;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
K1:= EMA(EMA(EMA(K,2),2),2);
D1:= EMA(EMA(EMA(D,2),2),2);
J1:= EMA(EMA(EMA(J,2),2),2);
Y:= J1 > ref(J1,1) ;
X AND Y;
二、公式说明:
对CCI的杂波进行了多重过滤,使CCI信号特征更加稳定;同时加入了更多条件,加入了短线KDJ条件,对KDJ的杂波进行了多重过滤,使KDJ信号特征更加稳定;努力使得该指标能达到接近超级短线战神指标的意义。使得信号发出几率更高,信号发出质量更稳定,可靠度更高。
三、操作原理:
原理非常简单,就是大家常用的经典CCI指标,平时我们用日周期使用得比较多,在这里用30分钟周期来使用.KDJ指标也要求J指标同时向上运行。
尾盘30分钟周期的CCI指标由远离-100的最负的最远端向上运动,当快接近-100时候,就是你抢进去的时候,股价在30分钟周期里由负的最远端向正常区运动的概率极大,正常区为-100----+100,每天有8个30分钟周期,在你进去后,第二天的股价在剩下的8个30分钟周期向上跑的概率极大,甚至跑道+100以上。这8个30分钟周期足够你逃跑的了。
在大盘大跳水的情况下最好别适用该法,正确性会大大降低。
在大盘小跌、盘整、小升、猴市、牛市等情况下,该法皆可使用,而且该法在大盘小跌、盘整、小升、猴市、牛市等情况下的准确率会达到95%以上。
13. stoch80上死叉,20下金叉源码?
STOCH80是一种技术指标,用于分析股票价格的趋势和动量。死叉和金叉是STOCH80指标中的两种重要信号,用于判断股票价格的买入和卖出时机。下面是STOCH80指标死叉和金叉的源码示例:
1. STOCH80死叉源码:
```
// 计算STOCH80指标
double[] high = ...; // 最高价数组
double[] low = ...; // 最低价数组
double[] close = ...; // 收盘价数组
int n = 80; // STOCH80指标周期
double[] stoch80 = new double[close.length];
for (int i = n; i < close.length; i++) {
double maxHigh = Arrays.stream(high, i - n, i).max().getAsDouble();
double minLow = Arrays.stream(low, i - n, i).min().getAsDouble();
double k = (close[i] - minLow) / (maxHigh - minLow) * 100;
stoch80[i] = Arrays.stream(stoch80, i - n + 1, i + 1).average().getAsDouble();
}
// 判断STOCH80死叉
for (int i = n + 1; i < close.length; i++) {
if (stoch80[i] > 80 && stoch80[i - 1] > 80 && stoch80[i - 2] > 80 && stoch80[i - 3] > 80 && stoch80[i - 4] > 80 && stoch80[i - 5] > 80 && stoch80[i - 6] > 80 && stoch80[i - 7] > 80 && stoch80[i - 8] > 80 && stoch80[i - 9] > 80 && stoch80[i - 10] > 80 && stoch80[i - 11] > 80 && stoch80[i - 12] > 80 && stoch80[i - 13] > 80 && stoch80[i - 14] > 80 && stoch80[i - 15] > 80 && stoch80[i - 16] > 80 && stoch80[i - 17] > 80 && stoch80[i - 18] > 80 && stoch80[i - 19] > 80) {
System.out.println("STOCH80死叉");
}
}
```
2. STOCH80金叉源码:
```
// 计算STOCH80指标
double[] high = ...; // 最高价数组
double[] low = ...; // 最低价数组
double[] close =...; // 收盘价数组
int n = 80; // STOCH80指标周期
double[] stoch80 = new double[close.length];
for (int i = n; i < close.length; i++) {
double maxHigh = Arrays.stream(high, i - n, i).max().getAsDouble();
double minLow = Arrays.stream(low, i - n, i).min().getAsDouble();
double k = (close[i] - minLow) / (maxHigh - minLow) * 100;
stoch80[i] = Arrays.stream(stoch80, i - n + 1, i + 1).average().getAsDouble();
}
// 判断STOCH80金叉
for (int i = n + 1; i < close.length; i++) {
if (stoch80[i] < 20 && stoch80[i - 1] < 20 && stoch80[i - 2] < 20 && stoch80[i - 3] < 20 && stoch80[i - 4] < 20 && stoch80[i - 5] < 20 && stoch80[i - 6] < 20 && stoch80[i - 7] < 20 && stoch80[i - 8] < 20 && stoch80[i - 9] < 20 && stoch80[i - 10] < 20 && stoch80[i - 11] < 20 && stoch80[i - 12] < 20 && stoch80[i - 13] < 20 && stoch80[i - 14] < 20 && stoch80[i - 15] < 20 && stoch80[i - 16] < 20 && stoch80[i - 17] < 20 && stoch80[i - 18] < 20 && stoch80[i - 19] < 20) {
System.out.println("STOCH80金叉");
}
}
```
需要注意的是,以上代码仅为示例,实际使用时需要根据具体情况进行调整和优化。此外,股票投资具有一定的风险,以上代码仅供参考,不构成任何投资建议。
14. 黑马起飞列表的买入提示指标源码是什么?谢谢了,大神帮忙啊?
主流资金:EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3), colorred,linethick2; 非主流资金:EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34)),3),colorgreen,linethick2;20,POINTDOT,colorf00ff0;50,POINTDOT,colorgreen;80,POINTDOT,colorwhite;
15. expma指标源码?
AEXP12:EXPMA(CLOSE,12)COLORBLUE,LINETHICK1;
AEXP21:EXPMA(CLOSE,21)COLORGREEN,LINETHICK2;
AEXP50:EXPMA(CLOSE,50)COLORGREEN,LINETHICK2;
IF(AEXP12>(REFV(AEXP12,1)),AEXP12,DRAWNULL),COLORRED,LINETHICK1;
IF(AEXP21>(REFV(AEXP21,1)),AEXP21,DRAWNULL),COLORMAGENTA,LINETHICK2;
A1:=EMA(C,14),COLORA2A200,LINETHICK1;
A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;
DRAWTEXT_FIX(1,0,0.07,0,'【所属板块】'),COLORWHITE;
DRAWTEXT_FIX(1,0.07,0.07,0,DYBLOCK),COLOR0080FF; {地域}
DRAWTEXT_FIX(1,0.122,0.07,0,GNBLOCK),COLORCFB53B; {概念}
DRAWTEXT_FIX(1,0,0.19,0,'【莸利比例】'),COLORWHITE;
DRAWNUMBER_FIX(1,0.09,0.19,0,CONST(WINNER(C )*100)),COLORYELLOW;
DRAWTEXT_FIX(1,0.073,0,0,HYBLOCK),COLORRED; {行业}
{DRAWTEXT_FIX(1,0.124,0,0,FGBLOCK),COLORYELLOW;} {风格}
SAT:=IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100);
DRAWTEXT_FIX(1,0,0.31,0,'【量能饱和度】')COLORWHITE;
DRAWNUMBER_FIX(1,0.1,0.31,0,CONST(SAT)),COLORYELLOW;
突破:REF(EMA(C,14),1),NODRAW;
距离:(C-突破)/突破*100,NODRAW;
出击:IF(A1X>=0,REF(EMA(C,14),BARSLAST(CROSS(A1X,0))+1),DRAWNULL),COLORB000B0,LINETHICK1;
休假:IF(A1X<0,REF(EMA(C,14),BARSLAST(CROSS(0,A1X))+1),DRAWNULL),COLORFFFF00,LINETHICK1;
涨幅:IF(A1X>=0,(C-出击)/出击*100,DRAWNULL)NODRAW;
跌幅:IF(A1X<0,(C-休假)/休假*100,DRAWNULL)NODRAW;
TT:=240/FROMOPEN;比:=TT;AY2:=EMA(CLOSE,12)-EMA(CLOSE,26);
AZ2:=EMA(AY2,9);LT2:=(AY2-AZ2);
L211:=IF(LT2,LLV(L,21),DRAWNULL),COLOR217158,CIRCLEDOT;
ZGD:=HHV(H,80)*0.99;ZGD2:=CONST(ZGD);ZDD:=LLV(L211,80);ZDD2:=CONST(ZDD);
YYA4:=MA(CLOSE,20);YYA5:=(CLOSE > MA(CLOSE,5));YYA6:=(MA(CLOSE,5) > MA(CLOSE,10));
YYA7:=(CLOSE > MA(CLOSE,10));YYA8:=(MA(CLOSE,5) > MA(CLOSE,20));
YYA9:=(CLOSE > MA(CLOSE,20));YYA10:=REF(YYA4,1);YYA11:=(YYA4 > YYA10);
YYAVX:=(((((IF(YYA5,10,(0 - 10)) + IF(YYA6,10,(0 - 10))) + IF(YYA7,10,(0 - 10))) + IF(YYA8,10,(0 - 10))) + IF(YYA9,10,(0 - 10))) + IF(YYA11,10,(0 - 10)));
DSLX:=(CLOSE / INDEXC);DSLX1:=MA(DSLX,5);DSLX2:=MA(DSLX,10);
YYV1:=MA(VOL,5);YYV2:=MA(VOL,10);J1:=CONST(IF( YYAVX > 0,200,100));
J2:=CONST(IF( YYAVX > 0,00,100));J3:=CONST(IF( YYAVX > 0,100,100));
ZGD3:=ZGD2;ZDD3:=ZDD2;ZGD4:=ZGD2;
STICKLINE(CROSS(A1X,0),C,O,2,0),COLOR00FFFF;
STICKLINE(CROSS(0,A1X),C,O,2,0),COLOR606000;
情况1:=CONST(IF(((CROSS(YYAVX,1) AND (YYV1 >= YYV2)) AND (DSLX >= DSLX1)),1,0)),NODRAW;
情况2:=CONST(IF(((CROSS(YYAVX,1) AND (YYV1 < YYV2)) AND (DSLX >= DSLX1)),1,0));
情况3:=CONST(IF(((CROSS(YYAVX,1) AND (YYV1 > YYV2)) AND (DSLX < DSLX1)),1,0));
情况4:=CONST(IF(((CROSS(YYAVX,1) AND (YYV1 <= YYV2)) AND (DSLX < DSLX1)),1,0));
情况5:=CONST(IF(((CROSS(1,YYAVX) AND (YYV1 >= YYV2)) AND (DSLX >= DSLX1)),1,0));
情况6:=CONST(IF(((CROSS(1,YYAVX) AND (YYV1 < YYV2)) AND (DSLX >= DSLX1)),1,0));
情况7:=CONST(IF(((CROSS(1,YYAVX) AND (YYV1 >= YYV2)) AND (DSLX < DSLX1)),1,0));
情况8:=CONST(IF(((CROSS(1,YYAVX) AND (YYV1 < YYV2)) AND (DSLX < DSLX1)),1,0));
情况9:=CONST(IF(((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 >= YYV2)) AND (DSLX >= DSLX1)),1,0));
情况10:=CONST(IF(((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 < YYV2)) AND (DSLX >= DSLX1)),1,0));
情况11:=CONST(IF(((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 >= YYV2)) AND (DSLX < DSLX1)),1,0)),NODRAW;
情况12:=CONST(IF(((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 < YYV2)) AND (DSLX < DSLX1)),1,0));
情况13:=CONST(IF(((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 >= YYV2)) AND (DSLX >= DSLX1)),1,0));
情况14:=CONST(IF(((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 < YYV2)) AND (DSLX >= DSLX1)),1,0));
情况15:=CONST(IF(((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 >= YYV2)) AND (DSLX < DSLX1)),1,0));
情况16:=CONST(IF(((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 < YYV2)) AND (DSLX < DSLX1)),1,0));
大盘1:=CONST(IF((CROSS(YYAVX,1) AND (YYV1 >= YYV2)),1,0));
大盘2:=CONST(IF((CROSS(YYAVX,1) AND (YYV1 < YYV2)),1,0));
大盘3:=CONST(IF((CROSS(1,YYAVX) AND (YYV1 >= YYV2)),1,0));
大盘4:=CONST(IF((CROSS(1,YYAVX) AND (YYV1 < YYV2)),1,0));
大盘5:=CONST(IF((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 >= YYV2)),1,0));
大盘6:=CONST(IF((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 < YYV2)),1,0));
大盘7:=CONST(IF((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 >= YYV2)),1,0));
大盘8:=CONST(IF((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 < YYV2)),1,0));
MFI:=(HIGH-LOW)*1000000/(VOL*比);
绿灯:=MFI>=REF(MFI,1)AND VOL*比>=REF(VOL,1);
MMM1:=CONST(绿灯);
衰退:=MFI<REF(MFI,1)AND VOL*比<REF(VOL,1);
MMM2:=CONST(衰退);
伪装:=MFI>=REF(MFI,1)AND VOL*比<REF(VOL,1);
MMM3:=CONST(伪装);
蛰伏:=MFI<REF(MFI,1)AND VOL*比>=REF(VOL,1);
MMM4:=CONST(蛰伏);
WJ:=(H+L+C)/3;V1:=IF(H=L,1,H-MAX(O,C));V2:=IF(H=L,1,MAX(C,O)-WJ);
V3:=IF(H=L,1,MIN(O,C)-L);V4:=IF(H=L,1,WJ-MIN(C,O));V5:=VOL/IF(H=L,4,H-L);
V6:=(V1*V5);V7:=(V2*V5);V8:=(V3*V5);V9:=(V4*V5);
买盘1:=DYNAINFO(23)*比;卖盘1:=DYNAINFO(22)*比;
买盘2:=IF(ISLASTBAR AND C>300,(V9+V8)*TT,(V9+V8));
卖盘2:=IF(ISLASTBAR AND C>300,(V6+V7)*TT,(V6+V7));
买盘:=IF(ISLASTBAR AND PERIOD=5 AND C<300,买盘1,买盘2);
卖盘:=IF(ISLASTBAR AND PERIOD=5 AND C<300,卖盘1,卖盘2);
{买卖差:=买盘-卖盘;}
量大:=(卖盘+买盘)/REF(VOL,1)>2;
MMM5:=CONST(量大);
量缩:=REF(VOL,1)/(卖盘+买盘)>1.5;
MMM6:=CONST(量缩);
卖量大:=(卖盘-买盘)/买盘>0.4;
MMM7:=CONST(卖量大);
买量大:=(买盘-卖盘)/卖盘>0.4;
MMM8:=CONST(买量大);
TS1:=IF(情况1=1,0.06+0.06,0.06); TS2:=IF(情况2=1,TS1+0.06,TS1);
TS3:=IF(情况3=1,TS2+0.06,TS2); TS4:=IF(情况4=1,TS3+0.06,TS3);
TS5:=IF(情况5=1,TS4+0.06,TS4); TS6:=IF(情况6=1,TS5+0.06,TS5);
TS7:=IF(情况7=1,TS6+0.06,TS6); TS8:=IF(情况8=1,TS7+0.06,TS7);
TS9:=IF(情况9=1,TS8+0.06,TS8); TS10:=IF(情况10=1,TS9+0.06,TS9);
TS11:=IF(情况11=1,TS10+0.06,TS10); TS12:=IF(情况12=1,TS11+0.06,TS11);
TS13:=IF(情况13=1,TS12+0.06,TS12); TS14:=IF(情况14=1,TS13+0.06,TS13);
TS15:=IF(情况15=1,TS14+0.06,TS14); TS16:=IF(情况16=1,TS15+0.06,TS15);
TS17:=IF(大盘1=1,TS16+0.06,TS16); TS18:=IF(大盘2=1,TS17+0.06,TS17);
TS19:=IF(大盘3=1,TS18+0.06,TS18); TS20:=IF(大盘4=1,TS19+0.06,TS19);
TS21:=IF(大盘5=1,TS20+0.06,TS20); TS22:=IF(大盘6=1,TS21+0.06,TS21);
TS23:=IF(大盘7=1,TS22+0.06,TS22); TS24:=IF(大盘8=1,TS23+0.06,TS23);
TS25:=IF(MMM1=1,TS24+0.06,TS24);
TS26:=IF(MMM2=1,TS25+0.06,TS25);
TS27:=IF(MMM3=1,TS26+0.06,TS26);
TS28:=IF(MMM4=1,TS27+0.06,TS27);
TS29:=IF(MMM5=1,TS28+0.03,TS28);
TS30:=IF(MMM6=1,TS29+0.03,TS29);
TS31:=IF(MMM7=1,TS30+0.03,TS30);
TS32:=IF(MMM8=1,TS31+0.03,TS31);
DRAWTEXT_FIX(MMM5,0,0.42,0,'★今天比昨天的成交量放大一倍以上。'),COLORGREEN;
DRAWTEXT_FIX(MMM6,0,0.42,0,'★今天比昨天的成交量缩量一半以上。'),COLORYELLOW;
DRAWTEXT_FIX(MMM7,0,0.48,0,'☆该股今天卖出量大于买入量40%以上。'),COLORGREEN;
DRAWTEXT_FIX(MMM8,0,0.48,0,'☆该股今天买入量大于卖出量40%以上。'),COLORYELLOW;
16. 通达信,网状指标+量柱擒涨停指标选股公式使用方法?
指标如果运用的好,在交易中是存在一定帮助的,起码无论是价值投资还是价格投机,都要看个股的价格是否处在偏高或者偏低区域,靠指标去辨别一定的高低点,买卖后和只看基本面直接买入个股还是存在一定的价格优势的。
可以看下图:
通达信,网状指标+量柱擒涨停指标其实包含了换手+KDJ+成交量的结合构建的两个副图指标,主要在于判断个股调整之后的趋势,当成交量出现后,股票触底上涨,此时就是该指标提供的买入机会。
量柱捉涨停:
通过网状和量柱的结合捕捉住趋势,这是该指标的特点,可以说在很大程度规避了单一指标带来的判断趋势的缺陷。运用该指标也是为了跟势交易。
但是指标更多是辅助,操作中还是要结合市场环境和风控来达到处理,才能做好交易。
倍数:=1.9;倍量1:=REF(VOL,3)>倍数*REF(VOL,4) AND REF(C,3)>=REF(O,3);价升量缩:= LLV(C,3)>=REF(L,3) AND HHV(VOL,3)<=REF(VOL,3);连阳:= COUNT(C>=O,4)=4;选股:倍量1 AND 价升量缩 AND 连阳;
至于选股公式的使用方法就是在综合选股里加入柱选股公式,然后根据柱选股公式选出来的个股再运用两种副图去判断是否存在介入的机会。
感谢点赞并关注,欢迎评论和转发,每日分享更多观点
17. 通达信,网状指标+量柱擒涨停指标选股公式使用方法?
指标如果运用的好,在交易中是存在一定帮助的,起码无论是价值投资还是价格投机,都要看个股的价格是否处在偏高或者偏低区域,靠指标去辨别一定的高低点,买卖后和只看基本面直接买入个股还是存在一定的价格优势的。
可以看下图:
通达信,网状指标+量柱擒涨停指标其实包含了换手+KDJ+成交量的结合构建的两个副图指标,主要在于判断个股调整之后的趋势,当成交量出现后,股票触底上涨,此时就是该指标提供的买入机会。
量柱捉涨停:
通过网状和量柱的结合捕捉住趋势,这是该指标的特点,可以说在很大程度规避了单一指标带来的判断趋势的缺陷。运用该指标也是为了跟势交易。
但是指标更多是辅助,操作中还是要结合市场环境和风控来达到处理,才能做好交易。
倍数:=1.9;倍量1:=REF(VOL,3)>倍数*REF(VOL,4) AND REF(C,3)>=REF(O,3);价升量缩:= LLV(C,3)>=REF(L,3) AND HHV(VOL,3)<=REF(VOL,3);连阳:= COUNT(C>=O,4)=4;选股:倍量1 AND 价升量缩 AND 连阳;
至于选股公式的使用方法就是在综合选股里加入柱选股公式,然后根据柱选股公式选出来的个股再运用两种副图去判断是否存在介入的机会。
感谢点赞并关注,欢迎评论和转发,每日分享更多观点
18. expma指标源码?
AEXP12:EXPMA(CLOSE,12)COLORBLUE,LINETHICK1;
AEXP21:EXPMA(CLOSE,21)COLORGREEN,LINETHICK2;
AEXP50:EXPMA(CLOSE,50)COLORGREEN,LINETHICK2;
IF(AEXP12>(REFV(AEXP12,1)),AEXP12,DRAWNULL),COLORRED,LINETHICK1;
IF(AEXP21>(REFV(AEXP21,1)),AEXP21,DRAWNULL),COLORMAGENTA,LINETHICK2;
A1:=EMA(C,14),COLORA2A200,LINETHICK1;
A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;
DRAWTEXT_FIX(1,0,0.07,0,'【所属板块】'),COLORWHITE;
DRAWTEXT_FIX(1,0.07,0.07,0,DYBLOCK),COLOR0080FF; {地域}
DRAWTEXT_FIX(1,0.122,0.07,0,GNBLOCK),COLORCFB53B; {概念}
DRAWTEXT_FIX(1,0,0.19,0,'【莸利比例】'),COLORWHITE;
DRAWNUMBER_FIX(1,0.09,0.19,0,CONST(WINNER(C )*100)),COLORYELLOW;
DRAWTEXT_FIX(1,0.073,0,0,HYBLOCK),COLORRED; {行业}
{DRAWTEXT_FIX(1,0.124,0,0,FGBLOCK),COLORYELLOW;} {风格}
SAT:=IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100);
DRAWTEXT_FIX(1,0,0.31,0,'【量能饱和度】')COLORWHITE;
DRAWNUMBER_FIX(1,0.1,0.31,0,CONST(SAT)),COLORYELLOW;
突破:REF(EMA(C,14),1),NODRAW;
距离:(C-突破)/突破*100,NODRAW;
出击:IF(A1X>=0,REF(EMA(C,14),BARSLAST(CROSS(A1X,0))+1),DRAWNULL),COLORB000B0,LINETHICK1;
休假:IF(A1X<0,REF(EMA(C,14),BARSLAST(CROSS(0,A1X))+1),DRAWNULL),COLORFFFF00,LINETHICK1;
涨幅:IF(A1X>=0,(C-出击)/出击*100,DRAWNULL)NODRAW;
跌幅:IF(A1X<0,(C-休假)/休假*100,DRAWNULL)NODRAW;
TT:=240/FROMOPEN;比:=TT;AY2:=EMA(CLOSE,12)-EMA(CLOSE,26);
AZ2:=EMA(AY2,9);LT2:=(AY2-AZ2);
L211:=IF(LT2,LLV(L,21),DRAWNULL),COLOR217158,CIRCLEDOT;
ZGD:=HHV(H,80)*0.99;ZGD2:=CONST(ZGD);ZDD:=LLV(L211,80);ZDD2:=CONST(ZDD);
YYA4:=MA(CLOSE,20);YYA5:=(CLOSE > MA(CLOSE,5));YYA6:=(MA(CLOSE,5) > MA(CLOSE,10));
YYA7:=(CLOSE > MA(CLOSE,10));YYA8:=(MA(CLOSE,5) > MA(CLOSE,20));
YYA9:=(CLOSE > MA(CLOSE,20));YYA10:=REF(YYA4,1);YYA11:=(YYA4 > YYA10);
YYAVX:=(((((IF(YYA5,10,(0 - 10)) + IF(YYA6,10,(0 - 10))) + IF(YYA7,10,(0 - 10))) + IF(YYA8,10,(0 - 10))) + IF(YYA9,10,(0 - 10))) + IF(YYA11,10,(0 - 10)));
DSLX:=(CLOSE / INDEXC);DSLX1:=MA(DSLX,5);DSLX2:=MA(DSLX,10);
YYV1:=MA(VOL,5);YYV2:=MA(VOL,10);J1:=CONST(IF( YYAVX > 0,200,100));
J2:=CONST(IF( YYAVX > 0,00,100));J3:=CONST(IF( YYAVX > 0,100,100));
ZGD3:=ZGD2;ZDD3:=ZDD2;ZGD4:=ZGD2;
STICKLINE(CROSS(A1X,0),C,O,2,0),COLOR00FFFF;
STICKLINE(CROSS(0,A1X),C,O,2,0),COLOR606000;
情况1:=CONST(IF(((CROSS(YYAVX,1) AND (YYV1 >= YYV2)) AND (DSLX >= DSLX1)),1,0)),NODRAW;
情况2:=CONST(IF(((CROSS(YYAVX,1) AND (YYV1 < YYV2)) AND (DSLX >= DSLX1)),1,0));
情况3:=CONST(IF(((CROSS(YYAVX,1) AND (YYV1 > YYV2)) AND (DSLX < DSLX1)),1,0));
情况4:=CONST(IF(((CROSS(YYAVX,1) AND (YYV1 <= YYV2)) AND (DSLX < DSLX1)),1,0));
情况5:=CONST(IF(((CROSS(1,YYAVX) AND (YYV1 >= YYV2)) AND (DSLX >= DSLX1)),1,0));
情况6:=CONST(IF(((CROSS(1,YYAVX) AND (YYV1 < YYV2)) AND (DSLX >= DSLX1)),1,0));
情况7:=CONST(IF(((CROSS(1,YYAVX) AND (YYV1 >= YYV2)) AND (DSLX < DSLX1)),1,0));
情况8:=CONST(IF(((CROSS(1,YYAVX) AND (YYV1 < YYV2)) AND (DSLX < DSLX1)),1,0));
情况9:=CONST(IF(((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 >= YYV2)) AND (DSLX >= DSLX1)),1,0));
情况10:=CONST(IF(((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 < YYV2)) AND (DSLX >= DSLX1)),1,0));
情况11:=CONST(IF(((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 >= YYV2)) AND (DSLX < DSLX1)),1,0)),NODRAW;
情况12:=CONST(IF(((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 < YYV2)) AND (DSLX < DSLX1)),1,0));
情况13:=CONST(IF(((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 >= YYV2)) AND (DSLX >= DSLX1)),1,0));
情况14:=CONST(IF(((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 < YYV2)) AND (DSLX >= DSLX1)),1,0));
情况15:=CONST(IF(((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 >= YYV2)) AND (DSLX < DSLX1)),1,0));
情况16:=CONST(IF(((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 < YYV2)) AND (DSLX < DSLX1)),1,0));
大盘1:=CONST(IF((CROSS(YYAVX,1) AND (YYV1 >= YYV2)),1,0));
大盘2:=CONST(IF((CROSS(YYAVX,1) AND (YYV1 < YYV2)),1,0));
大盘3:=CONST(IF((CROSS(1,YYAVX) AND (YYV1 >= YYV2)),1,0));
大盘4:=CONST(IF((CROSS(1,YYAVX) AND (YYV1 < YYV2)),1,0));
大盘5:=CONST(IF((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 >= YYV2)),1,0));
大盘6:=CONST(IF((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 < YYV2)),1,0));
大盘7:=CONST(IF((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 >= YYV2)),1,0));
大盘8:=CONST(IF((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 < YYV2)),1,0));
MFI:=(HIGH-LOW)*1000000/(VOL*比);
绿灯:=MFI>=REF(MFI,1)AND VOL*比>=REF(VOL,1);
MMM1:=CONST(绿灯);
衰退:=MFI<REF(MFI,1)AND VOL*比<REF(VOL,1);
MMM2:=CONST(衰退);
伪装:=MFI>=REF(MFI,1)AND VOL*比<REF(VOL,1);
MMM3:=CONST(伪装);
蛰伏:=MFI<REF(MFI,1)AND VOL*比>=REF(VOL,1);
MMM4:=CONST(蛰伏);
WJ:=(H+L+C)/3;V1:=IF(H=L,1,H-MAX(O,C));V2:=IF(H=L,1,MAX(C,O)-WJ);
V3:=IF(H=L,1,MIN(O,C)-L);V4:=IF(H=L,1,WJ-MIN(C,O));V5:=VOL/IF(H=L,4,H-L);
V6:=(V1*V5);V7:=(V2*V5);V8:=(V3*V5);V9:=(V4*V5);
买盘1:=DYNAINFO(23)*比;卖盘1:=DYNAINFO(22)*比;
买盘2:=IF(ISLASTBAR AND C>300,(V9+V8)*TT,(V9+V8));
卖盘2:=IF(ISLASTBAR AND C>300,(V6+V7)*TT,(V6+V7));
买盘:=IF(ISLASTBAR AND PERIOD=5 AND C<300,买盘1,买盘2);
卖盘:=IF(ISLASTBAR AND PERIOD=5 AND C<300,卖盘1,卖盘2);
{买卖差:=买盘-卖盘;}
量大:=(卖盘+买盘)/REF(VOL,1)>2;
MMM5:=CONST(量大);
量缩:=REF(VOL,1)/(卖盘+买盘)>1.5;
MMM6:=CONST(量缩);
卖量大:=(卖盘-买盘)/买盘>0.4;
MMM7:=CONST(卖量大);
买量大:=(买盘-卖盘)/卖盘>0.4;
MMM8:=CONST(买量大);
TS1:=IF(情况1=1,0.06+0.06,0.06); TS2:=IF(情况2=1,TS1+0.06,TS1);
TS3:=IF(情况3=1,TS2+0.06,TS2); TS4:=IF(情况4=1,TS3+0.06,TS3);
TS5:=IF(情况5=1,TS4+0.06,TS4); TS6:=IF(情况6=1,TS5+0.06,TS5);
TS7:=IF(情况7=1,TS6+0.06,TS6); TS8:=IF(情况8=1,TS7+0.06,TS7);
TS9:=IF(情况9=1,TS8+0.06,TS8); TS10:=IF(情况10=1,TS9+0.06,TS9);
TS11:=IF(情况11=1,TS10+0.06,TS10); TS12:=IF(情况12=1,TS11+0.06,TS11);
TS13:=IF(情况13=1,TS12+0.06,TS12); TS14:=IF(情况14=1,TS13+0.06,TS13);
TS15:=IF(情况15=1,TS14+0.06,TS14); TS16:=IF(情况16=1,TS15+0.06,TS15);
TS17:=IF(大盘1=1,TS16+0.06,TS16); TS18:=IF(大盘2=1,TS17+0.06,TS17);
TS19:=IF(大盘3=1,TS18+0.06,TS18); TS20:=IF(大盘4=1,TS19+0.06,TS19);
TS21:=IF(大盘5=1,TS20+0.06,TS20); TS22:=IF(大盘6=1,TS21+0.06,TS21);
TS23:=IF(大盘7=1,TS22+0.06,TS22); TS24:=IF(大盘8=1,TS23+0.06,TS23);
TS25:=IF(MMM1=1,TS24+0.06,TS24);
TS26:=IF(MMM2=1,TS25+0.06,TS25);
TS27:=IF(MMM3=1,TS26+0.06,TS26);
TS28:=IF(MMM4=1,TS27+0.06,TS27);
TS29:=IF(MMM5=1,TS28+0.03,TS28);
TS30:=IF(MMM6=1,TS29+0.03,TS29);
TS31:=IF(MMM7=1,TS30+0.03,TS30);
TS32:=IF(MMM8=1,TS31+0.03,TS31);
DRAWTEXT_FIX(MMM5,0,0.42,0,'★今天比昨天的成交量放大一倍以上。'),COLORGREEN;
DRAWTEXT_FIX(MMM6,0,0.42,0,'★今天比昨天的成交量缩量一半以上。'),COLORYELLOW;
DRAWTEXT_FIX(MMM7,0,0.48,0,'☆该股今天卖出量大于买入量40%以上。'),COLORGREEN;
DRAWTEXT_FIX(MMM8,0,0.48,0,'☆该股今天买入量大于卖出量40%以上。'),COLORYELLOW;
19. ccl指标公式源码?
以下是通达信ccl优化源码(无源码的请下载附件导入)
使用方法:绿色底部区域,红色操作区域;CCL上穿-100买入时机 ,CCL下破100卖出时机
DRAWBAND(-100,RGB(0,250,0),"CCI.CCI",RGB(250,0,0));
DRAWBAND(100,RGB(0,0,0),-100,RGB(0,0,0));
CCI:"CCI.CCI";
DRAWBAND(100,RGB(250,0,0),100,RGB(250,0,0)),DOTLINE;
DRAWBAND(-100,RGB(250,0,0),-100,RGB(250,0,0)),DOTLINE;
20. expma指标源码?
AEXP12:EXPMA(CLOSE,12)COLORBLUE,LINETHICK1;
AEXP21:EXPMA(CLOSE,21)COLORGREEN,LINETHICK2;
AEXP50:EXPMA(CLOSE,50)COLORGREEN,LINETHICK2;
IF(AEXP12>(REFV(AEXP12,1)),AEXP12,DRAWNULL),COLORRED,LINETHICK1;
IF(AEXP21>(REFV(AEXP21,1)),AEXP21,DRAWNULL),COLORMAGENTA,LINETHICK2;
A1:=EMA(C,14),COLORA2A200,LINETHICK1;
A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;
DRAWTEXT_FIX(1,0,0.07,0,'【所属板块】'),COLORWHITE;
DRAWTEXT_FIX(1,0.07,0.07,0,DYBLOCK),COLOR0080FF; {地域}
DRAWTEXT_FIX(1,0.122,0.07,0,GNBLOCK),COLORCFB53B; {概念}
DRAWTEXT_FIX(1,0,0.19,0,'【莸利比例】'),COLORWHITE;
DRAWNUMBER_FIX(1,0.09,0.19,0,CONST(WINNER(C )*100)),COLORYELLOW;
DRAWTEXT_FIX(1,0.073,0,0,HYBLOCK),COLORRED; {行业}
{DRAWTEXT_FIX(1,0.124,0,0,FGBLOCK),COLORYELLOW;} {风格}
SAT:=IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100);
DRAWTEXT_FIX(1,0,0.31,0,'【量能饱和度】')COLORWHITE;
DRAWNUMBER_FIX(1,0.1,0.31,0,CONST(SAT)),COLORYELLOW;
突破:REF(EMA(C,14),1),NODRAW;
距离:(C-突破)/突破*100,NODRAW;
出击:IF(A1X>=0,REF(EMA(C,14),BARSLAST(CROSS(A1X,0))+1),DRAWNULL),COLORB000B0,LINETHICK1;
休假:IF(A1X<0,REF(EMA(C,14),BARSLAST(CROSS(0,A1X))+1),DRAWNULL),COLORFFFF00,LINETHICK1;
涨幅:IF(A1X>=0,(C-出击)/出击*100,DRAWNULL)NODRAW;
跌幅:IF(A1X<0,(C-休假)/休假*100,DRAWNULL)NODRAW;
TT:=240/FROMOPEN;比:=TT;AY2:=EMA(CLOSE,12)-EMA(CLOSE,26);
AZ2:=EMA(AY2,9);LT2:=(AY2-AZ2);
L211:=IF(LT2,LLV(L,21),DRAWNULL),COLOR217158,CIRCLEDOT;
ZGD:=HHV(H,80)*0.99;ZGD2:=CONST(ZGD);ZDD:=LLV(L211,80);ZDD2:=CONST(ZDD);
YYA4:=MA(CLOSE,20);YYA5:=(CLOSE > MA(CLOSE,5));YYA6:=(MA(CLOSE,5) > MA(CLOSE,10));
YYA7:=(CLOSE > MA(CLOSE,10));YYA8:=(MA(CLOSE,5) > MA(CLOSE,20));
YYA9:=(CLOSE > MA(CLOSE,20));YYA10:=REF(YYA4,1);YYA11:=(YYA4 > YYA10);
YYAVX:=(((((IF(YYA5,10,(0 - 10)) + IF(YYA6,10,(0 - 10))) + IF(YYA7,10,(0 - 10))) + IF(YYA8,10,(0 - 10))) + IF(YYA9,10,(0 - 10))) + IF(YYA11,10,(0 - 10)));
DSLX:=(CLOSE / INDEXC);DSLX1:=MA(DSLX,5);DSLX2:=MA(DSLX,10);
YYV1:=MA(VOL,5);YYV2:=MA(VOL,10);J1:=CONST(IF( YYAVX > 0,200,100));
J2:=CONST(IF( YYAVX > 0,00,100));J3:=CONST(IF( YYAVX > 0,100,100));
ZGD3:=ZGD2;ZDD3:=ZDD2;ZGD4:=ZGD2;
STICKLINE(CROSS(A1X,0),C,O,2,0),COLOR00FFFF;
STICKLINE(CROSS(0,A1X),C,O,2,0),COLOR606000;
情况1:=CONST(IF(((CROSS(YYAVX,1) AND (YYV1 >= YYV2)) AND (DSLX >= DSLX1)),1,0)),NODRAW;
情况2:=CONST(IF(((CROSS(YYAVX,1) AND (YYV1 < YYV2)) AND (DSLX >= DSLX1)),1,0));
情况3:=CONST(IF(((CROSS(YYAVX,1) AND (YYV1 > YYV2)) AND (DSLX < DSLX1)),1,0));
情况4:=CONST(IF(((CROSS(YYAVX,1) AND (YYV1 <= YYV2)) AND (DSLX < DSLX1)),1,0));
情况5:=CONST(IF(((CROSS(1,YYAVX) AND (YYV1 >= YYV2)) AND (DSLX >= DSLX1)),1,0));
情况6:=CONST(IF(((CROSS(1,YYAVX) AND (YYV1 < YYV2)) AND (DSLX >= DSLX1)),1,0));
情况7:=CONST(IF(((CROSS(1,YYAVX) AND (YYV1 >= YYV2)) AND (DSLX < DSLX1)),1,0));
情况8:=CONST(IF(((CROSS(1,YYAVX) AND (YYV1 < YYV2)) AND (DSLX < DSLX1)),1,0));
情况9:=CONST(IF(((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 >= YYV2)) AND (DSLX >= DSLX1)),1,0));
情况10:=CONST(IF(((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 < YYV2)) AND (DSLX >= DSLX1)),1,0));
情况11:=CONST(IF(((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 >= YYV2)) AND (DSLX < DSLX1)),1,0)),NODRAW;
情况12:=CONST(IF(((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 < YYV2)) AND (DSLX < DSLX1)),1,0));
情况13:=CONST(IF(((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 >= YYV2)) AND (DSLX >= DSLX1)),1,0));
情况14:=CONST(IF(((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 < YYV2)) AND (DSLX >= DSLX1)),1,0));
情况15:=CONST(IF(((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 >= YYV2)) AND (DSLX < DSLX1)),1,0));
情况16:=CONST(IF(((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 < YYV2)) AND (DSLX < DSLX1)),1,0));
大盘1:=CONST(IF((CROSS(YYAVX,1) AND (YYV1 >= YYV2)),1,0));
大盘2:=CONST(IF((CROSS(YYAVX,1) AND (YYV1 < YYV2)),1,0));
大盘3:=CONST(IF((CROSS(1,YYAVX) AND (YYV1 >= YYV2)),1,0));
大盘4:=CONST(IF((CROSS(1,YYAVX) AND (YYV1 < YYV2)),1,0));
大盘5:=CONST(IF((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 >= YYV2)),1,0));
大盘6:=CONST(IF((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 < YYV2)),1,0));
大盘7:=CONST(IF((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 >= YYV2)),1,0));
大盘8:=CONST(IF((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 < YYV2)),1,0));
MFI:=(HIGH-LOW)*1000000/(VOL*比);
绿灯:=MFI>=REF(MFI,1)AND VOL*比>=REF(VOL,1);
MMM1:=CONST(绿灯);
衰退:=MFI<REF(MFI,1)AND VOL*比<REF(VOL,1);
MMM2:=CONST(衰退);
伪装:=MFI>=REF(MFI,1)AND VOL*比<REF(VOL,1);
MMM3:=CONST(伪装);
蛰伏:=MFI<REF(MFI,1)AND VOL*比>=REF(VOL,1);
MMM4:=CONST(蛰伏);
WJ:=(H+L+C)/3;V1:=IF(H=L,1,H-MAX(O,C));V2:=IF(H=L,1,MAX(C,O)-WJ);
V3:=IF(H=L,1,MIN(O,C)-L);V4:=IF(H=L,1,WJ-MIN(C,O));V5:=VOL/IF(H=L,4,H-L);
V6:=(V1*V5);V7:=(V2*V5);V8:=(V3*V5);V9:=(V4*V5);
买盘1:=DYNAINFO(23)*比;卖盘1:=DYNAINFO(22)*比;
买盘2:=IF(ISLASTBAR AND C>300,(V9+V8)*TT,(V9+V8));
卖盘2:=IF(ISLASTBAR AND C>300,(V6+V7)*TT,(V6+V7));
买盘:=IF(ISLASTBAR AND PERIOD=5 AND C<300,买盘1,买盘2);
卖盘:=IF(ISLASTBAR AND PERIOD=5 AND C<300,卖盘1,卖盘2);
{买卖差:=买盘-卖盘;}
量大:=(卖盘+买盘)/REF(VOL,1)>2;
MMM5:=CONST(量大);
量缩:=REF(VOL,1)/(卖盘+买盘)>1.5;
MMM6:=CONST(量缩);
卖量大:=(卖盘-买盘)/买盘>0.4;
MMM7:=CONST(卖量大);
买量大:=(买盘-卖盘)/卖盘>0.4;
MMM8:=CONST(买量大);
TS1:=IF(情况1=1,0.06+0.06,0.06); TS2:=IF(情况2=1,TS1+0.06,TS1);
TS3:=IF(情况3=1,TS2+0.06,TS2); TS4:=IF(情况4=1,TS3+0.06,TS3);
TS5:=IF(情况5=1,TS4+0.06,TS4); TS6:=IF(情况6=1,TS5+0.06,TS5);
TS7:=IF(情况7=1,TS6+0.06,TS6); TS8:=IF(情况8=1,TS7+0.06,TS7);
TS9:=IF(情况9=1,TS8+0.06,TS8); TS10:=IF(情况10=1,TS9+0.06,TS9);
TS11:=IF(情况11=1,TS10+0.06,TS10); TS12:=IF(情况12=1,TS11+0.06,TS11);
TS13:=IF(情况13=1,TS12+0.06,TS12); TS14:=IF(情况14=1,TS13+0.06,TS13);
TS15:=IF(情况15=1,TS14+0.06,TS14); TS16:=IF(情况16=1,TS15+0.06,TS15);
TS17:=IF(大盘1=1,TS16+0.06,TS16); TS18:=IF(大盘2=1,TS17+0.06,TS17);
TS19:=IF(大盘3=1,TS18+0.06,TS18); TS20:=IF(大盘4=1,TS19+0.06,TS19);
TS21:=IF(大盘5=1,TS20+0.06,TS20); TS22:=IF(大盘6=1,TS21+0.06,TS21);
TS23:=IF(大盘7=1,TS22+0.06,TS22); TS24:=IF(大盘8=1,TS23+0.06,TS23);
TS25:=IF(MMM1=1,TS24+0.06,TS24);
TS26:=IF(MMM2=1,TS25+0.06,TS25);
TS27:=IF(MMM3=1,TS26+0.06,TS26);
TS28:=IF(MMM4=1,TS27+0.06,TS27);
TS29:=IF(MMM5=1,TS28+0.03,TS28);
TS30:=IF(MMM6=1,TS29+0.03,TS29);
TS31:=IF(MMM7=1,TS30+0.03,TS30);
TS32:=IF(MMM8=1,TS31+0.03,TS31);
DRAWTEXT_FIX(MMM5,0,0.42,0,'★今天比昨天的成交量放大一倍以上。'),COLORGREEN;
DRAWTEXT_FIX(MMM6,0,0.42,0,'★今天比昨天的成交量缩量一半以上。'),COLORYELLOW;
DRAWTEXT_FIX(MMM7,0,0.48,0,'☆该股今天卖出量大于买入量40%以上。'),COLORGREEN;
DRAWTEXT_FIX(MMM8,0,0.48,0,'☆该股今天买入量大于卖出量40%以上。'),COLORYELLOW;
21. 黑马起飞列表的买入提示指标源码是什么?谢谢了,大神帮忙啊?
主流资金:EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3), colorred,linethick2; 非主流资金:EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34)),3),colorgreen,linethick2;20,POINTDOT,colorf00ff0;50,POINTDOT,colorgreen;80,POINTDOT,colorwhite;
22. 100%尾盘选股法公式?
一、选股法公式:
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
CCI修正1:=EMA(EMA(EMA(CCI,2),2),2);
CCI修正2:=EMA(EMA(EMA(CCI,3),2),2);
X:=(CROSS(CCI修正1,CCI修正2) OR (CCI修正1 >=CCI修正2))
AND CCI修正1>=-101 AND CCI修正1>=ref(CCI修正1,1)
AND ref(CCI修正1,1)<-101 ;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
K1:= EMA(EMA(EMA(K,2),2),2);
D1:= EMA(EMA(EMA(D,2),2),2);
J1:= EMA(EMA(EMA(J,2),2),2);
Y:= J1 > ref(J1,1) ;
X AND Y;
二、公式说明:
对CCI的杂波进行了多重过滤,使CCI信号特征更加稳定;同时加入了更多条件,加入了短线KDJ条件,对KDJ的杂波进行了多重过滤,使KDJ信号特征更加稳定;努力使得该指标能达到接近超级短线战神指标的意义。使得信号发出几率更高,信号发出质量更稳定,可靠度更高。
三、操作原理:
原理非常简单,就是大家常用的经典CCI指标,平时我们用日周期使用得比较多,在这里用30分钟周期来使用.KDJ指标也要求J指标同时向上运行。
尾盘30分钟周期的CCI指标由远离-100的最负的最远端向上运动,当快接近-100时候,就是你抢进去的时候,股价在30分钟周期里由负的最远端向正常区运动的概率极大,正常区为-100----+100,每天有8个30分钟周期,在你进去后,第二天的股价在剩下的8个30分钟周期向上跑的概率极大,甚至跑道+100以上。这8个30分钟周期足够你逃跑的了。
在大盘大跳水的情况下最好别适用该法,正确性会大大降低。
在大盘小跌、盘整、小升、猴市、牛市等情况下,该法皆可使用,而且该法在大盘小跌、盘整、小升、猴市、牛市等情况下的准确率会达到95%以上。
23. 买入信号连续出现三次选股指标源码?
您好,这是一个基于Python的选股指标源码,用于筛选连续出现三次买入信号的股票。
```
import pandas as pd
import talib
def get_buy_signal(df):
# 计算移动平均线
ma5 = talib.SMA(df['close'].values, timeperiod=5)
ma10 = talib.SMA(df['close'].values, timeperiod=10)
ma20 = talib.SMA(df['close'].values, timeperiod=20)
# 判断是否出现买入信号
buy_signal = (ma5 > ma10) & (ma10 > ma20)
return buy_signal.astype(int)
def get_consecutive_buy_signals(df):
# 获取买入信号
buy_signal = get_buy_signal(df)
# 查找连续买入信号
consecutive_buy_signals = pd.Series(buy_signal).rolling(window=3).sum() == 3
return consecutive_buy_signals.astype(int)
# 示例代码
df = pd.read_csv('stock_data.csv')
consecutive_buy_signals = get_consecutive_buy_signals(df)
print(consecutive_buy_signals)
```
该代码首先定义了一个`get_buy_signal`函数,用于计算移动平均线并判断是否出现买入信号,然后定义了一个`get_consecutive_buy_signals`函数,用于查找连续出现三次买入信号的股票。最后,通过读取股票数据并调用`get_consecutive_buy_signals`函数,可以得到连续出现三次买入信号的股票列表。
24. t+0分时图指标公式?
通达信疯狂T+0分时主图指标
MA30:=EMA(CLOSE,30);
强弱:EMA(CLOSE,900);
STICKLINE((MA30>强弱),MA30,强弱,1,0),COLOR0000FF;
STICKLINE((MA30<强弱),MA30,强弱,1,0),COLOR00FF00;
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
阻力:L1+P1*7/8,COLOR00DD00;
支撑:L1+P1*0.5/8,COLOR00DD00;
现价:CLOSE,COLORWHITE,LINETHICK1;
STICKLINE(CROSS(支撑,现价),支撑,阻力,1,0),COLORYELLOW;
DRAWTEXT(LONGCROSS(支撑,现价,2),支撑*1.001,'★B'),COLORYELLOW;{吸}
DRAWTEXT(LONGCROSS(现价,阻力,2),现价,'★'),COLORRED;{抛};
25. 黑马起飞列表的买入提示指标源码是什么?谢谢了,大神帮忙啊?
主流资金:EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3), colorred,linethick2; 非主流资金:EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34)),3),colorgreen,linethick2;20,POINTDOT,colorf00ff0;50,POINTDOT,colorgreen;80,POINTDOT,colorwhite;
26. 黑马起飞列表的买入提示指标源码是什么?谢谢了,大神帮忙啊?
主流资金:EMA(100*(C-LLV(LOW,34))/(HHV(H,34)-LLV(LOW,34)),3), colorred,linethick2; 非主流资金:EMA(100*(INDEXC-LLV(INDEXL,34))/(HHV(INDEXH,34)-LLV(INDEXL,34)),3),colorgreen,linethick2;20,POINTDOT,colorf00ff0;50,POINTDOT,colorgreen;80,POINTDOT,colorwhite;
27. ccl指标公式源码?
以下是通达信ccl优化源码(无源码的请下载附件导入)
使用方法:绿色底部区域,红色操作区域;CCL上穿-100买入时机 ,CCL下破100卖出时机
DRAWBAND(-100,RGB(0,250,0),"CCI.CCI",RGB(250,0,0));
DRAWBAND(100,RGB(0,0,0),-100,RGB(0,0,0));
CCI:"CCI.CCI";
DRAWBAND(100,RGB(250,0,0),100,RGB(250,0,0)),DOTLINE;
DRAWBAND(-100,RGB(250,0,0),-100,RGB(250,0,0)),DOTLINE;
28. 100%尾盘选股法公式?
一、选股法公式:
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
CCI修正1:=EMA(EMA(EMA(CCI,2),2),2);
CCI修正2:=EMA(EMA(EMA(CCI,3),2),2);
X:=(CROSS(CCI修正1,CCI修正2) OR (CCI修正1 >=CCI修正2))
AND CCI修正1>=-101 AND CCI修正1>=ref(CCI修正1,1)
AND ref(CCI修正1,1)<-101 ;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
K1:= EMA(EMA(EMA(K,2),2),2);
D1:= EMA(EMA(EMA(D,2),2),2);
J1:= EMA(EMA(EMA(J,2),2),2);
Y:= J1 > ref(J1,1) ;
X AND Y;
二、公式说明:
对CCI的杂波进行了多重过滤,使CCI信号特征更加稳定;同时加入了更多条件,加入了短线KDJ条件,对KDJ的杂波进行了多重过滤,使KDJ信号特征更加稳定;努力使得该指标能达到接近超级短线战神指标的意义。使得信号发出几率更高,信号发出质量更稳定,可靠度更高。
三、操作原理:
原理非常简单,就是大家常用的经典CCI指标,平时我们用日周期使用得比较多,在这里用30分钟周期来使用.KDJ指标也要求J指标同时向上运行。
尾盘30分钟周期的CCI指标由远离-100的最负的最远端向上运动,当快接近-100时候,就是你抢进去的时候,股价在30分钟周期里由负的最远端向正常区运动的概率极大,正常区为-100----+100,每天有8个30分钟周期,在你进去后,第二天的股价在剩下的8个30分钟周期向上跑的概率极大,甚至跑道+100以上。这8个30分钟周期足够你逃跑的了。
在大盘大跳水的情况下最好别适用该法,正确性会大大降低。
在大盘小跌、盘整、小升、猴市、牛市等情况下,该法皆可使用,而且该法在大盘小跌、盘整、小升、猴市、牛市等情况下的准确率会达到95%以上。
29. ccl指标公式源码?
以下是通达信ccl优化源码(无源码的请下载附件导入)
使用方法:绿色底部区域,红色操作区域;CCL上穿-100买入时机 ,CCL下破100卖出时机
DRAWBAND(-100,RGB(0,250,0),"CCI.CCI",RGB(250,0,0));
DRAWBAND(100,RGB(0,0,0),-100,RGB(0,0,0));
CCI:"CCI.CCI";
DRAWBAND(100,RGB(250,0,0),100,RGB(250,0,0)),DOTLINE;
DRAWBAND(-100,RGB(250,0,0),-100,RGB(250,0,0)),DOTLINE;
30. 通达信,网状指标+量柱擒涨停指标选股公式使用方法?
指标如果运用的好,在交易中是存在一定帮助的,起码无论是价值投资还是价格投机,都要看个股的价格是否处在偏高或者偏低区域,靠指标去辨别一定的高低点,买卖后和只看基本面直接买入个股还是存在一定的价格优势的。
可以看下图:
通达信,网状指标+量柱擒涨停指标其实包含了换手+KDJ+成交量的结合构建的两个副图指标,主要在于判断个股调整之后的趋势,当成交量出现后,股票触底上涨,此时就是该指标提供的买入机会。
量柱捉涨停:
通过网状和量柱的结合捕捉住趋势,这是该指标的特点,可以说在很大程度规避了单一指标带来的判断趋势的缺陷。运用该指标也是为了跟势交易。
但是指标更多是辅助,操作中还是要结合市场环境和风控来达到处理,才能做好交易。
倍数:=1.9;倍量1:=REF(VOL,3)>倍数*REF(VOL,4) AND REF(C,3)>=REF(O,3);价升量缩:= LLV(C,3)>=REF(L,3) AND HHV(VOL,3)<=REF(VOL,3);连阳:= COUNT(C>=O,4)=4;选股:倍量1 AND 价升量缩 AND 连阳;
至于选股公式的使用方法就是在综合选股里加入柱选股公式,然后根据柱选股公式选出来的个股再运用两种副图去判断是否存在介入的机会。
感谢点赞并关注,欢迎评论和转发,每日分享更多观点
31. 100%尾盘选股法公式?
一、选股法公式:
TYP:=(HIGH+LOW+CLOSE)/3;
CCI:=(TYP-MA(TYP,14))/(0.015*AVEDEV(TYP,14));
CCI修正1:=EMA(EMA(EMA(CCI,2),2),2);
CCI修正2:=EMA(EMA(EMA(CCI,3),2),2);
X:=(CROSS(CCI修正1,CCI修正2) OR (CCI修正1 >=CCI修正2))
AND CCI修正1>=-101 AND CCI修正1>=ref(CCI修正1,1)
AND ref(CCI修正1,1)<-101 ;
RSV:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*100;
K:=SMA(RSV,3,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
K1:= EMA(EMA(EMA(K,2),2),2);
D1:= EMA(EMA(EMA(D,2),2),2);
J1:= EMA(EMA(EMA(J,2),2),2);
Y:= J1 > ref(J1,1) ;
X AND Y;
二、公式说明:
对CCI的杂波进行了多重过滤,使CCI信号特征更加稳定;同时加入了更多条件,加入了短线KDJ条件,对KDJ的杂波进行了多重过滤,使KDJ信号特征更加稳定;努力使得该指标能达到接近超级短线战神指标的意义。使得信号发出几率更高,信号发出质量更稳定,可靠度更高。
三、操作原理:
原理非常简单,就是大家常用的经典CCI指标,平时我们用日周期使用得比较多,在这里用30分钟周期来使用.KDJ指标也要求J指标同时向上运行。
尾盘30分钟周期的CCI指标由远离-100的最负的最远端向上运动,当快接近-100时候,就是你抢进去的时候,股价在30分钟周期里由负的最远端向正常区运动的概率极大,正常区为-100----+100,每天有8个30分钟周期,在你进去后,第二天的股价在剩下的8个30分钟周期向上跑的概率极大,甚至跑道+100以上。这8个30分钟周期足够你逃跑的了。
在大盘大跳水的情况下最好别适用该法,正确性会大大降低。
在大盘小跌、盘整、小升、猴市、牛市等情况下,该法皆可使用,而且该法在大盘小跌、盘整、小升、猴市、牛市等情况下的准确率会达到95%以上。
32. 经典rsi指标源码?
飞狐经典趋势RSI指标公式源码
均价:=(2*C+(H-L)/2+L+o)/4;
LC:=REF(均价,1);
rsi24:=((((SMA(MAX((均价- LC),0),24,1) / SMA(ABS((均价- LC)),24,1)) * 100) ));
rsi48:=((((SMA(MAX((均价- LC),0),48,1) / SMA(ABS((均价- LC)),48,1)) * 100)));
rsi72:=((((SMA(MAX((均价- LC),0),72,1) / SMA(ABS((均价- LC)),72,1)) * 100)));
趋势:EMA(((((rsi24+ rsi48) / 2) - rsi72) )*10,18),COLOR0000FF,LINETHICK2;
MA3:=EMA(趋势,3);
PARTLINE(趋势<MA3,趋势),COLOR00AA99,LINETHICK2;
界:STICKLINE(C>0,0,0,6,0);
33. t+0分时图指标公式?
通达信疯狂T+0分时主图指标
MA30:=EMA(CLOSE,30);
强弱:EMA(CLOSE,900);
STICKLINE((MA30>强弱),MA30,强弱,1,0),COLOR0000FF;
STICKLINE((MA30<强弱),MA30,强弱,1,0),COLOR00FF00;
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
阻力:L1+P1*7/8,COLOR00DD00;
支撑:L1+P1*0.5/8,COLOR00DD00;
现价:CLOSE,COLORWHITE,LINETHICK1;
STICKLINE(CROSS(支撑,现价),支撑,阻力,1,0),COLORYELLOW;
DRAWTEXT(LONGCROSS(支撑,现价,2),支撑*1.001,'★B'),COLORYELLOW;{吸}
DRAWTEXT(LONGCROSS(现价,阻力,2),现价,'★'),COLORRED;{抛};
34. t+0分时图指标公式?
通达信疯狂T+0分时主图指标
MA30:=EMA(CLOSE,30);
强弱:EMA(CLOSE,900);
STICKLINE((MA30>强弱),MA30,强弱,1,0),COLOR0000FF;
STICKLINE((MA30<强弱),MA30,强弱,1,0),COLOR00FF00;
H1:=MAX(DYNAINFO(3),DYNAINFO(5));
L1:=MIN(DYNAINFO(3),DYNAINFO(6));
P1:=H1-L1;
阻力:L1+P1*7/8,COLOR00DD00;
支撑:L1+P1*0.5/8,COLOR00DD00;
现价:CLOSE,COLORWHITE,LINETHICK1;
STICKLINE(CROSS(支撑,现价),支撑,阻力,1,0),COLORYELLOW;
DRAWTEXT(LONGCROSS(支撑,现价,2),支撑*1.001,'★B'),COLORYELLOW;{吸}
DRAWTEXT(LONGCROSS(现价,阻力,2),现价,'★'),COLORRED;{抛};
35. 经典rsi指标源码?
飞狐经典趋势RSI指标公式源码
均价:=(2*C+(H-L)/2+L+o)/4;
LC:=REF(均价,1);
rsi24:=((((SMA(MAX((均价- LC),0),24,1) / SMA(ABS((均价- LC)),24,1)) * 100) ));
rsi48:=((((SMA(MAX((均价- LC),0),48,1) / SMA(ABS((均价- LC)),48,1)) * 100)));
rsi72:=((((SMA(MAX((均价- LC),0),72,1) / SMA(ABS((均价- LC)),72,1)) * 100)));
趋势:EMA(((((rsi24+ rsi48) / 2) - rsi72) )*10,18),COLOR0000FF,LINETHICK2;
MA3:=EMA(趋势,3);
PARTLINE(趋势<MA3,趋势),COLOR00AA99,LINETHICK2;
界:STICKLINE(C>0,0,0,6,0);
36. expma指标源码?
AEXP12:EXPMA(CLOSE,12)COLORBLUE,LINETHICK1;
AEXP21:EXPMA(CLOSE,21)COLORGREEN,LINETHICK2;
AEXP50:EXPMA(CLOSE,50)COLORGREEN,LINETHICK2;
IF(AEXP12>(REFV(AEXP12,1)),AEXP12,DRAWNULL),COLORRED,LINETHICK1;
IF(AEXP21>(REFV(AEXP21,1)),AEXP21,DRAWNULL),COLORMAGENTA,LINETHICK2;
A1:=EMA(C,14),COLORA2A200,LINETHICK1;
A1X:=(A1-REF(A1,1))/REF(A1,1)*100,NODRAW;
DRAWTEXT_FIX(1,0,0.07,0,'【所属板块】'),COLORWHITE;
DRAWTEXT_FIX(1,0.07,0.07,0,DYBLOCK),COLOR0080FF; {地域}
DRAWTEXT_FIX(1,0.122,0.07,0,GNBLOCK),COLORCFB53B; {概念}
DRAWTEXT_FIX(1,0,0.19,0,'【莸利比例】'),COLORWHITE;
DRAWNUMBER_FIX(1,0.09,0.19,0,CONST(WINNER(C )*100)),COLORYELLOW;
DRAWTEXT_FIX(1,0.073,0,0,HYBLOCK),COLORRED; {行业}
{DRAWTEXT_FIX(1,0.124,0,0,FGBLOCK),COLORYELLOW;} {风格}
SAT:=IF((AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100>100,100,(AMOUNT/C)/(HHV(AMOUNT,20)/HHV(C,20))*100);
DRAWTEXT_FIX(1,0,0.31,0,'【量能饱和度】')COLORWHITE;
DRAWNUMBER_FIX(1,0.1,0.31,0,CONST(SAT)),COLORYELLOW;
突破:REF(EMA(C,14),1),NODRAW;
距离:(C-突破)/突破*100,NODRAW;
出击:IF(A1X>=0,REF(EMA(C,14),BARSLAST(CROSS(A1X,0))+1),DRAWNULL),COLORB000B0,LINETHICK1;
休假:IF(A1X<0,REF(EMA(C,14),BARSLAST(CROSS(0,A1X))+1),DRAWNULL),COLORFFFF00,LINETHICK1;
涨幅:IF(A1X>=0,(C-出击)/出击*100,DRAWNULL)NODRAW;
跌幅:IF(A1X<0,(C-休假)/休假*100,DRAWNULL)NODRAW;
TT:=240/FROMOPEN;比:=TT;AY2:=EMA(CLOSE,12)-EMA(CLOSE,26);
AZ2:=EMA(AY2,9);LT2:=(AY2-AZ2);
L211:=IF(LT2,LLV(L,21),DRAWNULL),COLOR217158,CIRCLEDOT;
ZGD:=HHV(H,80)*0.99;ZGD2:=CONST(ZGD);ZDD:=LLV(L211,80);ZDD2:=CONST(ZDD);
YYA4:=MA(CLOSE,20);YYA5:=(CLOSE > MA(CLOSE,5));YYA6:=(MA(CLOSE,5) > MA(CLOSE,10));
YYA7:=(CLOSE > MA(CLOSE,10));YYA8:=(MA(CLOSE,5) > MA(CLOSE,20));
YYA9:=(CLOSE > MA(CLOSE,20));YYA10:=REF(YYA4,1);YYA11:=(YYA4 > YYA10);
YYAVX:=(((((IF(YYA5,10,(0 - 10)) + IF(YYA6,10,(0 - 10))) + IF(YYA7,10,(0 - 10))) + IF(YYA8,10,(0 - 10))) + IF(YYA9,10,(0 - 10))) + IF(YYA11,10,(0 - 10)));
DSLX:=(CLOSE / INDEXC);DSLX1:=MA(DSLX,5);DSLX2:=MA(DSLX,10);
YYV1:=MA(VOL,5);YYV2:=MA(VOL,10);J1:=CONST(IF( YYAVX > 0,200,100));
J2:=CONST(IF( YYAVX > 0,00,100));J3:=CONST(IF( YYAVX > 0,100,100));
ZGD3:=ZGD2;ZDD3:=ZDD2;ZGD4:=ZGD2;
STICKLINE(CROSS(A1X,0),C,O,2,0),COLOR00FFFF;
STICKLINE(CROSS(0,A1X),C,O,2,0),COLOR606000;
情况1:=CONST(IF(((CROSS(YYAVX,1) AND (YYV1 >= YYV2)) AND (DSLX >= DSLX1)),1,0)),NODRAW;
情况2:=CONST(IF(((CROSS(YYAVX,1) AND (YYV1 < YYV2)) AND (DSLX >= DSLX1)),1,0));
情况3:=CONST(IF(((CROSS(YYAVX,1) AND (YYV1 > YYV2)) AND (DSLX < DSLX1)),1,0));
情况4:=CONST(IF(((CROSS(YYAVX,1) AND (YYV1 <= YYV2)) AND (DSLX < DSLX1)),1,0));
情况5:=CONST(IF(((CROSS(1,YYAVX) AND (YYV1 >= YYV2)) AND (DSLX >= DSLX1)),1,0));
情况6:=CONST(IF(((CROSS(1,YYAVX) AND (YYV1 < YYV2)) AND (DSLX >= DSLX1)),1,0));
情况7:=CONST(IF(((CROSS(1,YYAVX) AND (YYV1 >= YYV2)) AND (DSLX < DSLX1)),1,0));
情况8:=CONST(IF(((CROSS(1,YYAVX) AND (YYV1 < YYV2)) AND (DSLX < DSLX1)),1,0));
情况9:=CONST(IF(((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 >= YYV2)) AND (DSLX >= DSLX1)),1,0));
情况10:=CONST(IF(((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 < YYV2)) AND (DSLX >= DSLX1)),1,0));
情况11:=CONST(IF(((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 >= YYV2)) AND (DSLX < DSLX1)),1,0)),NODRAW;
情况12:=CONST(IF(((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 < YYV2)) AND (DSLX < DSLX1)),1,0));
情况13:=CONST(IF(((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 >= YYV2)) AND (DSLX >= DSLX1)),1,0));
情况14:=CONST(IF(((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 < YYV2)) AND (DSLX >= DSLX1)),1,0));
情况15:=CONST(IF(((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 >= YYV2)) AND (DSLX < DSLX1)),1,0));
情况16:=CONST(IF(((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 < YYV2)) AND (DSLX < DSLX1)),1,0));
大盘1:=CONST(IF((CROSS(YYAVX,1) AND (YYV1 >= YYV2)),1,0));
大盘2:=CONST(IF((CROSS(YYAVX,1) AND (YYV1 < YYV2)),1,0));
大盘3:=CONST(IF((CROSS(1,YYAVX) AND (YYV1 >= YYV2)),1,0));
大盘4:=CONST(IF((CROSS(1,YYAVX) AND (YYV1 < YYV2)),1,0));
大盘5:=CONST(IF((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 >= YYV2)),1,0));
大盘6:=CONST(IF((((YYAVX >= 1) AND (REF(YYAVX,1) > 0)) AND (YYV1 < YYV2)),1,0));
大盘7:=CONST(IF((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 >= YYV2)),1,0));
大盘8:=CONST(IF((((YYAVX < 1) AND (REF(YYAVX,1) < 0)) AND (YYV1 < YYV2)),1,0));
MFI:=(HIGH-LOW)*1000000/(VOL*比);
绿灯:=MFI>=REF(MFI,1)AND VOL*比>=REF(VOL,1);
MMM1:=CONST(绿灯);
衰退:=MFI<REF(MFI,1)AND VOL*比<REF(VOL,1);
MMM2:=CONST(衰退);
伪装:=MFI>=REF(MFI,1)AND VOL*比<REF(VOL,1);
MMM3:=CONST(伪装);
蛰伏:=MFI<REF(MFI,1)AND VOL*比>=REF(VOL,1);
MMM4:=CONST(蛰伏);
WJ:=(H+L+C)/3;V1:=IF(H=L,1,H-MAX(O,C));V2:=IF(H=L,1,MAX(C,O)-WJ);
V3:=IF(H=L,1,MIN(O,C)-L);V4:=IF(H=L,1,WJ-MIN(C,O));V5:=VOL/IF(H=L,4,H-L);
V6:=(V1*V5);V7:=(V2*V5);V8:=(V3*V5);V9:=(V4*V5);
买盘1:=DYNAINFO(23)*比;卖盘1:=DYNAINFO(22)*比;
买盘2:=IF(ISLASTBAR AND C>300,(V9+V8)*TT,(V9+V8));
卖盘2:=IF(ISLASTBAR AND C>300,(V6+V7)*TT,(V6+V7));
买盘:=IF(ISLASTBAR AND PERIOD=5 AND C<300,买盘1,买盘2);
卖盘:=IF(ISLASTBAR AND PERIOD=5 AND C<300,卖盘1,卖盘2);
{买卖差:=买盘-卖盘;}
量大:=(卖盘+买盘)/REF(VOL,1)>2;
MMM5:=CONST(量大);
量缩:=REF(VOL,1)/(卖盘+买盘)>1.5;
MMM6:=CONST(量缩);
卖量大:=(卖盘-买盘)/买盘>0.4;
MMM7:=CONST(卖量大);
买量大:=(买盘-卖盘)/卖盘>0.4;
MMM8:=CONST(买量大);
TS1:=IF(情况1=1,0.06+0.06,0.06); TS2:=IF(情况2=1,TS1+0.06,TS1);
TS3:=IF(情况3=1,TS2+0.06,TS2); TS4:=IF(情况4=1,TS3+0.06,TS3);
TS5:=IF(情况5=1,TS4+0.06,TS4); TS6:=IF(情况6=1,TS5+0.06,TS5);
TS7:=IF(情况7=1,TS6+0.06,TS6); TS8:=IF(情况8=1,TS7+0.06,TS7);
TS9:=IF(情况9=1,TS8+0.06,TS8); TS10:=IF(情况10=1,TS9+0.06,TS9);
TS11:=IF(情况11=1,TS10+0.06,TS10); TS12:=IF(情况12=1,TS11+0.06,TS11);
TS13:=IF(情况13=1,TS12+0.06,TS12); TS14:=IF(情况14=1,TS13+0.06,TS13);
TS15:=IF(情况15=1,TS14+0.06,TS14); TS16:=IF(情况16=1,TS15+0.06,TS15);
TS17:=IF(大盘1=1,TS16+0.06,TS16); TS18:=IF(大盘2=1,TS17+0.06,TS17);
TS19:=IF(大盘3=1,TS18+0.06,TS18); TS20:=IF(大盘4=1,TS19+0.06,TS19);
TS21:=IF(大盘5=1,TS20+0.06,TS20); TS22:=IF(大盘6=1,TS21+0.06,TS21);
TS23:=IF(大盘7=1,TS22+0.06,TS22); TS24:=IF(大盘8=1,TS23+0.06,TS23);
TS25:=IF(MMM1=1,TS24+0.06,TS24);
TS26:=IF(MMM2=1,TS25+0.06,TS25);
TS27:=IF(MMM3=1,TS26+0.06,TS26);
TS28:=IF(MMM4=1,TS27+0.06,TS27);
TS29:=IF(MMM5=1,TS28+0.03,TS28);
TS30:=IF(MMM6=1,TS29+0.03,TS29);
TS31:=IF(MMM7=1,TS30+0.03,TS30);
TS32:=IF(MMM8=1,TS31+0.03,TS31);
DRAWTEXT_FIX(MMM5,0,0.42,0,'★今天比昨天的成交量放大一倍以上。'),COLORGREEN;
DRAWTEXT_FIX(MMM6,0,0.42,0,'★今天比昨天的成交量缩量一半以上。'),COLORYELLOW;
DRAWTEXT_FIX(MMM7,0,0.48,0,'☆该股今天卖出量大于买入量40%以上。'),COLORGREEN;
DRAWTEXT_FIX(MMM8,0,0.48,0,'☆该股今天买入量大于卖出量40%以上。'),COLORYELLOW;