精准买卖指标源代码(求钱龙软件中CR指标公式源码?)
1. 求钱龙软件中CR指标公式源码?
钱龙软件中CR指标的公式源码如下:
```
CR := (sum(MAX(,HIGH[i]-REF(CLOSE[i-1],1)),N)/sum(MAX(,REF(CLOSE[i-1],1)-LOW[i]),N)*100);
```
其中,`MAX` 函数返回两个数中较大的那个数。`sum` 函数返回一段数列中的总和。`HIGH[i]` 表示第 i 天的最高价,`CLOSE[i-1]` 表示第 i-1 天的收盘价,`LOW[i]` 表示第 i 天的最低价,`N` 表示计算 CR 指标的天数。
这个公式中,分子部分计算一段时间内股价上涨的绝对值之和,分母部分计算一段时间内股价上涨和下跌的绝对值之和。通过比较分子和分母,得出股价上涨的强度与股价上涨和下跌的大小关系,从而判断市场的买卖力量。
2. 连出三次买入信号选股指标源码?
以下是连出三次买入信号选股指标的源代码:
```
//@version=4
study("Triple Buy Signal Indicator", overlay=true)
// Input parameters
fastMA = input(title="Fast MA Period", type=input.integer, defval=5)
slowMA = input(title="Slow MA Period", type=input.integer, defval=20)
rsiPeriod = input(title="RSI Period", type=input.integer, defval=14)
oversoldLevel = input(title="Oversold Level", type=input.integer, defval=30)
overboughtLevel = input(title="Overbought Level", type=input.integer, defval=70)
// Calculate moving averages
fastMAVal = ema(close, fastMA)
slowMAVal = ema(close, slowMA)
// Calculate RSI
rsiVal = rsi(close, rsiPeriod)
// Determine trends
bullishTrend = fastMAVal > slowMAVal
bearishTrend = fastMAVal < slowMAVal
// Determine buy signals
firstBuySignal = crossover(fastMAVal, slowMAVal) and rsiVal < oversoldLevel
secondBuySignal = crossover(fastMAVal, slowMAVal) and rsiVal > oversoldLevel and bullishTrend
thirdBuySignal = crossover(fastMAVal, slowMAVal) and rsiVal > overboughtLevel and bullishTrend
// Plot buy signals
plotshape(firstBuySignal, style=shape.triangleup, size=size.tiny, color=color.green, location=location.belowbar, text="1")
plotshape(secondBuySignal, style=shape.triangleup, size=size.tiny, color=color.blue, location=location.belowbar, text="2")
plotshape(thirdBuySignal, style=shape.triangleup, size=size.tiny, color=color.yellow, location=location.belowbar, text="3")
```
该指标使用移动平均线和相对强弱指数(RSI)来确定股票价格的趋势。在快速移动平均线越过慢速移动平均线时,如果RSI在某些程度上已超卖,则会触发第一次买入信号。在此之后,当RSI回到区间高处并且股票价格保持在快速移动平均线上方时,会触发第二次买入信号。在连续两次买入信号后,如果RSI仍然高于超买水平并且股票价格继续保持在快速移动平均线上方,会触发第三次买入信号。这三个买入信号的颜色和文本都不同,以便区分。
3. 如何将“益盟操盘手操盘线BS买卖点”源码修改为通达信指标?
不能因为“益盟操盘手操盘线BS买卖点”是一种自主研发的程序代码,与通达信指标系统不兼容,无法直接进行修改。同时,益盟操盘手和通达信是两个不同的软件平台,设计理念和功能特性也有很大的区别,若要将“益盟操盘手操盘线BS买卖点”移植到通达信中需要经过复杂的程序转换和功能重构,难度很大,不现实。如果您需要使用该指标,请优先选择使用益盟操盘手软件。
4. 经典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);
5. 拉升在即指标公式?
本人精通编程,会写会改,拉升在即公式如下:
VAR1:=EMA(SMA((CLOSE-LLV(LOW,19))/(HHV(HIGH,19)-LLV(LOW,19))*100,8,1),3);
STICKLINE(VAR1>20 AND VAR1<80,VAR1,VAR1,10,1),COLORRED;
STICKLINE(VAR1<REF(VAR1,1),VAR1,VAR1,10,1),COLORFFCC66;
STICKLINE(VAR1>80,VAR1,VAR1,8,1),COLOR00FF00;
STICKLINE(VAR1<20,VAR1,VAR1,8,1),COLORYELLOW;
ABV:=MA(SUM(IF(CLOSE>REF(CLOSE,1),VOL,IF(CLOSE<REF(CLOSE,1),-VOL,0)),0)/25000,2);
M1:=EMA(ABV,12);
M2:=EMA(ABV,26);
MTM:=CLOSE-REF(CLOSE,1);
MMS:=((100)*(EMA(EMA(MTM,6),6)))/(EMA(EMA(ABS(MTM),6),6));
MMM:=((100)*(EMA(EMA(MTM,12),12)))/(EMA(EMA(ABS(MTM),12),12));
MML:=((100)*(EMA(EMA(MTM,26),26)))/(EMA(EMA(ABS(MTM),26),26));
MTGJ:=C-REF(C,1);
ZLGJ:=100*EMA(EMA(MTGJ,9),9)/EMA(EMA(ABS(MTGJ),9),9);
MAZL:=MA(ZLGJ,5);
A:=((VOL)/(CAPITAL))*(100);
S:=((MA(A,30))/(MA(INDEXA,10)))*(MA(INDEXA,60));
Y:=((MA(A,120))/(MA(INDEXA,10)))*(MA(INDEXA,60));
X:=1;
V1:=(HIGH+OPEN+LOW+(2)*(CLOSE))/(5);
V2:=REF(V1,1);
V3:=MAX(V1-V2,0);
V4:=ABS(V1-V2);
V5:=SMA(V3,10,1);
V6:=SMA(V4,10,1);
V8:=COUNT(((V5)/(V6)<0.2),5);
V9:=COUNT((LLV(V1,10)=V1),10);
主力进出:IF((MMS>REF(MMS,1) AND ZLGJ>REF(ZLGJ,1) AND CROSS(ABV,M2) AND ABV>REF(ABV,1) AND M1>REF(M1,1) AND M2>REF(M2,1)),65,0),COLORWHITE,POINTDOT;
主进主轨:=ABV>M2 AND CROSS(ABV,M1) AND CROSS(ZLGJ,MAZL);
STICKLINE(主力进出 OR 主进主轨,65,0,4,1),COLORWHITE;
精准买卖:=V8>=1 AND V9>=1 AND CLOSE>OPEN AND REF(CLOSE,1)>REF(OPEN,1) AND (VOL>REF(VOL,1)) AND MMS>MML AND CROSS(ABV,M2);
短线买点:=V8>=1 AND V9>=1 AND CLOSE>OPEN AND REF(CLOSE,1)>REF(OPEN,1) AND (VOL>REF(VOL,1)) AND CROSS(MMS,MML) AND ABV>REF(ABV,1);
中线买点:=V8>=1 AND V9>=1 AND CLOSE>OPEN AND REF(CLOSE,1)>REF(OPEN,1) AND (VOL>REF(VOL,1)) AND ABV>REF(ABV,1) AND MMS>MML AND CROSS(MMM,MML) AND MMS>REF(MMS,1) AND MMM>REF(MMM,1) AND MML>REF(MML,1);
主进主买:=ABV>M2 AND ZLGJ>MAZL AND CROSS(MMS,MML) AND MMS>REF(MMS,1) AND MMM>REF(MMM,1) AND MML>REF(MML,1);
短中精:=精准买卖 OR 短线买点 OR 中线买点 OR 主进主买;
主力买卖:IF(短中精,60,0),COLORFF00FF,POINTDOT;
STICKLINE(主力买卖,60,0,4,1),COLORFF00FF;
主力轨迹:IF(ABV>M2 AND MMS>MML AND CROSS(ZLGJ,MAZL) AND ZLGJ>REF(ZLGJ,1) AND MAZL>REF(MAZL,1),55,0),COLORFFCC66,POINTDOT;
STICKLINE(主力轨迹,55,0,4,1),COLORFFCC66;
拉升在即:IF(S<X AND Y<X AND MMS>MML AND ABV>M1 AND CROSS(S,Y),50,0),COLORYELLOW,POINTDOT;
STICKLINE(拉升在即,50,0,4,1),COLORYELLOW;
底部构成:IF(V8>=1 AND V9>=1 AND CLOSE>OPEN AND REF(CLOSE,1)>REF(OPEN,1) AND VOL>REF(VOL,1) AND ABV>M2 AND ZLGJ>MAZL,45,0),COLOR00FF00,POINTDOT;
STICKLINE(底部构成,45,0,4,1),COLOR00FF00;
ROC:=(CLOSE-REF(CLOSE,12))/REF(CLOSE,12)*100;
HSL:=100*VOL/CAPITAL;
冲击波:IF(CROSS(ROC,16) AND HSL>3.5,40,0),COLOR0099FF,POINTDOT;
STICKLINE(冲击波,40,0,4,1),COLOR0099FF;
6. dmi指标源码?
DMI指标又叫动向指标或趋向指标,其全称叫“Directional Movement Index,简称DMI”,也是由美国技术分析大师威尔斯·威尔德(Wells Wilder)所创造的,是一种中长期股市技术分析(Technical Analysis)方法。
DMI指标是通过分析股票价格在涨跌过程中买卖双方力量均衡点的变化情况,即多空双方的力量的变化受价格波动的影响而发生由均衡到失衡的循环过程,从而提供对趋势判断依据的一种技术指标。
dmi指标分类:DMI指标共有+DI(即PDI,下同)、-DI(即MDI,下同)、ADX、ADXR四条线,也是它的四个参数值,它分为多空指标(+DI、-DI)和趋向指标(ADX、ADXR)两组指标。
dmi指标公式源码
TR:=EXPMEMA(MAX(MAX(HIGH-LOW,ABS(HIGH-ref(CLOSE,1))),ABS(ref(CLOSE,1)-LOW)),N);
HD:=HIGH-ref(HIGH,1);
LD:=ref(LOW,1)-LOW;
DMP:=EXPMEMA(IF(HD0&&HDLD,HD,0),N);
DMM:=EXPMEMA(IF(LD0&&LDHD,LD,0),N);
PDI:=DMP*100/TR,COLORFFFFFF;
DRAWTEXT_FIX(CO,0.01,0.9,0''),COLORRED;
DRAWTEXT_FIX(CO,1,1,0,''),COLORRED;
MDI:=DMM*100/TR,COLOR00FFFF;
ADX:=EXPMEMA(ABS(MDI-PDI)/(MDI+PDI)*100,M),COLOR0000FF,LINETHICK2;
ADXR:=EXPMEMA(ADX,M),COLOR00FF00,LINETHICK2;
DYNAINFO(9)0 AND CROSS(ADX,MDI) AND CROSS(ADXR,MDI) AND PDIMDI;
7. 黑马起飞列表的买入提示指标源码是什么?谢谢了,大神帮忙啊?
主流资金: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;