1.哪位高手有仲平复利指标源码呀?
2.用C#编辑一个复利计算程序
哪位高手有仲平复利指标源码呀?
N1(1,复利,);
N2(1,,);小框 N:=;
M:=;
RSV:=(CLOSE-LLV(LOW,N))/(HHV(HIGH,N)-LLV(LOW,N))*;
K:=SMA(RSV,5,1);
D:=SMA(K,3,1);
J:=3*K-2*D;
主力线:EMA(*(CLOSE-LLV(LOW,))/(HHV(HIGH,)-LLV(LOW,)),3),COLORFFFFFF,LINETHICK1;
主力持仓线: (CLOSE-EMA(CLOSE,))/EMA(CLOSE,)*, COLORFF,LINETHICK2;
强势显示: STICKLINE(主力持仓线>,主力持仓线+2,主力持仓线-2,1,1), COLORFF,LINETHICK1;
主力筹码线:EMA(N1*(CLOSE-LLV(LOW,))/(HHV(HIGH,)-LLV(LOW,)),8),COLORFFFF,LINETHICK2;
超强显示: STICKLINE(主力筹码线>,主力筹码线+2,主力筹码线-2,1,1), COLORFFFFFF,LINETHICK4;
散户筹码线: N2*(HHV(HIGH,M)-CLOSE)/(HHV(HIGH,M)-LLV(LOW,M)),COLORCC,LINETHICK1;
RSV1:=(CLOSE-LLV(LOW,9))/(HHV(HIGH,9)-LLV(LOW,9))*;
WEN:=3*SMA((CLOSE-LLV(LOW,))/(HHV(HIGH,)-LLV(LOW,))*,5,1)-2*SMA(SMA((CLOSE-LLV(LOW,))/(HHV(HIGH,)-LLV(LOW,))*,5,1),3,1);
J1:=SMA(RSV1,3,1);J2:=SMA(J1,3,1);
见顶柱:,LINETHICK1,COLORFF;
卖准备: IF(CROSS(J2,J1) AND J2>,,),LINETHICK1,COLORFF;
走势线: WEN,LINETHICK1,COLORFFFF;
STICKLINE(走势线>,,走势线,3,1),COLORFF;
STICKLINE(走势线<=,0,走势线,3,1),COLORFFFF,LINETHICK1;
STICKLINE(COUNT(走势线<REF(走势线,1) AND 走势线<,2)=2 ,0,5,3,0),LINETHICK1,COLORFF;
STICKLINE(CROSS(J2,J1) AND J2>,,,3,0),COLORFF,LINETHICK3;
AA3:=(HHV(HIGH,)-CLOSE)/(HHV(HIGH,)-LLV(LOW,))*-;
AA6:=SMA(AA3,,5),LINETHICK2,COLORFFFF;
买关注: STICKLINE(走势线-主力线<-,0,2,5,1),COLORFFFFFF,LINETHICK1;
DRAWTEXT(FILTER(J>REF(J,1)AND 走势线>=REF(走势线,1)AND 走势线< ,),走势线,'买'),COLORFFFFFF;
卖关注: STICKLINE(走势线-AA6>,,,5,1),COLORFFFF;
DRAWTEXT(FILTER(J<REF(J,1)AND 走势线<=REF(走势线,1)AND J> ,5),J,'可卖'),COLORFF,LINETHICK2;
VAR:=2*MA(LLV((C+L)/2,8)*1.1,)-EMA((C+L)/2,3)-((C+L)/2)*0.1;
VAR:=IF((EMA((C+L)/2,3)-VAR)*5>0,POW((EMA((C+L)/2,3)-VAR)*5,2)/,-1*POW((EMA((C+L)/2,3)-VAR)*5,2)/);
VAR:=IF(VAR>0,VAR-0,0);
STICKLINE(VAR>0 AND REF(VAR,1)=0 AND (C+L)/2>MA((C+L)/2,8),
走势线,主力线+0.2,4,0),COLORFFFF,LINETHICK2;
DRAWTEXT(VAR>0 AND REF(VAR,1)=0 AND (C+L)/2>MA((C+L)/2,8),
走势线+0.,'追买'),LINETHICK3,COLORFFFF;
买入:IF(CROSS(走势线,4),,0),STICK,LINETHICK1,COLORFFFF;
DRAWTEXT(CROSS(走势线,4),,'买入'),COLORFFFF;
买!:IF(CROSS(主力持仓线,码复git 加密源码-5),,0),STICK,LINETHICK2,COLORFFFFFF,LINETHICK3;
DRAWTEXT(CROSS(主力持仓线,-5),,'买!'),利投启明互联公式源码COLORFFFFFF;
VAR:=EMA(SMA((CLOSE-LLV(LOW,))/(HHV(HIGH,)-LLV(LOW,))*,8,1),3);
STICKLINE(VAR> AND VAR<,VAR,VAR,,1),COLORFF,LINETHICK3;
STICKLINE(VAR<REF(VAR,1),VAR,VAR,,1),COLORFF,LINETHICK3;
STICKLINE(VAR>,VAR,VAR,8,1),COLORFFFFFF,LINETHICK1;
STICKLINE(VAR<,VAR,VAR,8,1),COLORFFFFFF,LINETHICK1;
筹码高位止停线:,COLORFF,LINETHICK1;
强弱分界线:,COLORFFFF,LINETHICK1;
底部安全区:,COLOR,LINETHICK1;
地平线:-1,COLOR,LINETHICK1;VARF:=TROUGHBARS(3,,1)<4;
STICKLINE(FILTER(VARF=1,5),,0,1,0),COLOR,LINETHICK2;
DRAWICON(FILTER(VARF=1,5),,1);
DRAWTEXT(FILTER(VARF=1,5),,'**!'),复利肇源码头门票COLORFFFFFF;
大框
用C#编辑一个复利计算程序
复利是指利滚利吧?
如存入,年利息0.,码复下分型源码存了年,利投sci论文带源码则调用fl(0.,复利,);
double fl(double rate,double cash,int times)
{
double ret = 0;
for (int i = 1; i <= times;i++ )
{
ret += Math.Pow((1 + rate), i);
}
ret *= cash;
return ret;
}